claude-code
claude-code copied to clipboard
[Feature Request] Preserve conversation history logs across auto-compact operations
Bug Description Claude Code is logging its work, and that is very helpful. It makes it possible to follow the work and look back to check the progress. It might also help the bug if things get wrong. But there is a huge problem when Claude does compact - the previous logs are wiped out, and there is no way to find out what has been done. It could even be that I have asked Claude to explain something, and then I go and have a cup of coffee and come back and the compaction make it impossible to know the answer. I am not sure why it has to be like that.
Environment Info
- Platform: darwin
- Terminal: Apple_Terminal
- Version: 2.0.76
- Feedback ID: b41b8e1c-6ffc-4af7-88e7-4e8dcb2a95ac
Errors
[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/mats/.local/share/claude/versions/2.0.76 (expected in multi-process scenarios)\n at XZR (/$bunfs/root/claude:2430:2165)\n at fUA (/$bunfs/root/claude:2430:1885)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-02T12:55:27.236Z"},{"error":"Error: 1P event logging: 5 events failed to export\n at queueFailedEvents (/$bunfs/root/claude:190:35345)\n at doExport (/$bunfs/root/claude:190:34453)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-04T03:00:31.812Z"},{"error":"Error: {\"message\":\"Failed to export 5 events\",\"originalLine\":\"190\",\"originalColumn\":\"34532\",\"line\":\"190\",\"column\":\"34532\",\"sourceURL\":\"/$bunfs/root/claude\",\"stack\":\"Error: Failed to export 5 events\\n at doExport (/$bunfs/root/claude:190:34532)\\n at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}\n at error (/$bunfs/root/claude:1618:25028)\n at <anonymous> (/$bunfs/root/claude:189:61116)\n at _VD (/$bunfs/root/claude:189:61660)\n at <anonymous> (/$bunfs/root/claude:190:17366)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-04T03:00:31.813Z"},{"error":"Error: 1P event logging: 5 events failed to export\n at queueFailedEvents (/$bunfs/root/claude:190:35345)\n at doExport (/$bunfs/root/claude:190:34453)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-04T03:37:11.425Z"},{"error":"Error: {\"message\":\"Failed to export 5 events\",\"originalLine\":\"190\",\"originalColumn\":\"34532\",\"line\":\"190\",\"column\":\"34532\",\"sourceURL\":\"/$bunfs/root/claude\",\"stack\":\"Error: Failed to export 5 events\\n at doExport (/$bunfs/root/claude:190:34532)\\n at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}\n at error (/$bunfs/root/claude:1618:25028)\n at <anonymous> (/$bunfs/root/claude:189:61116)\n at _VD (/$bunfs/root/claude:189:61660)\n at <anonymous> (/$bunfs/root/claude:190:17366)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-04T03:37:11.425Z"},{"error":"Error: 1P event logging: 5 events failed to export\n at queueFailedEvents (/$bunfs/root/claude:190:35345)\n at doExport (/$bunfs/root/claude:190:34453)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-04T06:02:59.459Z"},{"error":"Error: {\"message\":\"Failed to export 5 events\",\"originalLine\":\"190\",\"originalColumn\":\"34532\",\"line\":\"190\",\"column\":\"34532\",\"sourceURL\":\"/$bunfs/root/claude\",\"stack\":\"Error: Failed to export 5 events\\n at doExport (/$bunfs/root/claude:190:34532)\\n at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}\n at error (/$bunfs/root/claude:1618:25028)\n at <anonymous> (/$bunfs/root/claude:189:61116)\n at _VD (/$bunfs/root/claude:189:61660)\n at <anonymous> (/$bunfs/root/claude:190:17366)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-04T06:02:59.459Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: ECONNREFUSED\n at p91 (/$bunfs/root/claude:2428:1038)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-04T09:12:55.406Z"},{"error":"Error: Failed to fetch version from latest: Error: ECONNREFUSED\n at p91 (/$bunfs/root/claude:2428:1093)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-04T09:12:55.406Z"},{"error":"Error: 1P event logging: 3 events failed to export\n at queueFailedEvents (/$bunfs/root/claude:190:35345)\n at doExport (/$bunfs/root/claude:190:34453)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-04T09:12:59.121Z"},{"error":"Error: {\"message\":\"Failed to export 3 events\",\"originalLine\":\"190\",\"or
Note: Error logs were truncated.