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
{{ message }}
Repository navigation
[Bug]: idle ACP child output leaks into root conversation history #37531
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
Use an ACP provider that emits child-session output after its root session settles. Copilot background-agent normalization and Devin child-agent normalization can produce these session IDs.
After the root settles, deliver a session/update with a child sessionId, sessionUpdate: "agent_message_chunk", and text Child private work.
Read the root provider thread with readThreadSnapshot.
Deterministic adapter reproduction: extend the existing replays history in order case in apps/server/src/orchestration-v2/Adapters/AcpAdapterV2.test.ts to deliver that notification through its captured session-update handler before reading the snapshot. Run:
pnpm exec vp test run apps/server/src/orchestration-v2/Adapters/AcpAdapterV2.test.ts -t 'replays history in order'
Expected behavior
The root conversation snapshot contains only root-session history. Child output remains associated with its child session.
Actual behavior
The snapshot includes an extra assistant:Child private work message. Child tool updates can also split root messages that lack provider message IDs. The idle session-update path writes shared snapshot history without checking which session owns it; the active-turn path already checks root session identity.
Impact
Minor bug or occasional failure. Conditional on background child output arriving while the root is idle; live-provider frequency has not been measured.
Server adapter reproduction on Linux. ACP providers with child-session normalization. No live-provider transcript or UI capture claimed.
Logs or stack traces
The unchanged baseline passes. The reproduction fails because the root snapshot gains assistant:Child private work. Independently confirmed by Claude Opus 5.5 during the Pi and ACP Improvements hunt.
Activity