[Bug] /clear command incorrectly reports token savings when session usage is low
Resolved 💬 3 comments Opened Apr 9, 2026 by filter-tiago Closed May 23, 2026
Bug Description
wrong /clear suggestion about token reduce for new task it says Iwould prevent 400k token but the session is at 18%
Environment Info
- Platform: darwin
- Terminal: ghostty
- Version: 2.1.89
- Feedback ID: a4d7898d-9ee1-447a-b099-2209295037df
<!-- Uploading "image.png"... —>
Errors
[{"error":"Error: 1P event logging: 3 events failed to export (code=ECONNREFUSED, ECONNREFUSED)\n at queueFailedEvents (/$bunfs/root/src/entrypoints/cli.js:424:2574)\n at async doExport (/$bunfs/root/src/entrypoints/cli.js:424:1516)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-06T01:52:57.120Z"},{"error":"Error: {\"message\":\"Failed to export 3 events (code=ECONNREFUSED, ECONNREFUSED)\",\"originalLine\":\"424\",\"originalColumn\":\"1668\",\"line\":\"424\",\"column\":\"1668\",\"sourceURL\":\"/$bunfs/root/src/entrypoints/cli.js\",\"stack\":\"Error: Failed to export 3 events (code=ECONNREFUSED, ECONNREFUSED)\\n at doExport (/$bunfs/root/src/entrypoints/cli.js:424:1668)\\n at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}\n at error (/$bunfs/root/src/entrypoints/cli.js:1829:4366)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:418:36796)\n at IJ4 (/$bunfs/root/src/entrypoints/cli.js:418:37340)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:419:19103)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-06T01:52:57.120Z"},{"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 TZ1 (/$bunfs/root/src/entrypoints/cli.js:1889:14943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-06T02:22:47.127Z"},{"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 TZ1 (/$bunfs/root/src/entrypoints/cli.js:1889:14943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-06T02:22:47.127Z"},{"error":"Error: 1P event logging: 3 events failed to export (code=ECONNREFUSED, ECONNREFUSED)\n at queueFailedEvents (/$bunfs/root/src/entrypoints/cli.js:424:2574)\n at async doExport (/$bunfs/root/src/entrypoints/cli.js:424:1516)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-06T02:22:57.125Z"},{"error":"Error: {\"message\":\"Failed to export 3 events (code=ECONNREFUSED, ECONNREFUSED)\",\"originalLine\":\"424\",\"originalColumn\":\"1668\",\"line\":\"424\",\"column\":\"1668\",\"sourceURL\":\"/$bunfs/root/src/entrypoints/cli.js\",\"stack\":\"Error: Failed to export 3 events (code=ECONNREFUSED, ECONNREFUSED)\\n at doExport (/$bunfs/root/src/entrypoints/cli.js:424:1668)\\n at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}\n at error (/$bunfs/root/src/entrypoints/cli.js:1829:4366)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:418:36796)\n at IJ4 (/$bunfs/root/src/entrypoints/cli.js:418:37340)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:419:19103)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-06T02:22:57.125Z"},{"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 TZ1 (/$bunfs/root/src/entrypoints/cli.js:1889:14943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-06T02:52:47.136Z"},{"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 TZ1 (/$bunfs/root/src/entrypoints/cli.js:1889:14943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-06T02:52:47.136Z"},{"error":"Error: 1P event logging: 3 events failed to export (code=ECONNREFUSED, ECONNREFUSED)\n at queueFailedEvents (/$bunfs/root/src/entrypoints/cli.js:424:2574)\n at async doExport (/$bunfs/root/src/entrypoints/cli.js:424:1516)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-06T02:52:57.137Z"},{"error":"Error: {\"message\":\"Failed to export 3 events (code=ECONNREFUSED, ECONNREFUSED)\",\"originalLine\":\"424\",\"originalColumn\":\"1668\",\"line\":\"424\",\"column\":\"1668\",\"sourceURL\":\"/$bunfs/root/src/entrypoints/cli.js\",\"stack\":\"Error: Failed to export 3 events (code=ECONNREFUSED, ECONNREFUSED)\\n at doExport (/$bunfs/root/src/entrypoints/cli.js:424:1668)\\n at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}\n at error (/$bunfs/root/src/entrypoints/cli.js:1829:4366)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:…
Note: Content was truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗