Файли
openidea/crates/ide-agent
ntbang0901 63830dcbaf fix(agents): keep a pending permission request tied to its session until it is answered (#8191)
Open permission requests and forms were tracked per task, not per session. Stop Subagent never answered the subagent's open request (ACP requires a cancelled session's pending requests to be answered with cancelled), the end of the task's turn marked every open card Cancelled without answering it so the agent kept waiting and a still-working subagent lost its card, and a request the agent withdrew with $/cancel_request kept its card open.

Each pending request now records its session and JSON-RPC id. Stop Subagent, or the subagent reporting idle, cancels that session's requests; stopping or ending the task's turn cancels only the task's own; a withdrawn request ($/cancel_request, or $/cancelRequest from the native drivers) is cancelled and its card closes. Dropping the connection for a network retry or recycling an idle session now answers open requests too, and the v2 dialect passes the request id through.

Co-authored-by: ntbang0901 <[email protected]>
2026-12-05 17:45:31 +08:00
..