Skip to content

Claude Response Viewer loses earlier conversation history on resume (implemented fix linked) #701

Closed

Description

@shenlvkang-collab

Problem

In 1.44.0, opening the Claude Response Viewer shows only the last answered turn. Even More reads only the current JSONL file, so after an interactive resume or /clear, earlier messages in the tab's recorded conversation chain disappear. A transcript outside ~/.claude/projects can also be missed, resulting in a terminal dump with broken formatting.

Suggested fix (implemented and available for review)

Our focused PR is available here: shenlvkang-collab#1

Compare against upstream 1.44.0: master...shenlvkang-collab:Codeman:fix/claude-response-history

The fix opens full structured Claude history, reads the exact transcript paths and conversation IDs recorded for the selected tab, supports per-session/process CLAUDE_CONFIG_DIR, deduplicates replayed message UUIDs, and refreshes an open viewer every five seconds while preserving existing cards and scroll position. Closing or switching tabs cancels polling; late requests cannot populate a different tab. It does not guess transcript ownership from working-directory timestamps.

Validation: 92 focused tests; typecheck, lint, frontend syntax and production build; isolated HTTP API verification; Playwright at 390px and 1280px covering 50 messages, Markdown, appends, scroll retention and cleanup. Both fork CI jobs passed: https://github.com/shenlvkang-collab/Codeman/actions/runs/39969586292

Please consider the linked implementation as a possible fix. Direct upstream PR creation was retried on 2026-10-24, but GitHub returned a CreatePullRequest permission error for this account, so this issue links the reviewable fork PR instead.

Activity

  1. Ark0N commented on Oct 24, 2026

    @Ark0N
    Owner

    Thanks @shenlvkang-collab, and thanks for writing the fix up so carefully.

    The CreatePullRequest permission error is GitHub's open pull request cap for accounts without write access to a repository. Drafts don't count toward it, which is why #631 and #633 still went through as drafts. I've added your account to this repository's bypass list, so you can open the fork branch here as a normal PR now. Please open it against master with Fixes #701, and the review runs on it the same way as on the others.

    While you're here, a note on the PRs you already have open, since the cap counts them: #529, #545, #608, #614 and #626 are each still waiting on the changes from their last review (the newest from 2026-10-14). If one of them is no longer something you want to finish, just say so on it, or close it, and I'll take it from there. That keeps the list honest for both of us.

  2. added a commit that references this issue on Nov 12, 2026
  3. Ark0N commented on Nov 12, 2026

    @Ark0N
    Owner

    @shenlvkang-collab, no PR came after the invitation above, so I went through this myself. The report has three parts, and they get three different answers.

    1. A transcript outside ~/.claude/projects was missed: fixed. The viewer looked for the transcript under ~/.claude only, and for the conversation after a /clear in ~/.claude/history.jsonl only. A session started with its own CLAUDE_CONFIG_DIR, or any session on a server that sets one, got "No response yet" or the terminal dump you describe. It now reads the session's own folder first, then the server's, then ~/.claude. That is #812, on master as fa4815b4, and it ships with the next release.

    2. The viewer opens on the last answered turn. That is on purpose. The eye button answers "what did it just say", and More loads the conversation.

    3. More reads the current transcript only. After a /clear or a resume into a new conversation, the earlier one is not shown. That is a feature request, and it is not decided yet.

    I'm not taking the fork branch as it is, because it changes part 2: it opens the viewer on the full history and refreshes it every five seconds.

    This issue stays open for part 3.

  4. Ark0N commented on Nov 13, 2026

    @Ark0N
    Owner

    Closing this now that the bug is fixed. The missed transcript outside ~/.claude/projects (a session or server with its own CLAUDE_CONFIG_DIR) is fixed by #812, already on master, and it ships with the next release. Opening on the last answered turn stays as it is, on purpose.

    Showing the conversation from before a /clear or a resume under More is still an open idea, and nobody is building it right now. If you or anyone else wants it, please open a new issue for just that part so it can be discussed on its own. Thanks again for the detailed report, @shenlvkang-collab.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions