You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
apps/server
Steps to reproduce
An ACP agent receives session/prompt and emits a foreground tool_call with status pending.
The agent replies to that prompt with a JSON-RPC error before starting the tool.
The turn fails, but inspect the tool item: it remains pending. This reproduces with followAgentWorkState disabled and enabled.
The linked fix PR includes a deterministic subprocess mock and a public adapter-event regression test. Run:
pnpm exec vp test run apps/server/src/orchestration-v2/Adapters/AcpAdapterV2.test.ts -t 'ends an open tool call when its prompt returns an RPC error'
Expected behavior
A foreground tool that never started ends as failed when its owning prompt fails. Actually started/background work remains visible and stoppable.
Actual behavior
The turn becomes failed while the tool's last event is still pending. The adapter skips foreground cleanup for AcpRequestError, and finalization clears the active turn. A subsequent update cannot settle that turn's item. The stale tool can be interpreted as continuing work on recovery.
This differs from merged #37377, which closes tools after process death and deliberately exempts RPC errors to preserve continuing work. It also differs from #37367, which concerns a successful DONE response with the run still running.
No verified workaround. Found by the Pi and ACP Improvements hunt with GPT 6.1 Sol; independently confirmed by Claude Opus 5.5 on fresh main. No UI capture or real-client reproduction is claimed.
Activity