claude-code - 💡(How to fix) Fix Resumed session loses prior conversation history [1 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#52146Fetched 2026-04-23 07:35:25
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Participants
Timeline (top)
labeled ×3

When resuming a session, the prior conversation transcript is not restored into the model's context. System reminders, memory files (MEMORY.md), and project instructions (CLAUDE.md) all load correctly, but the actual user/assistant message history from the previous session is missing.

The model has no access to what was previously discussed, so it cannot reference earlier decisions, code changes, or context from the prior session — even though the UI presents it as a continuation.

Root Cause

When resuming a session, the prior conversation transcript is not restored into the model's context. System reminders, memory files (MEMORY.md), and project instructions (CLAUDE.md) all load correctly, but the actual user/assistant message history from the previous session is missing.

The model has no access to what was previously discussed, so it cannot reference earlier decisions, code changes, or context from the prior session — even though the UI presents it as a continuation.

RAW_BUFFERClick to expand / collapse

Description

When resuming a session, the prior conversation transcript is not restored into the model's context. System reminders, memory files (MEMORY.md), and project instructions (CLAUDE.md) all load correctly, but the actual user/assistant message history from the previous session is missing.

The model has no access to what was previously discussed, so it cannot reference earlier decisions, code changes, or context from the prior session — even though the UI presents it as a continuation.

Impact

  • Users believe they're continuing a conversation but the model has amnesia about everything that was said
  • Wasted time re-explaining context that should have persisted
  • Confusing UX — the session looks resumed but effectively starts fresh

Expected behavior

On resume, prior messages should be available in the model's context (or the user should be clearly warned that history is not restored).

Environment

  • Platform: darwin (macOS 24.6.0)
  • Shell: zsh
  • Model: Claude Opus 4.7 (1M context)

extent analysis

TL;DR

The issue can be addressed by ensuring the conversation transcript is properly loaded into the model's context when resuming a session.

Guidance

  • Verify that the conversation transcript is being saved correctly at the end of each session, potentially by checking the contents of any session storage or database.
  • Investigate how the model's context is being populated when a session is resumed, focusing on any code or configuration related to loading prior conversation history.
  • Check for any limitations or constraints in the Claude Opus 4.7 model, particularly its 1M context limit, which might affect the ability to restore large conversation histories.
  • Consider implementing a warning or notification to users if the conversation history cannot be restored, to manage expectations and improve the UX.

Example

No specific code example can be provided without more details on the implementation, but ensuring that the conversation history is correctly serialized and deserialized when saving and loading sessions is crucial.

Notes

The solution may depend on the specific architecture and technologies used in the application, such as how sessions are managed and how the model's context is updated. The 1M context limit of the Claude Opus 4.7 model could be a contributing factor if conversation histories frequently exceed this size.

Recommendation

Apply a workaround to ensure conversation history is either properly restored or users are informed if it cannot be, as the root cause may involve complex interactions between session management, model context handling, and potential limitations of the Claude Opus 4.7 model.

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…

FAQ

Expected behavior

On resume, prior messages should be available in the model's context (or the user should be clearly warned that history is not restored).

Still need to ship something?

×6

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

Back to top recommendations

TRENDING