pi-grok-cli icon indicating copy to clipboard operation
pi-grok-cli copied to clipboard

Seeing a lot of cache misses

Open sudokai opened this issue 4 months ago • 4 comments

After enabling "Cache miss notices" in pi's settings, I'm seeing quite a few cache misses like:

Cache miss: 67k tokens re-billed (~$0.10)

on fast-follow messages (<1 minute) that should not cause a prefix cache miss.

sudokai avatar Jul 12 '26 07:07 sudokai

@sudokai thanks for the report. The cache miss issue should be fixed in the latest version. Try updating and let me know

kenryu42 avatar Jul 12 '26 14:07 kenryu42

Still seeing cache misses with grok-composer-2.5-fast @kenryu42 Not seeing issues with grok-4.5

sudokai avatar Jul 13 '26 15:07 sudokai

been testing with composer 2.5 since you brought this up, and the only time I get cache misses is after a long idle period. Are you using any extensions that prune the context to save tokens? I’ll keep this open for a while to see if others report the same issue.

kenryu42 avatar Jul 14 '26 10:07 kenryu42

been testing with composer 2.5 since you brought this up, and the only time I get cache misses is after a long idle period.Ω

Okay now I'm seeing some cache misses with grok 4.5 too. I think it's a server side issue.

Are you using any extensions that prune the context to save tokens?

No, I'm quite disciplined with that, and just to make sure, I asked pi to analyze session transcripts for prefix mutations and there were none at the cache miss turns.

sudokai avatar Jul 15 '26 08:07 sudokai