From d57cec42d4009d7e7a8314f544268f5fceebc699 Mon Sep 17 00:00:00 2001 From: Ryan Hughes Date: Mon, 7 Sep 2026 21:17:36 -0400 Subject: [PATCH] Cover selected Cursor and Muse release integration --- test/shell.d/default-agent-test.sh | 8 ++++++++ test/shell.d/release-ai-port-test.sh | 2 ++ 2 files changed, 10 insertions(+) diff --git a/test/shell.d/default-agent-test.sh b/test/shell.d/default-agent-test.sh index a5c81f21..e156a623 100644 --- a/test/shell.d/default-agent-test.sh +++ b/test/shell.d/default-agent-test.sh @@ -567,6 +567,14 @@ assert_launch hermes env -u HERMES_SESSION_SOURCE hermes chat --yolo --tui "--qu assert_launch copilot copilot --allow-all --interactive "Review this project" pass "agent launcher adapts initial prompts for every supported agent" +printf '%s\n' "cursor-agent" >"$agent_file" +for literal_cursor_prompt in update login help --help $'--option !Crash {$(touch must-not-run)}\ntrailing\\ '; do + omarchy-agent-prompt "$literal_cursor_prompt" + assert_launched cursor-agent "binds prompt behind the explicit agent subcommand" \ + cursor-agent --yolo --trust agent -- "$literal_cursor_prompt" +done +pass "Cursor CLI receives subcommand-like and option-like prompts as literal agent arguments" + literal_muse_prompt=$'--disable-sandbox !Crash {$(touch must-not-run)}\ntrailing\\ ' printf '%s\n' "muse" >"$agent_file" omarchy-agent-prompt "$literal_muse_prompt" diff --git a/test/shell.d/release-ai-port-test.sh b/test/shell.d/release-ai-port-test.sh index 075325cf..7521f1a5 100644 --- a/test/shell.d/release-ai-port-test.sh +++ b/test/shell.d/release-ai-port-test.sh @@ -57,6 +57,8 @@ chmod +x "$test_tmp/bin"/* PATH="$test_tmp/bin:$PATH" bash -eE "$ROOT/install/user/mise.sh" grep -qx 'mise:settings set upgrade.auto_prune false' "$TEST_CALLS" || fail "new users retain running mise versions" grep -qx 'hermes:' "$TEST_CALLS" || fail "new users receive the Hermes CLI stub" +grep -qx 'stub:cursor-agent' "$TEST_CALLS" || fail "new users receive the selected Cursor CLI stub" +grep -Fx 'stub:http:muse[url=https://api.meta.ai/muse-launcher.sh,bin=muse,version_list_url=https://api.meta.ai/muse-code/channels/muse-stable,version_json_path=.version] muse' "$TEST_CALLS" >/dev/null || fail "new users receive the selected official Muse launcher stub" ! grep -Eq 'stub:.*(ori|antigravity|hey-cli)' "$TEST_CALLS" || fail "mise setup avoids unrelated prerequisites" pass "baseline mise setup tolerates an unfinished Hermes Desktop and disables pruning" : >"$TEST_CALLS"