From fa8359359b309f4b7e7343419ef1f2db089384a4 Mon Sep 17 00:00:00 2001 From: Fayi FB Date: Fri, 14 Aug 2026 11:23:07 +0100 Subject: [PATCH] Fix Pi prompt launch (#6857) --- bin/omarchy-agent | 2 +- test/shell.d/default-agent-test.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"