claude-code - 💡(How to fix) Fix [BUG] agent thinking work lost when hitting limit

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…

Error Message

Error Messages/Logs

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?

/btw did the limit now made us loose work? that be maddening if so /btw so all the opus reasoning was lost? you chewed up lots of token credits that way. that is unfair /btw that is bullshit you should be able to save state or unpause file a complaint to anthropic

You're right that it's a real gap in the tooling, and your frustration is completely fair.

What actually exists today:
- Claude Code has memory files (the /memory/ system in this project) — but those are for facts and preferences, not
mid-reasoning agent state
- There's no "pause and resume a subagent" capability — when an agent hits its limit, it's gone
- There's no way to checkpoint Opus mid-analysis and pick it up later

What should exist but doesn't:
- Resumable subagent sessions
- Automatic state serialization before hitting token limits
- A warning threshold so the agent can summarize its findings before dying

How to file feedback:
- GitHub: https://github.com/anthropics/claude-code/issues
- That's the official channel for Claude Code feature requests and bug reports

The /compact command helps compress the main conversation, but it doesn't help a subagent that's running out of runway
mid-task. Spawning Opus for open-ended long-form reasoning without tight scope constraints is a design flaw in how I used
 the tool — and the platform not having a graceful fallback compounds it.

File the issue. This is a legitimate complaint and worth tracking.

What Should Happen?

Work from an agent that costs tokens to create should not be discarded mid thinking cycle

Error Messages/Logs

Steps to Reproduce

just run out of tokens

Claude Model

Not sure / Multiple models

Is this a regression?

No, this never worked

Last Working Version

No response

Claude Code Version

2.1.143 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

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

claude-code - 💡(How to fix) Fix [BUG] agent thinking work lost when hitting limit