mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-16 13:03:31 +08:00
A newly opened desktop session can return a live context snapshot before any prompt content has been counted. When that snapshot is all zeroes, rendering it as 0% makes the first real context update look like an unexplained jump. The composer now keeps that empty live snapshot in the pending state while still using its model metadata. Constraint: Live context snapshots can be initialized before any user-visible context exists Rejected: Render 0% for zero-token live snapshots | it repeats the misleading empty-session state Confidence: high Scope-risk: narrow Directive: Do not show numeric context usage for empty zero-token sessions Tested: cd desktop && bun run test -- pages.test.tsx Tested: cd desktop && bun run lint