Repository navigation
Replies: 4 comments
|
Screenshot from the prototype on a Claude thread. The composer shows This build still shows the details inside the context window popover. On the branch they now have their own hover card, so the indicator also works with the context window indicator turned off. |
|
I have gotten used to this with ccstatusline in CC. I think its important to show how long until the model's cache would expire as a countdown or an icon or something. Further, CC has a new-ish feature flag controlled thing where it will auto-compact when you're nearing your cache timeout. I asked claude to search the harness source to figure out what the deal is, and for posterity here is what it emitted: Anyway this is a pretty important feature for an application like t3 to have. |
|
Someone has also done something similar in a fork. https://github.com/n0ah37/t3code/pull/3/changes |
|
There is another idea post for a similar thing: #7590 |

Uh oh!
There was an error while loading. Please reload this page.
When I come back to a Claude thread, I can't tell whether the prompt cache is still warm. If it has expired, the next message re-reads the whole context uncached, which costs time and usage limits. Claude Code writes 1h cache entries on a subscription and 5m entries with an API key, Bedrock or Vertex, so the window is short enough to miss.
T3 Code already knows this. The Claude adapter derives
promptCacheTtlMsfrom thecache_creationbuckets of each response, and the web client uses it to offer the resume compaction chip on threads above 100k tokens. The expiry itself is never shown.I'd like to propose a small opt-in indicator next to the send button:
Cache 42mwhile the cache is warmCache coldin red once it has expiredIt would be a switch in Settings > General, off by default like the context window indicator. It only appears where the provider reports a TTL, which today means Claude. Codex reports cached input tokens but no TTL, so a countdown there would be a guess.
One server detail: a response that only reads the cache reports no TTL, although it refreshed the cache. The adapter would keep the last known TTL per session so the countdown doesn't disappear after such a response.
I have this working on a branch of my fork and can open a PR if the direction and scope sound right. Would you take this as an opt-in setting, or would you rather fold it into the existing context window indicator?
All reactions