Repository navigation
Agent Flow: list an IDE chat once, not also as its Claude Code transcript (#326, ide) - #429
Merged
Merged
Conversation
…ript (#326) An IDE chat runs Claude Code over ACP, and Claude Code writes its own transcript of that conversation under the ACP session id. The scene's session picker listed both: the live chat and the transcript, titled by its first prompt. A live source now carries the agent's session id, and the listing leaves out the transcript that id names (Claude Code <id>.jsonl, Codex rollout-...-<id>.jsonl). The IDE feed sets the id when the chat is first seen and on the agent-session event.
This was referenced Dec 2, 2026
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
AgentTraceSourcegets an optionalagentSessionId();PushAgentTraceSourcestores it (setAgentSessionId).listAgentTraceSourcesleaves out a transcript whose id names a live source's agent session (claude-code:<id>,codex:rollout-...-<id>), via the exportedcoveredByLive.state.agentSessionId) and on theagent-sessionevent.The core part goes to
v1.3.0in a sibling PR.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.apps/ide/test/agentFlowFeed.test.ts: the feed hides the transcript on theagent-sessionevent, and a chat first seen with a known id starts hidden.npm test: 1441 + 1194 tests, 0 failures.Generated by Claude Code