Skip to content

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

@avrilelvina-web

Description

@avrilelvina-web

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?

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions