Skip to content

[Bug]: idle ACP child output leaks into root conversation history #37531

Closed

Description

@StiensWout

Before submitting

  • 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

  1. 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.
  2. After the root settles, deliver a session/update with a child sessionId, sessionUpdate: "agent_message_chunk", and text Child private work.
  3. 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.

Version or commit

Reproduced on main at 45dedf2.

Environment

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.

Workaround

No verified workaround.

Activity

  1. added
    vouch:trusted
    on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    vouch:trusted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions