Skip to content

fix(context): Estimate composition on demand - #3959

Merged
wsp1911 merged 1 commit into
openBitFun:mainfrom
wsp1911:fix/context-usage
Nov 17, 2026
Merged

wsp1911 merged 1 commit into
openBitFun:mainfrom
wsp1911:fix/context-usage

Conversation

@wsp1911

@wsp1911 wsp1911 commented Nov 17, 2026

Copy link
Copy Markdown
Collaborator

Compute current context composition when the panel opens so compressed
and forked sessions no longer depend on the latest request snapshot.
Reuse each estimate for numeric breakdowns and content previews.

Stop writing usage-context.json and per-request contextComposition.
Keep legacy reads, usage accounting and runtime recovery data intact.
Expose the additive query through Desktop and CLI Peer adapters, and
show unavailable states when current context cannot be reconstructed.

Cover compression, forks, read-only inspection, legacy payloads and UI
refresh behavior with focused regression tests.

Compute current context composition when the panel opens so compressed
and forked sessions no longer depend on the latest request snapshot.
Reuse each estimate for numeric breakdowns and content previews.

Stop writing usage-context.json and per-request contextComposition.
Keep legacy reads, usage accounting and runtime recovery data intact.
Expose the additive query through Desktop and CLI Peer adapters, and
show unavailable states when current context cannot be reconstructed.

Cover compression, forks, read-only inspection, legacy payloads and UI
refresh behavior with focused regression tests.
@wsp1911
wsp1911 merged commit b3e503b into openBitFun:main Nov 17, 2026
12 checks 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.

[Bug]: /compact 之后「上下文构成」面板与用量报告仍显示压缩前的数值,与输入框用量圆环互相矛盾

1 participant