[BUG]

Resolved 💬 5 comments Opened Mar 22, 2026 by mahirbarut Closed Apr 22, 2026

Preflight Checklist

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

What's Wrong?

Context compression caused complete memory loss of recent tool calls. Claude forgot writing 24 out of 25 files and tried to redo the entire batch.

What Should Happen?

During a long session with many tool calls (writing 25+ JSON files), Claude should retain awareness of its completed work after context compression. It should not lose track of files it already created and attempt to recreate them from scratch.

Error Messages/Logs

During a long session with many tool calls (writing 25+ JSON files), Claude should retain awareness of its completed work after context compression. It should not lose track of files it already created and attempt to recreate them from scratch.

Steps to Reproduce

Start a session that involves writing many files sequentially (25+ JSON files)
Continue working until context compression triggers
After compression, Claude loses awareness of completed tool calls and attempts to repeat work

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

Claude 1.1.7714 (3bd6f6) 2026-03-19T14:50:53.000Z

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗