Skip to content

Improve prompt cache statusline state#2

Merged
lroolle merged 1 commit into
mainfrom
feat/cache-health-state
Jun 10, 2026
Merged

Improve prompt cache statusline state#2
lroolle merged 1 commit into
mainfrom
feat/cache-health-state

Conversation

@lroolle

@lroolle lroolle commented May 28, 2026

Copy link
Copy Markdown
Member

Summary

  • add --cache auto|always|off and richer JSON cache-health state
  • keep old numeric state compatibility while sanitizing corrupt state and writing atomically
  • show cache rebuild/drop signals without claiming server expire_at; TTL class only appears when usage breakdown proves it
  • update README/CHANGELOG and expand cache unit/integration coverage

Verification

  • npm exec --yes bats -- t/
  • bash -n statusline.sh install.sh t/helpers.bash
  • git diff --check

Review notes

  • Functionality reviewers checked cache semantics before PR readiness.
  • Addressed their findings around malformed state, env-derived TTL uncertainty, misleading cache! docs, current stdin schema limits, and --cache off state writes.

@lroolle lroolle merged commit 78825df into main Jun 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant