mirror of
https://github.com/mark3labs/kit.git
synced 2026-06-13 19:20:06 +00:00
fix(cmd): nil-guard CLI when emitting system-prompt notice in quiet mode
SetupCLIForNonInteractive returns nil when --quiet is active, matching the pre-existing nil checks elsewhere in the same block (e.g. the buffered debug-message branch). Without this guard the new 'System Prompt loaded' notice panicked on quiet, non-interactive runs. Discovered via tmux smoke test of the #25 fix.
This commit is contained in:
+1
-1
@@ -811,7 +811,7 @@ func runNormalMode(ctx context.Context) error {
|
||||
}
|
||||
|
||||
DisplayDebugConfig(cli, kitInstance, mcpConfig, parsedProvider)
|
||||
if systemPromptLoadedMsg != "" {
|
||||
if systemPromptLoadedMsg != "" && cli != nil {
|
||||
cli.DisplayInfo(systemPromptLoadedMsg)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user