Skip to content

feat(context): context window panel and a quieter resize grip - #70

Closed
luoxuanzao wants to merge 2 commits into
mainfrom
feat/context-window-panel
Closed

luoxuanzao wants to merge 2 commits into
mainfrom
feat/context-window-panel

Conversation

@luoxuanzao

Copy link
Copy Markdown
Member

Summary

  • Click the context usage reading beside the message input to open a context
    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.
  • The resize grip above the message input no longer shows a hover tooltip and
    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.
  • User-visible changes are documented under [Unreleased] in CHANGELOG.md.

Verification

  • npm run typecheck
  • npm run lint
  • npm run test (169 suites, 3571 tests)
  • npm run build
  • npm run release:check
  • npm run audit:prod (0 vulnerabilities)
  • Tested affected qodercli behavior against a real CLI when applicable —
    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

  • No credentials, private vault content, internal URLs, or personal paths are included
  • User-visible changes are documented in CHANGELOG.md

luoxuanzao and others added 2 commits September 18, 2026 07:47
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.
@luoxuanzao

Copy link
Copy Markdown
Member Author

Closing this in favour of #71. The branch also carried the context window panel work, which does not belong in this change; the composer grip update is submitted on its own in #71.

@luoxuanzao luoxuanzao closed this Sep 18, 2026
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