feat(context): context window panel and a quieter resize grip - #70
Closed
luoxuanzao wants to merge 2 commits into
Closed
luoxuanzao wants to merge 2 commits into
luoxuanzao wants to merge 2 commits into
Conversation
The meter beside the composer showed a 240° arc and a hover tooltip, with no way to see what fills the context window. The gauge is now a complete ring that fills from the top, and clicking it opens a panel with the CLI's /context breakdown: used percentage, a progress bar, per-category rows (system prompt, tools, skills, messages, other) and a Compact context button that sends /compact. Data comes from the CLI's get_context_usage control response and is cached per turn; free-space and auto-compact headroom are hidden so the listed rows add up to the meter reading, matching the Qoder IDE panel. A restored conversation has no live query until its first send, so the panel falls back to a short-lived idle query that resumes the stored session without persisting it — no prompt is sent and no credits are spent. Co-authored-by: QoderAI (Qwen 3.8 Max) <qoder_ai@qoder.com>
The grip above the message input drew its outlined pill at all times and popped a tooltip on hover, so the input's top edge never read as a plain border. The tooltip and its translations are gone - the resize cursor and the accent highlight while dragging already signal the drag - and the pill now fades in only when the pointer is inside the input area or the composer has focus. Drag, double-click to reset, and keyboard resizing are unchanged.
Member
Author
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
window panel: what fills the window (system prompt, tools, skills,
messages), how full it is, and a Compact context button. The meter is now a
complete ring that fills from the top, instead of an arc with a gap. The
reading alone could not answer what is taking up the window.
stays hidden until the pointer is inside the input area or the composer has
focus, so the input's top edge reads as a plain border while reading or
scrolling. Drag, double-click to reset, and keyboard resizing are unchanged.
[Unreleased]inCHANGELOG.md.Verification
npm run typechecknpm run lintnpm run test(169 suites, 3571 tests)npm run buildnpm run release:checknpm run audit:prod(0 vulnerabilities)not run here; the panel and the grip were exercised manually in a local
vault on Obsidian 1.13.7, where the panel reads live usage for a restored
session.
Safety
CHANGELOG.md