Repository navigation
Restore the composer context window meter - #66
Merged
Merged
Conversation
Fork feature: upstream removed the meter in pingdotgg#33131. Always shown once the provider reports usage; click compacts the thread. The Thread details context window is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Brings back the composer's context window meter (the small pie chart left of the send button; click it to compact). Upstream removed it in pingdotgg#33131. It is always shown once the provider reports usage; the removed Labs toggle is not restored.
Left alone: the Thread details card (Settings > Appearance > Thread details > Context window), plan mode, the legacy sidebar, and everything else pingdotgg#33131 removed.
Changes from the pre-removal meter:
formatContextWindowCompactionMessage(threshold)(no model name), so the model-name helper and the loading placeholder are not restored.formatContextWindowCostnow lives inside the meter file;providerSupportsManualCompactionis exported again fromcompaction.logic.ts.Evidence
/compactcompacts.After: meter renders when
activeContextWindowexists; click calls the same compact action as/compact.effect-tsgo tsrs --noEmitinapps/web: 0 errors.vp test run --project unit compaction.logic.test.ts contextWindow.test.ts: 2 files, 13 tests passed.vp fmt --checkandvp linton the 5 touched files: clean.Merge Danger
Door: two-way
Revert the commit to remove the meter.
Blast Radius: personal
Fork only. Possible future upstream-sync conflicts in
ChatComposer.tsx,ChatView.tsxandComposerFooterControls.tsx; the diff is about 50 lines plus one new file.🤖 Generated with Claude Code