Skip to content

[Bug]: ACP history import drops literal monitor-event text #37544

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 a load-capable ACP agent with a native conversation containing the user message Explain <monitor-event> XML.
  2. Import that native conversation into T3 Code.
  3. Read the imported thread history. A deterministic protocol reproduction extends the existing replays history in order, with stable earlier snapshots test in apps/server/src/orchestration-v2/Adapters/AcpAdapterV2.test.ts with that user chunk.

Expected behavior

The imported thread preserves the user's literal text and assistant replies that mention monitor markup, while synthetic monitor chatter stays filtered.

Actual behavior

Chunks containing <monitor-event anywhere are classified as synthetic monitor chatter and omitted. A split message can lose the matching chunk while retaining later chunks, corrupting the imported text. The same broad classification also rejects post-settle assistant replies as continuation evidence.

Impact

Minor bug or occasional failure

Version or commit

main @ e5b6c96

Environment

Native ACP history import from load-capable agents; reproduced with the ACP protocol fixture on Linux. The import path is shared by clients.

Logs or stack traces

The fresh-main snapshot contained user:XML instead of user:Explain <monitor-event> XML; a separate assistant message quoting the tag was absent entirely.

Screenshots, recordings, or supporting files

Found in the Pi and ACP hunt and independently confirmed by Claude Opus 5.5 before implementation. The focused protocol tests reproduce the loss without a paid provider call.

Workaround

Avoid literal monitor markup when importing native histories.

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