diff --git a/src/acp-agent.ts b/src/acp-agent.ts index e6550428..d99ee5a3 100644 --- a/src/acp-agent.ts +++ b/src/acp-agent.ts @@ -695,6 +695,10 @@ export class ClaudeAcpAgent implements Agent { // the loop of the next prompt continues running return { stopReason: "end_turn" }; } + if ("isReplay" in message && message.isReplay) { + // not pending or unrelated replay message + break; + } } // Store latest assistant usage (excluding subagents)