From a9c7600d6e4ba27dde265662fdbbcc6bbc2ac614 Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Mon, 4 May 2026 11:33:16 +0200 Subject: [PATCH] prompt: remove newline heuristic from exec prompt All array entries in prompt config are now shell commands. Removes the special case that treated entries with newlines as literal text. --- pkg/agent/prompt_resolver.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkg/agent/prompt_resolver.go b/pkg/agent/prompt_resolver.go index 7c88a54..990bfed 100644 --- a/pkg/agent/prompt_resolver.go +++ b/pkg/agent/prompt_resolver.go @@ -41,11 +41,6 @@ func resolveExecPrompt(cmds []string, cwd string) (string, error) { if cmdStr == "" { continue } - // Entries containing a newline are literal text, not commands. - if strings.Contains(cmdStr, "\n") { - parts = append(parts, cmdStr) - continue - } ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second) cmd := exec.CommandContext(ctx, "sh", "-c", cmdStr) if cwd != "" {