dispatcher: enable IS_SANDBOX + --dangerously-skip-permissions
Queued tasks were stuck in a permission-denied loop because claude -p runs in default permission mode and refuses every Bash/Edit/Write tool call. They were marked done with the LLM s I-need-permission text, which the next day s reflection then reported as unsolved, ad infinitum. Set IS_SANDBOX=1 (required to bypass the root guard on -dangerously- skip-permissions) and pass the flag itself, so dispatched tasks can actually do filesystem and shell work.
This commit is contained in:
parent
45370ce738
commit
767ab4d67c
@ -111,7 +111,7 @@ defmodule Symbiont.Dispatcher do
|
|||||||
defp run_cli(cli, model, prompt) do
|
defp run_cli(cli, model, prompt) do
|
||||||
# Pipe prompt via stdin using a shell heredoc — safe for arbitrary content
|
# Pipe prompt via stdin using a shell heredoc — safe for arbitrary content
|
||||||
escaped = prompt |> String.replace("'", "'\\''")
|
escaped = prompt |> String.replace("'", "'\\''")
|
||||||
shell_cmd = "printf '%s' '#{escaped}' | #{cli} -p --model #{model} --output-format json 2>&1"
|
shell_cmd = "printf '%s' '#{escaped}' | IS_SANDBOX=1 #{cli} -p --model #{model} --output-format json --dangerously-skip-permissions 2>&1"
|
||||||
|
|
||||||
try do
|
try do
|
||||||
{output, exit_code} = System.shell(shell_cmd)
|
{output, exit_code} = System.shell(shell_cmd)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user