claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] Conversation compaction intermittently corrupts conversation state: “Compaction failed unexpectedly” and silent prompt submission failures

Open elfieelfieelfie opened this issue 10 months ago • 14 comments

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?

Conversation compaction intermittently fails with the error "Compaction failed unexpectedly".

After the first compaction event, affected conversations enter a broken state:

  • New prompts fail to execute and revert to draft
  • Prompts with attachments also fail to submit
  • Issue reproduces across iOS, web, and desktop
  • Issue is conversation-specific (other chats may work normally)

This appears to be a backend conversation-state corruption rather than a client-side or rollout issue.

What Should Happen?

Conversation compaction should complete successfully and allow continued prompt execution.

If compaction fails, the conversation should either:

  • Retry safely, or
  • Gracefully recover/reset state without blocking further prompts

Error Messages/Logs

UI error: "Compaction failed unexpectedly"

Observed behavior:
- Prompt submits briefly, then reverts to draft
- No execution occurs
- Occurs after compaction event

Steps to Reproduce

  1. Start a new long-running conversation.
  2. Continue the conversation until automatic compaction triggers.
  3. Observe "Compaction failed unexpectedly".
  4. Attempt to submit a new prompt:
    • Prompt reverts to draft and does not execute.
  5. Attempt to submit a prompt with an attachment:
    • Same failure occurs.
  6. Open the same conversation on iOS, web, and desktop:
    • Issue reproduces across all platforms.
  7. Start a new conversation:
    • New conversation may work normally.

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

Before Jan 14–15, 2026 (prior to compaction incident)

Claude Code Version

Unknown (issue reproduced across web/iOS/desktop)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

This issue reproduces across platforms:

  • Initially observed on iOS (Claude iOS app)
  • Then reproduced on web and Claude Desktop
  • Same affected conversation fails across all platforms

Behavior:

  • After first automatic compaction event, the conversation enters a broken state
  • Error shown: "Compaction failed unexpectedly"
  • New prompts revert to draft and never execute
  • Prompts with attachments also fail to submit
  • New conversations may work normally

This suggests conversation-level backend state corruption related to the compaction pipeline, not a client or OS-specific issue.

Issue began around the Jan 15, 2026 compaction incident. Community reports indicate similar intermittent failures.

elfieelfieelfie avatar Jan 16 '26 04:01 elfieelfieelfie

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/18211
  2. https://github.com/anthropics/claude-code/issues/18089
  3. https://github.com/anthropics/claude-code/issues/18168

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

github-actions[bot] avatar Jan 16 '26 04:01 github-actions[bot]

This is not a duplicate, it is slightly different than the others. From the ticket: "Then reproduced on web and Claude Desktop", there is a fix for Claude code.

dwight000 avatar Jan 17 '26 02:01 dwight000

This is still happening 9:43PM EST 1/16/2026. Regarding the error message reported in this ticket, it no longer shows on the UI since a few days ago, but the problem still happens on claude.ai (web) right now, Claude does not accept the message on web. Thinking ON, and Image attachments cause the issue to be reproduced a lot easier.

dwight000 avatar Jan 17 '26 02:01 dwight000

Happening in Claude chat in projects. Web, desktop app, mobile. Can't access project files.

braidwalkers avatar Jan 17 '26 04:01 braidwalkers

Clarifying: the v2.1.11 fix resolves Claude Code (MCP) compaction, but this issue tracks ongoing conversation-state corruption on claude.ai web, Desktop, and mobile (esp. with Thinking ON and image attachments). Multiple users are still reproducing post-fix. This is not resolved.

elfieelfieelfie avatar Jan 17 '26 06:01 elfieelfieelfie

I have the same issue.

VibhanshuPandey avatar Jan 17 '26 08:01 VibhanshuPandey

Frankly speaking, since Jan 14, Claude has disturbed the dev environment. After some chat the it will not work without any UI message , with extended thinking mode. Frankly you need QA!

Image

binydev avatar Jan 17 '26 14:01 binydev

There is another variation of this when thinking is off with no errors in any way, and no attachments, sometimes on fresh chats, and does not involve compaction. The prompt appears accepted, nothing happens, then after one minute of nothing happening, you either have to resubmit again and its accepted or the text is removed from accepted reverts to draft in the text box again, and you have to submit yet again and it is accepted.

dwight000 avatar Jan 17 '26 19:01 dwight000

Yes, this is a product-breaking issue, which still persists at the time of writing this.

One temporary workaround is to create a new chat within the same project, and to tell Claude to reference the other chat, while continuing in the new one. Of course, the new chat hits the exact same issue after a while, and then another chat has to be created, etc.

This is very disruptive to normal workflow, and it's something Anthropic has to address as soon as possible!

nilsenist avatar Jan 18 '26 12:01 nilsenist

The same issue.

eDubrovsky avatar Jan 18 '26 14:01 eDubrovsky

This has been happening to me as well ever since the major outage on January 14. Several users have reported this and keep reporting it today, 4 days after this problem was flagged as fixed in Claude Status (which is clearly not the case).

A while ago, one of my chats (that I keep having to duplicate in order to continue my work) started kicking messages back into the typing box. I ended up sending the prompt in a file instead and this triggered auto-compact and I can keep using the chat now (until the problem eventually happens again).

There's clearly something wrong that hasn't been addressed yet and the lack of transparency about this is frustrating. Claiming that "all systems are operational" in Claude Status while so many (paying) users are reporting the opposite is incomprehensible.

solangerainha avatar Jan 18 '26 18:01 solangerainha

In launching cowork you deprived the main utility. Excellen vision. Truly. I cannot offer constructive feedback, only that claude code works fine and the web ui has been neuteured - effectively useless

JURASA avatar Jan 18 '26 18:01 JURASA

Still happening 1/18/26.

Claude chat. Max plan. No API. Affects mobile, web, desktop app. No access to project files (returns 0 value). No processes running. Attachments cause the window to break faster. Longest text-only token count was 45K. Some have been only 21K before the window becomes unusable.

braidwalkers avatar Jan 18 '26 18:01 braidwalkers

In the new Claude update on Android, a bug appeared - when creating an artifact, the window doesn't open during creation... I installed the previous version and it worked this is also somehow related to this

nizel123 avatar Jan 18 '26 20:01 nizel123

In launching cowork you deprived the main utility. Excellen vision. Truly. I cannot offer constructive feedback, only that claude code works fine and the web ui has been neuteured - effectively useless

Glad I'm not the only one who noticed. It's jarring. Just a couple days ago it was a dream, now it's on par with Gemini Pro. And I had just canceled my Gemini Pro plan for Claude Max!

SysAdminDoc avatar Jan 19 '26 03:01 SysAdminDoc

I have a similar issue where in a long chat, if I have extended thinking on, I hit submit and it attempts to think, but then it silently fails and reverts back to before I submitted, with no error messages. Turning off extended thinking makes it work again.

ultraphantom avatar Jan 19 '26 13:01 ultraphantom

I have started creating new chats for each individual issue I'm looking to correct and chat still seems to just pause and not respond with anything after about 5 detailed messages. It make iterating VERY hard and the AI is becoming borderline not usable. I have reset the app, cleared cache, and have tried mobile, web and desktop app.

momba824 avatar Jan 19 '26 17:01 momba824

I have started creating new chats for each individual issue I'm looking to correct and chat still seems to just pause and not respond with anything after about 5 detailed messages. It make iterating VERY hard and the AI is becoming borderline not usable. I have reset the app, cleared cache, and have tried mobile, web and desktop app.

Just download the previous version cluade via aptoide and it will work for you, it worked for me

nizel123 avatar Jan 19 '26 17:01 nizel123

Yes...it's very annoying...cannot work today becuase the UI does not work as it should. Paying for the max plan so I would expect to have this fixed as soon as possible

luca-teamlab avatar Jan 19 '26 17:01 luca-teamlab

Update: I messaged Boris Cherny on Threads with a link to this issue. He confirmed they're already looking into it. Waiting for updates!

eDubrovsky avatar Jan 19 '26 17:01 eDubrovsky