Repository navigation
Subagents popover, model picker flyout, sidebar pins and status dots (UI audit batch A) - #2566
Open
kitlangton wants to merge 2 commits into
Open
kitlangton wants to merge 2 commits into
kitlangton wants to merge 2 commits into
Conversation
…tus dots (UI audit batch A) - Subagents popover: 480 pt cap (the shell panel's width, so drilling in no longer jumps), no blank agent column for general rows, named agents as a compact badge, each row's run time right after its own task, 8 pt corners concentric with 4 pt rows on row_active, and a Stop pill that asks once more (red "Stop?") before it stops anything; resets on leave, Esc or after 3 s. - Subagent page bar: Failed in danger and Interrupted in warning; the run time counts from the latest run's start (time.busy) instead of the session's creation. - Model picker: the safe triangle only restarts its 180 ms wait on progress toward the flyout, so jitter no longer makes hovering sticky; the list growing at its foot no longer dismisses the flyout; the Effort flyout wears the dialog's look (12 pt corners, bg_base, 32 pt rows, row_active, 0.5 pt rule). - Sidebar: a folded pin group shows its chevron and session count at rest; Failed sessions get the danger dot instead of the unread one. - One status-dot and busy vocabulary in opencode_ui::style (status_dot, DOT 7 pt / DOT_BADGE 6 pt as Rune's TabStrip, session_busy, io_loader) used by pinned rows, sidebar rows, tab groups, sections, recent, inbox and the new navigation rows. - Sidebar trailing label weight 400 -> 440.
…d clock and show Failed on folded pin groups - reply.rs: a running session's time.busy counts when it falls after its last idle and at or before now_ms (it is ahead of the whole-second run_clock in a run's first partial second); the duration never goes below zero. - pins.rs: HiddenMark::Failed, so a collapsed pin group holding a failed session gets the danger dot; priority Attention > Failed > Unread, with the current and muted sessions filtered as before.
This branch has not been deployed
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.
Batch A of the morning UI audit: P0-01, P0-02, P0-03, P0-08, P1-04 and P1-06, plus the subagents piece of P1-01, the flyout piece of P1-02 and one P1-08 weight in the sidebar.
Subagents popover (P0-01, P1-01)
Before: the list topped out at 360 pt, so task titles got cut off, and opening a shell jumped it to 560 pt.
generalrows kept an empty agent column, and every run time sat in one shared column far from its task. The outer corners were 10 pt around 4 pt rows (not concentric), the hover fill wasp.hover, and hovering a row showed a bare×with no tooltip that stopped the agent on the first click.After: the list grows up to 480 pt, the same width as the shell panel, and a list that has shells opens at 480 pt, so drilling in doesn't jump.
generalrows start their task right after the spinner, and named agents (Explore) get a compact badge. Each run time sits right after its own task. The corners are 8 pt around 4 pt rows (PANEL_PAD + ROW_RADIUS) and the lit row usesrow_active. Hovering shows a Stop pill whose tooltip names what it stops. The first click turns it into a red Stop?, and only a second click stops the agent. Leaving the pill, pressing Esc or waiting 3 s resets it. Delete/Backspace on a row follows the same two steps.I kept the run time as plain text rather than the odometer:
subagent_card::run_timealready explains that a digit rolling every second smears the number while you read it.Subagent page status bar (P0-02)
Before: Done, Failed and Interrupted all used the same faint ink, and the duration counted from
info.created, so a 12 s follow-up on an old worker showed40m.After: Failed uses danger ink and Interrupted uses warning ink, on both the mark and the word. Done stays quiet. The duration starts at
time.busy(when the latest run began). If that's missing, a running session falls back torun_startedand a finished one tocreated.Model picker and Effort flyout (P0-03, P1-02)
Before: every tiny pointer move inside the safe triangle restarted the 300 ms aim timer, so hovering felt sticky. Any change to the list's drawn rect (height included) dismissed the flyout. The flyout was a 6 pt /
layer1/ 28 pt-row menu next to a 12 pt /bg_base/ 32 pt-row dialog.After: the 180 ms aim timer restarts only when the pointer actually moves toward the flyout. Resting or jittering on a row hands the flyout over within 180 ms. The flyout closes only when the list moves or changes width; if only its height changes, it stays put, because it's anchored to its row. The flyout now matches the dialog:
LIST12 pt corners,bg_base, 32 pt rows 2 pt apart,row_active, and the dialog's 0.5 pt rule.Sidebar pins and status dots (P0-08, P1-04, P1-06)
Before: a collapsed pin group hid both its chevron and its count when the pointer wasn't over it. Failed sessions showed the unread dot (
accenton pinned rows,texton project rows). Dots came in 4, 6 and 7 pt with five different color mappings, and pinned and unpinned rows used different busy glyphs.After: a collapsed pin group always shows
▸and its session count, as tab groups already do.opencode_ui::stylenow holds one vocabulary:status_dotanddot_color: Unread →bg_accent, Attention →warning, Failed →danger.DOT7 pt in a row's slot andDOT_BADGE6 pt over an avatar, the sizes Rune's TabStrip uses.session_busyfor a session's running turn, andio_loaderfor short IO actions.Pinned rows, project rows, Recent, tab groups, sections, the inbox and the new navigation rows all use these helpers. The stop button in the subagent list now uses
io_loaderinstead of a barerune_kit::Loader. The sidebar's 11 pt label weight goes from 400 to 440.features/mcp,features/filesandfeatures/connectare untouched; other batches cover them.Checks
cargo check --bin opencode-desktopcargo check -p session-view --examplescargo check -p opencode-web --target wasm32-unknown-unknownscripts/guardrails.sh(12/12)I checked the visuals with headless
--snapcaptures at 2× of the same scenes and playgrounds as the audit's Before set. They're in the audit's after folder.