diff --git a/bin/omarchy-launch-agent b/bin/omarchy-launch-agent index 0c619b09..b86a7bc0 100755 --- a/bin/omarchy-launch-agent +++ b/bin/omarchy-launch-agent @@ -14,12 +14,8 @@ fi agent=$(omarchy-default-agent) if omarchy-cmd-missing "$agent"; then - if [[ -x $HOME/.local/bin/$agent ]]; then - export PATH="$HOME/.local/bin:$PATH" - else - echo "$agent is not installed. Choose an installed agent with: omarchy default agent " >&2 - exit 1 - fi + echo "$agent is not installed. Choose an installed agent with: omarchy default agent " >&2 + exit 1 fi if (($# > 0)); then diff --git a/test/shell.d/default-agent-test.sh b/test/shell.d/default-agent-test.sh index 449b99c7..9ffeb63e 100644 --- a/test/shell.d/default-agent-test.sh +++ b/test/shell.d/default-agent-test.sh @@ -319,16 +319,6 @@ assert_launch gemini gemini --prompt-interactive "Review this project" assert_launch copilot copilot --interactive "Review this project" pass "agent launcher adapts initial prompts for every supported agent" -mkdir -p "$test_home/.local/bin" -touch "$test_home/.local/bin/gemini" -chmod +x "$test_home/.local/bin/gemini" -printf '%s\n' "gemini" >"$agent_file" -OMARCHY_TEST_MISSING_COMMAND=gemini omarchy-launch-agent "Review this project" -mapfile -d '' -t launch_args <"$launch_log" -[[ ${launch_args[0]} == "gemini" && ${launch_args[1]} == "--prompt-interactive" ]] || - fail "agent launcher finds a lazy wrapper outside the session PATH" -pass "agent launcher finds lazy wrappers outside the session PATH" - printf '%s\n' "opencode" >"$agent_file" omarchy-launch-agent mapfile -d '' -t launch_args <"$launch_log"