Skip to content

[Bug]: Imported Claude Code thread stays stale after the session continues in the CLI, and can never be refreshed #41096

Closed as not planned

Description

@tredondo

Coming from Orca, which does a seamless job of importing sessions. Once T3 Code has imported a Claude session, if that session was EVER continued somewhere else, the intervening turns won't ever be displayed. I asked Opus to look into this. Response:

This session's ID can never be imported again, whatever you do in T3.

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. Start T3 Code while a Claude Code CLI session is in progress in a project folder. The auto-import creates import:claudeAgent:<sessionId>.
  2. Keep working in the CLI for a while after the import, then quit claude.
  3. Open the imported thread in T3, or run the project's session import again.

Expected behavior

The imported thread picks up the completed turns added after the import. Either opening the thread or re-running the import should do it, without duplicating messages. This is what #39059 proposes for Codex. The same is needed for Claude Code.

If imported history is meant to stay a one-time snapshot, there should still be some supported way to get the missing turns into T3.

Actual behavior

The thread stays frozen at the moment of import.

None of the available paths can recover the missing turns:

  1. Re-import. For an existing v1_import thread, AgentSessionImporter compares the stored messages with the transcript. On any mismatch it skips the thread, so a continued transcript is never imported. The comment there says this is intentional ("A transcript can change after the import").
  2. Resume in T3. Claude reloads its own full transcript, so the model has the context. But the Claude adapter filters out the frames that Claude replays and never backfills history. The UI keeps the gap. After one T3 turn, the thread also counts as modified (AgentSessionThreadModifiedError), so it can never be re-imported.
  3. Delete the thread, then re-import. Deletion is a soft delete. The import lookup by the deterministic thread ID still finds the deleted thread, because the canonical projection read doesn't filter deleted_at. The mismatch check then skips it again. This is the same dead end as #34043, but within one project.
  4. importNativeHistory. Only ACP-registry sessions use it, and it never runs for threads that have historyOrigin: "v1_import".

The result: once a Claude session has been imported, continuing it in the CLI permanently hides those turns from T3.

Impact

Major degradation or frequent failure

The auto-import runs at first launch, often while CLI sessions are still in use. Switching between the CLI and T3 is exactly the workflow that import invites.

Version or commit

T3 Code AppImage 0.1.11, Linux

Environment

Kubuntu, desktop AppImage, Claude Code CLI transcripts in the standard ~/.claude/[projects](https://github.com/pingdotgg/t3code/issues/~/.claude/projects) location.

Logs or stack traces

None. The import reports the thread as skipped, without an error.

Screenshots, recordings, or supporting files

Related issues and PRs:

  • #31628: the same Claude scenario. Its fix (#34809) stopped T3 from falsely marking the transcript imported, but it doesn't refresh history.
  • #28677 and discussion #28681: the Codex equivalent.
  • #39059: the Codex-only refresh on reopen.
  • #34043 and #34064: the soft-delete dead end and its fix. That fix only covers removing and re-adding a whole project.

Activity

  1. juliusmarminge commented on Nov 22, 2026

    @juliusmarminge
    Member

    Thanks for writing this up. It asks for new behaviour rather than reporting a defect, so it does not belong in the bug tracker and I'm closing it as not planned here. Feature ideas are discussed in Discussions: please post it there.

  2. tredondo commented on Nov 22, 2026

    @tredondo
    Author

    @juliusmarminge Should I rewrite the ticket as defect?

    If I resume such an imported session, it will be missing turns. Searching the thread for content I remember from those turns, will never find it.

    (would you agree those are defects?)

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions