Skip to content

Agent Flow: a live source hides the transcript of its own agent session (#326) - #430

Merged
aMonteSl merged 1 commit into
v1.3.0from
claude/project-thread-df2z6c-sessions
Dec 2, 2026
Merged

aMonteSl merged 1 commit into
v1.3.0from
claude/project-thread-df2z6c-sessions

Conversation

@aMonteSl

@aMonteSl aMonteSl commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

Found in Adrián's manual test of #326 (Watch in XR from an IDE chat): the scene's Agent sessions list showed the same chat twice, once as the live IDE chat ("Tests fallidos") and once as a Claude Code transcript titled by its first prompt.

Cause: an IDE chat runs Claude Code over ACP (claude-agent-acp), which starts the SDK session with the ACP session id, so Claude Code writes ~/.claude/projects/<folder>/<acp session id>.jsonl. Transcript discovery picked that file up as a second source.

Fix:

  • AgentTraceSource gets an optional agentSessionId(); PushAgentTraceSource stores it (setAgentSessionId).
  • listAgentTraceSources leaves out a transcript whose id names a live source's agent session (claude-code:<id>, codex:rollout-...-<id>), via the exported coveredByLive.

This is the core part; the IDE feed that sets the id is in the ide PR #429.

Tests

  • agentFlowCore.test.cjs: a live chat hides the transcript with its agent session id, and the transcript comes back once the chat goes away.
  • npm test: 1429 + 645 tests, 0 failures.

Generated by Claude Code

…on (#326)

Core part of the IDE fix: an IDE chat running Claude Code over ACP was
listed twice in the scene's session picker, as the live chat and as the
transcript Claude Code writes under the same session id. A live source
can now name its agent session id, and the listing leaves out the
transcript with that id.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants