mirror of
https://github.com/agentclientprotocol/claude-agent-acp.git
synced 2026-11-10 11:21:06 +00:00
resultEnd now makes exactly the decisions of v1's subtype switch, and the v1 prompt loop calls it, keeping its own session failure categories and result forwarding. v1 is unchanged. v2 now follows v1 where the copies differed: a limit result (error_max_turns, error_max_budget_usd, error_max_structured_output_retries) ignores stop_reason max_tokens, and a success error with the /login text fails with authRequired even at max_tokens. isLoginRequiredText moves to result-end.ts. Co-Authored-By: Claude <noreply@anthropic.com>