fix(dispatch): use --output-format text for claude agent logging
Claude -p output wasn't reaching the log file. Explicitly set --output-format text, --permission-mode bypassPermissions (replaces deprecated flag), and --no-session-persistence for ephemeral workers. Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
parent
4e8fff62a0
commit
267a5e5e6d
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ func agentCommand(agent, prompt string) (string, []string, error) {
|
|||
case "codex":
|
||||
return "codex", []string{"--approval-mode", "full-auto", "-q", prompt}, nil
|
||||
case "claude":
|
||||
args := []string{"-p", prompt, "--dangerously-skip-permissions"}
|
||||
args := []string{"-p", prompt, "--output-format", "text", "--permission-mode", "bypassPermissions", "--no-session-persistence"}
|
||||
if model != "" {
|
||||
args = append(args, "--model", model)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue