Skip to content

[Bug] User message truncated during auto-compact operation #28303

Closed as not planned

Description

@tonimelisma

Bug Description
User message is truncated during compaction. When a user has a stashed message, they trigger compaction with /compact and they restore the message and start editing it, after compaction the message is reverted to the stashed message

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.52
  • Feedback ID: 80a9b506-46ea-4c3e-b608-c128b3fc44fb

Errors

[{"error":"Error: ENOENT: no such file or directory, open '/Library/Application Support/ClaudeCode/managed-settings.json'\n    at openSync (unknown)\n    at readSync (/$bunfs/root/claude:12:1441)\n    at F2 (/$bunfs/root/claude:6412:113)\n    at AO (/$bunfs/root/claude:6414:226)\n    at GP8 (/$bunfs/root/claude:6398:5806)\n    at s90 (/$bunfs/root/claude:6398:5579)\n    at <anonymous> (/$bunfs/root/claude:6398:4272)\n    at async a90 (/$bunfs/root/claude:6398:4654)\n    at async <anonymous> (/$bunfs/root/claude:11966:400)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-24T19:26:19.972Z"},{"error":"Error: EISDIR: illegal operation on a directory, read '/Users/tonimelisma/Development/imagemeta/testdata/'\n    at Zo_ (/$bunfs/root/claude:1760:243)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-24T19:28:13.443Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/tonimelisma/Development/imagemeta.\n    at call (/$bunfs/root/claude:1906:6346)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-24T19:28:30.912Z"},{"error":"FileTooLargeError: File content (6.3MB) exceeds maximum allowed size (256KB). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n    at Zo_ (/$bunfs/root/claude:1760:365)\n    at async Bt_ (/$bunfs/root/claude:1901:2402)\n    at async call (/$bunfs/root/claude:1906:6048)\n    at unknown\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-24T19:48:46.632Z"},{"error":"FileTooLargeError: File content (937KB) exceeds maximum allowed size (256KB). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n    at Ty7 (/$bunfs/root/claude:1762:348)\n    at emit (node:events:95:22)\n    at addChunk (internal:streams/readable:264:47)\n    at readableAddChunkPushByteMode (internal:streams/readable:242:18)\n    at <anonymous> (internal:fs/streams:147:16)\n    at <anonymous> (node:fs:194:82)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-24T19:48:46.646Z"},{"error":"FileTooLargeError: File content (3.9MB) exceeds maximum allowed size (256KB). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n    at Zo_ (/$bunfs/root/claude:1760:365)\n    at async Bt_ (/$bunfs/root/claude:1901:2402)\n    at async call (/$bunfs/root/claude:1906:6048)\n    at async <anonymous> (/$bunfs/root/claude:6360:1808)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-24T19:48:46.652Z"},{"error":"FileTooLargeError: File content (9.2MB) exceeds maximum allowed size (256KB). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n    at Zo_ (/$bunfs/root/claude:1760:365)\n    at async Bt_ (/$bunfs/root/claude:1901:2402)\n    at async call (/$bunfs/root/claude:1906:6048)\n    at async <anonymous> (/$bunfs/root/claude:6360:1808)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-24T19:48:46.654Z"},{"error":"Error: ENOENT: no such file or directory, open '/Library/Application Support/ClaudeCode/managed-settings.json'\n    at openSync (unknown)\n    at readSync (/$bunfs/root/claude:12:1441)\n    at F2 (/$bunfs/root/claude:6412:113)\n    at AO (/$bunfs/root/claude:6414:226)\n    at GP8 (/$bunfs/root/claude:6398:5806)\n    at s90 (/$bunfs/root/claude:6398:5579)\n    at o90 (/$bunfs/root/claude:6398:4794)\n    at async <anonymous> (/$bunfs/root/claude:6398:8150)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-24T19:56:20.536Z"},{"error":"MaxFileReadTokenExceededError: File content (68626 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n    at _t_ (/$bunfs/root/claude:1897:7740)\n    at async Bt_ (/$bunfs/root/claude:1901:2464)\n    at async call (/$bunfs/root/claude:1906:6048)\n    at async <anonymous> (/$bunfs/root/claude:6360:1808)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-24T20:13:43.911Z"},{"error":"FileTooLargeError: File content (6.3MB) exceeds maximum allowed size (256KB). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n    at Zo_ (/$bunfs/root/claude:1760:365)\n    at async Bt_ (/$bunfs/root/claud…

Note: Content was truncated.

Activity

  1. github-actions commented on Feb 24, 2026

    @github-actions

    Found 3 possible duplicate issues:

    1. [Bug] Text input lost when /init operation completes and displays results #20645
    2. Queued/pending user input silently lost while agent is working #20431
    3. [BUG] Stashed Messages Get Wiped During Execution #24776

    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

  2. tonimelisma commented on Feb 24, 2026

    @tonimelisma
    Author

    This is for compaction specifically

  3. github-actions commented on Mar 25, 2026

    @github-actions

    Closing for now — inactive for too long. Please open a new issue if this is still relevant.

  4. github-actions commented on Apr 3, 2026

    @github-actions

    This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

  5. locked as resolved and limited conversation to collaborators on Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:tuibugSomething isn't workingplatform:macosIssue specifically occurs on macOSstaleIssue is inactive

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions