Skip to content

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

@tonimelisma

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    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