jcode icon indicating copy to clipboard operation
jcode copied to clipboard

entire 5hr capacity done in 2 commands

Open petkoivanov opened this issue 6 months ago • 6 comments

I woke up, pasted my app logs for Claude to analyze. I did it once, worked OK. i did it second time, got an exception saying limit exceeded. It burned through my whole 5hr capacity. the logs files are at most 1k lines, i do this in Claude Code plugin regularly. Is there a way to see what happened?

petkoivanov avatar May 07 '26 14:05 petkoivanov

Jcode has lots of logs including kv cache logs that you can ask your agent to analyze

1jehuang avatar May 07 '26 18:05 1jehuang

Image

petkoivanov avatar May 09 '26 02:05 petkoivanov

I'll see what I can do

1jehuang avatar May 09 '26 02:05 1jehuang

There should have been a warning in the tui about x tokens of cache miss if your cache goes cold. Did you encounter that or do you think there is a bug there as well?

Also if you know that you will not come back within 5 minues, you can do /cache and change hour anthropic cache timer to 1 hour. Anthropic charges double for that though.

If you don't want to deal with that, I suggest OpenAI oauth. They have default 24 hour kv cache with more generous limits and a smarter model imo

1jehuang avatar May 09 '26 02:05 1jehuang

There should have been a warning in the tui about x tokens of cache miss if your cache goes cold. Did you encounter that => i did not see a warning. but may be i missed it.

petkoivanov avatar May 09 '26 03:05 petkoivanov

Fixed in master.\n\nChanges shipped:\n- Stop remote reconnect loops on protocol parse errors from oversized/corrupt server events, so the client no longer repeatedly resubscribes and replays the same huge payload. Commit: ba7d37c\n- Persist cold prompt-cache warnings in the transcript at request start, so users see when a large cached context is about to be resent after TTL expiry. Commit: 3133be3\n\nValidated with targeted regression tests and selfdev builds/reloads.

1jehuang avatar May 11 '26 02:05 1jehuang