Before sending after a pause there was no way to tell if the provider's prompt
cache was still warm (cheap, fast next message) or had expired (full re-process).
The cache clock already knew; nothing showed it.
- agent: prompt_cache_warm_until(agent) gives the one end every surface judges
against (the window's estimated end, pushed on by a keep-alive in flight; 0
after a compaction, route switch or new session; None while unknown), plus
render_prompt_cache_state for /usage.
- The warmer announces each folded keep-alive through agent.prompt_cache_callback;
a local viewer's turn wires it to publish one session.usage frame on the
session's own stream, so the deadline moves on between turns, when nothing
else publishes.
- session.usage / session.stats / message.complete usage carry it
(prompt_cache_warm_until flat, cache_warm_until in the Usage view); contracts
regenerated. mergeUsage drops it from a complete payload that no longer has it.
- CLI (classic + modern layout): cache_state status-bar field, "● live" /
"○ cold", judged at render time. TUI: same segment from 76 columns, ticking
each second. Desktop: a Cache live / Cache cold pill that flips at the deadline.
- /usage: a Prompt cache line on the CLI, TUI, Desktop and messaging surfaces.
- Copy in every locale catalog; docs in configuration.md.