diff --git a/bin/omarchy-agent b/bin/omarchy-agent index 6b145c8b..61736ea9 100755 --- a/bin/omarchy-agent +++ b/bin/omarchy-agent @@ -88,7 +88,7 @@ omp) ;; pi) command=(pi) - [[ -n ${prompt:-} ]] && command+=(-- "$prompt") + [[ -n ${prompt:-} ]] && command+=("$prompt") ;; *) echo "Unsupported default agent: $agent" >&2 diff --git a/test/shell.d/default-agent-test.sh b/test/shell.d/default-agent-test.sh index f86cd747..680d9606 100644 --- a/test/shell.d/default-agent-test.sh +++ b/test/shell.d/default-agent-test.sh @@ -348,7 +348,7 @@ assert_bypass() { assert_launched "$agent" "skips permission prompts" "$@" } -assert_launch pi pi -- "Review this project" +assert_launch pi pi "Review this project" assert_launch omp omp --auto-approve -- "Review this project" assert_launch opencode opencode --auto --prompt "Review this project" assert_launch claude claude --permission-mode bypassPermissions -- "Review this project"