claude-code - 💡(How to fix) Fix [BUG] VS Code extension: chat scrollback not restored after window restart (regression) [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#53091Fetched 2026-04-25 06:12:36
View on GitHub
Comments
2
Participants
2
Timeline
8
Reactions
0
Author
Timeline (top)
labeled ×5commented ×2cross-referenced ×1

After restarting VS Code, the Claude Code chat pane no longer shows the prior session's scrollback. The underlying JSONL transcript is intact on disk under ~/.claude/projects/<project>/, but the extension does not rehydrate the chat view from it. This used to work — reopening the window preserved the visible conversation history.

Error Message

Error Messages/Logs

Root Cause

After restarting VS Code, the Claude Code chat pane no longer shows the prior session's scrollback. The underlying JSONL transcript is intact on disk under ~/.claude/projects/<project>/, but the extension does not rehydrate the chat view from it. This used to work — reopening the window preserved the visible conversation history.

Fix Action

Fix / Workaround

Scrollback is how users verify what was discussed, copy prior output, and orient themselves after a break. Losing it on every window restart is a significant UX regression. Reading a raw JSONL file is not an acceptable workaround for an interactive chat UI.

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Summary

After restarting VS Code, the Claude Code chat pane no longer shows the prior session's scrollback. The underlying JSONL transcript is intact on disk under ~/.claude/projects/<project>/, but the extension does not rehydrate the chat view from it. This used to work — reopening the window preserved the visible conversation history.

Environment

  • OS: macOS (Darwin 25.4.0)
  • Editor: VS Code with Claude Code extension (2.1.120)
  • Model: Claude Opus 4.7 (1M context)

Steps to reproduce

  1. Have an active Claude Code session in VS Code with substantial chat history (in my case, post-/compact).
  2. Quit and reopen VS Code.
  3. Open the Claude Code panel for the same project.

Expected

Chat pane shows the prior conversation, as it did in earlier versions of the extension.

Actual

Chat pane comes up without the prior scrollback. The session state itself is preserved (memory loads, the compaction summary is in context), but the visible history is gone from the UI. The only way to read earlier turns is to open the JSONL transcript directly — which is not a usable substitute for scrollback.

Impact

Scrollback is how users verify what was discussed, copy prior output, and orient themselves after a break. Losing it on every window restart is a significant UX regression. Reading a raw JSONL file is not an acceptable workaround for an interactive chat UI.

Notes

  • Transcript file is present and well-formed; this appears to be purely a UI-rehydration issue, not data loss.
  • Happened immediately after a /compact + restart, but I don't believe compaction is the trigger — the extension simply isn't replaying the transcript into the pane on open.

What Should Happen?

The chat pane of a resumed session should include all scroll back history, just like it used to.

Error Messages/Logs

Steps to Reproduce

  1. Have an active Claude Code session in VS Code with substantial chat history (in my case, post-/compact).
  2. Quit and reopen VS Code.
  3. Open the Claude Code panel for the same project.

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

I have no idea.

Claude Code Version

2.1.120

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

extent analysis

TL;DR

The issue can likely be fixed by modifying the Claude Code extension to rehydrate the chat view from the existing JSONL transcript on disk when the VS Code window is reopened.

Guidance

  • Verify that the JSONL transcript file is correctly formatted and contains the expected chat history.
  • Check the Claude Code extension's code for any changes or updates that may have introduced this regression, particularly in the session resumption or chat view rehydration logic.
  • Consider adding logging or debugging statements to the extension to understand why the chat view is not being rehydrated from the transcript file.
  • If the issue is due to a change in the extension's behavior, a potential workaround could be to manually reload the chat history from the JSONL transcript file when the VS Code window is reopened.

Example

No code snippet can be provided without access to the Claude Code extension's source code.

Notes

The root cause of the issue is unclear without more information about the changes made to the Claude Code extension. It is possible that the issue is due to a change in the way the extension handles session resumption or chat view rehydration.

Recommendation

Apply workaround: The best course of action would be to modify the Claude Code extension to correctly rehydrate the chat view from the existing JSONL transcript on disk when the VS Code window is reopened, as this is a regression from a previous version.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING