fix: avoid misleading message
RunChannelsOnly reuses createStartupProvider(), which emits user-facing text that says "gateway started in limited mode" when --allow-empty is used. In channel-only mode this message is misleading; consider parameterizing createStartupProvider() (or wrapping it) so the limited-mode warning references the correct runtime. Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
c7af9bce67
commit
45cce2a7a7
1 changed files with 3 additions and 0 deletions
|
|
@ -67,6 +67,9 @@ func RunChannelsOnly(debug bool, homePath, configPath string, allowEmptyStartup
|
||||||
return fmt.Errorf("error creating provider: %w", err)
|
return fmt.Errorf("error creating provider: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if allowEmptyStartup {
|
||||||
|
fmt.Println("⚠️ Channel-only runtime started in limited mode (--allow-empty); no startup agents are configured.")
|
||||||
|
}
|
||||||
if modelID != "" {
|
if modelID != "" {
|
||||||
cfg.Agents.Defaults.ModelName = modelID
|
cfg.Agents.Defaults.ModelName = modelID
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue