fix: add Mock agent stub in idempotency test

The test was missing a stub agent process launcher for Mock, causing
install_is_idempotent_for_all_supported_agents_when_artifacts_exist
to fail since Mock's install would write the launcher instead of
detecting it as already installed.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Harivansh Rathi 2026-03-26 22:23:03 -04:00
parent a0cafac0d4
commit 017efe06b0

View file

@ -1782,8 +1782,8 @@ exit 0
.expect("write agent process launcher");
}
// Pi and Cursor only need agent process launchers (native_required = false).
for agent in [AgentId::Pi, AgentId::Cursor] {
// Pi, Cursor, and Mock only need agent process launchers (native_required = false).
for agent in [AgentId::Pi, AgentId::Cursor, AgentId::Mock] {
fs::write(manager.agent_process_path(agent), b"stub")
.expect("write agent process launcher");
}