[Bug] Prompt caching not persisting across session boundaries with remote-control enabled
Resolved 💬 3 comments Opened Apr 3, 2026 by saulholding Closed Apr 6, 2026
Bug Description
There seems to be a caching issue at the beginning of each new 5 hour session.
After the initial messsage at the beginning of a session, which can consume from 12-34% of the usage budget, each new call thereafter is about 0.8% - 1.4% of the allocated budget (which makes sense based on my calls).
Is this what you are seeing on your end? Has anyone on the team looked into caching at the beginning of sessions?
One final observation, this seems to be worse when remote-control is active.
Environment Info
- Platform: darwin
- Terminal: WarpTerminal
- Version: 2.1.89
- Feedback ID: 6933d04b-634f-47d9-9a1e-41db3a991597
Errors
[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/saulholding/.local/share/claude/versions/2.1.89 (expected in multi-process scenarios)\n at ux_ (/$bunfs/root/src/entrypoints/cli.js:1891:2138)\n at xU6 (/$bunfs/root/src/entrypoints/cli.js:1891:1218)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-01T04:05:51.202Z"},{"error":"MaxFileReadTokenExceededError: File content (24380 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n at r47 (/$bunfs/root/src/entrypoints/cli.js:4300:13161)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-01T04:35:59.743Z"},{"error":"Error: Request was aborted.\n at Kh_ (/$bunfs/root/src/entrypoints/cli.js:1248:17137)\n at next (native:1:11)\n at fy7 (/$bunfs/root/src/entrypoints/cli.js:7685:9029)\n at next (native:1:11)\n at Dy7 (/$bunfs/root/src/entrypoints/cli.js:7690:10775)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-01T05:51:41.030Z"},{"error":"Error: Request was aborted.\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3940)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-01T05:51:44.584Z"},{"error":"Error: Request was aborted.\n at Kh_ (/$bunfs/root/src/entrypoints/cli.js:1248:17137)\n at next (native:1:11)\n at fy7 (/$bunfs/root/src/entrypoints/cli.js:7685:9029)\n at next (native:1:11)\n at Dy7 (/$bunfs/root/src/entrypoints/cli.js:7690:10775)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-01T05:55:11.150Z"},{"error":"MaxFileReadTokenExceededError: File content (10127 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n at r47 (/$bunfs/root/src/entrypoints/cli.js:4300:13161)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-01T07:23:14.306Z"},{"error":"McpToolCallError: {\"error\":{\"name\":\"HttpException\",\"message\":\"Failed to run sql query: ERROR: 42703: column ie.tc_relevant does not exist\\nLINE 3: ie.status, ie.tc_relevant\\n ^\\nHINT: Perhaps you meant to reference the column \\\"ie.tc_relevance\\\".\\n\"}}\n at bZ9 (/$bunfs/root/src/entrypoints/cli.js:1585:63)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-01T07:37:12.278Z"},{"error":"McpToolCallError: {\"error\":{\"name\":\"HttpException\",\"message\":\"Failed to run sql query: ERROR: 42703: column ie.match_reasoning does not exist\\nLINE 4: ie.status, ie.match_strength, ie.match_reasoning\\n ^\\n\"}}\n at bZ9 (/$bunfs/root/src/entrypoints/cli.js:1585:63)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-01T07:39:24.973Z"},{"error":"MaxFileReadTokenExceededError: File content (143790 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n at r47 (/$bunfs/root/src/entrypoints/cli.js:4300:13161)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-01T07:40:06.873Z"},{"error":"Error: 500 {\"type\":\"error\",\"error\":{\"type\":\"api_error\",\"message\":\"Internal server error\"},\"request_id\":\"req_011CZcnivMYeWz91VTSLUd15\"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:51881)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:5435)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-01T09:09:11.974Z"},{"error":"MaxFileReadTokenExceededError: File content (10803 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n at r47 (/$bunfs/root/src/entrypoi…
Note: Content was truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗