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:
SakoroYou 2026-03-27 19:10:48 +08:00 committed by Sakurapainting
parent c7af9bce67
commit 45cce2a7a7

View file

@ -67,6 +67,9 @@ func RunChannelsOnly(debug bool, homePath, configPath string, allowEmptyStartup
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 != "" {
cfg.Agents.Defaults.ModelName = modelID
}