Skip to content

fix(core): heal missing pricing across agents - #307

Merged
xingkaixin merged 1 commit into
mainfrom
feat/cs-185-pricing-recovery
Aug 11, 2026
Merged

fix(core): heal missing pricing across agents#307
xingkaixin merged 1 commit into
mainfrom
feat/cs-185-pricing-recovery

Conversation

@xingkaixin

Copy link
Copy Markdown
Owner

Summary

  • add a shared pricing-capture epoch so every agent re-heals legacy cached heads once
  • capture missing model pricing per Cursor, OpenCode, and ZCode session
  • invalidate cached heads when a previously missing model becomes billable

Root cause

Pricing-miss metadata was only captured by the filesystem synchronization path. Legacy file-agent caches had no marker proving they used that capture behavior, while database agents stored only a session ID and database path, leaving zero-cost heads permanently cached after pricing became available.

Verification

  • pnpm lint
  • pnpm format:check
  • pnpm test
  • pnpm build

Issue: CS-185

@xingkaixin
xingkaixin merged commit fe4f254 into main Aug 11, 2026
10 checks passed
@xingkaixin
xingkaixin deleted the feat/cs-185-pricing-recovery branch August 11, 2026 14:07
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