Repository navigation
feat(chat): one model chip opens every option - #190
Closed
aorumbayev wants to merge 8 commits into
Closed
aorumbayev wants to merge 8 commits into
aorumbayev wants to merge 8 commits into
Conversation
aorumbayev
added a commit
that referenced
this pull request
Dec 3, 2026
aorumbayev
added a commit
that referenced
this pull request
Dec 3, 2026
aorumbayev
added a commit
that referenced
this pull request
Dec 3, 2026
…width The list tracked a scroll handle that never scrolled it, so Down moved the cursor to a row the list never showed and Enter picked a model the person never saw. The list is the one scroll area now, and its bar is the same handle; it opens on the model in force. A count line that only appeared with a query moved the field 218 points while the person typed, and a long model name cut the mode's word to two dots. The count is drawn with no query, a long list keeps its cap's height through a query, the cut row fades, the mode keeps its own width and an empty search says so.
aorumbayev
added a commit
that referenced
this pull request
Dec 4, 2026
aorumbayev
added a commit
that referenced
this pull request
Dec 4, 2026
aorumbayev
added a commit
that referenced
this pull request
Dec 4, 2026
aorumbayev
added a commit
that referenced
this pull request
Dec 4, 2026
aorumbayev
added a commit
that referenced
this pull request
Dec 4, 2026
aorumbayev
added a commit
that referenced
this pull request
Dec 4, 2026
The ceiling is the merged count.
The list kept the cap's height only above seven values, so a four-model list moved the search field 153 points while the person typed, and a five-to-seven model list with descriptions cut a row through its text with no fade. The list now keeps the height it opened with, for every list, and each edge fades only while it cuts a row: the top when scrolled, the bottom while more rows follow, so the picked row is never dimmed. A filter reset the cursor to the first match without scrolling the list, so an Enter picked a row above the view; the filter now brings the cursor with it. The card was anchored to the chip and a fixed 480 wide, so a narrow column put it over the sidebar; it follows the composer's column and is clamped to it. The model and the effort are found by ACP's category first, a refusal names the value it refused, and the mode's own width now has a test.
aorumbayev
added a commit
that referenced
this pull request
Dec 4, 2026
aorumbayev
added a commit
that referenced
this pull request
Dec 4, 2026
aorumbayev
added a commit
that referenced
this pull request
Dec 4, 2026
aorumbayev
added a commit
that referenced
this pull request
Dec 4, 2026
aorumbayev
added a commit
that referenced
this pull request
Dec 4, 2026
aorumbayev
added a commit
that referenced
this pull request
Dec 4, 2026
aorumbayev
added a commit
that referenced
this pull request
Dec 4, 2026
aorumbayev
added a commit
that referenced
this pull request
Dec 4, 2026
aorumbayev
added a commit
that referenced
this pull request
Dec 4, 2026
aorumbayev
added a commit
that referenced
this pull request
Dec 4, 2026
ACP puts no length on a mode's name, and the mode kept its whole text with no ceiling, so an agent that words its mode as a sentence took the bar: the model chip was 0 points wide and Send sat outside the box. The mode now truncates at 220 points in both shapes, keeps the whole word in its name and its tooltip, and the chip and Send keep their room. The list opened on the value in force with that row flush against the bottom edge, so the bottom fade washed the checked row's description. It now comes to rest one row past the row the keyboard is on, so the fade covers the row after it, and the row above stays whole. A row cuts its name and its description to the card's width, so its tooltip and hint carry the whole of both. The card reads the composer's column once, when the popover opens, instead of copying the whole element registry every frame, and the docs say what the code does with two chats in one window.
aorumbayev
added a commit
that referenced
this pull request
Dec 4, 2026
aorumbayev
added a commit
that referenced
this pull request
Dec 4, 2026
aorumbayev
added a commit
that referenced
this pull request
Dec 4, 2026
aorumbayev
added a commit
that referenced
this pull request
Dec 4, 2026
aorumbayev
added a commit
that referenced
this pull request
Dec 4, 2026
aorumbayev
added a commit
that referenced
this pull request
Dec 4, 2026
aorumbayev
added a commit
that referenced
this pull request
Dec 4, 2026
The Up key scrolled to the row after the cursor, which on an up step is the row the step left, so the cursor row could sit above the list where Enter took it unseen. A Step enum now carries the direction and the reveal rests one row past a down step and one row before an up step. A permission that took an open popover dropped the field that held the keyboard and gave none back; the guard now hands it to the draft after the frame. The card read the composer's column once at open, so the first card on a fresh folder could stay 480 wide over a 464-point column after the right sidebar opened; it reads the column every frame now, through a one-entry registry lookup. A model row gains the list's hover fill, the field's keyboard sentence names the agent with no model, and the mode ceiling's comment names its own number.
The card read the composer's column from the last paint, so a sidebar that opened under it left the card at the old width until something else asked for a frame. The composer now records the column's painted width and asks for one frame when it moves while the popover is open.
aorumbayev
added a commit
that referenced
this pull request
Dec 4, 2026
aorumbayev
added a commit
that referenced
this pull request
Dec 4, 2026
aorumbayev
added a commit
that referenced
this pull request
Dec 4, 2026
aorumbayev
added a commit
that referenced
this pull request
Dec 4, 2026
aorumbayev
added a commit
that referenced
this pull request
Dec 4, 2026
aorumbayev
added a commit
that referenced
this pull request
Dec 4, 2026
aorumbayev
added a commit
that referenced
this pull request
Dec 4, 2026
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.
What
The composer's five chips are one model chip — the model in the ink, the effort muted, one caret — and the mode stays a separate control beside it. The chip opens one popover above it with a model search, the model list, the effort as filled pills, a switch row per on/off option, and a titled section for every other group the agent sends, all from the thread's own options. The list keeps the height it opened with and scrolls so the row the keys land on stays whole in the direction they moved, so typing never moves the search field and the edge that cuts a row never dims the row the person lands on; a row's tooltip carries the whole name and description it cuts. The mode keeps its own width up to 220 points and truncates past that, so a mode worded as a sentence never pushes the chip or Send out of the bar. The card follows the composer's column, redrawing when a sidebar narrows it, so it never covers the sidebar, and a permission that takes the popover gives the draft its keyboard back.
Why
A thread with a model, an effort and two toggles spent five equal chips on the bar, so the model and effort competed for the same weight and every group was its own menu.
Test plan
cargo t --workspace --lockedsh scripts/smoke.sh --keep