Skip to content

Subagents popover, model picker flyout, sidebar pins and status dots (UI audit batch A) - #2566

Open
kitlangton wants to merge 2 commits into
devfrom
ui-audit-batch-a
Open

kitlangton wants to merge 2 commits into
devfrom
ui-audit-batch-a

Conversation

@kitlangton

Copy link
Copy Markdown
Collaborator

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. general rows 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 was p.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. general rows 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 uses row_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_time already 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 showed 40m.

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 to run_started and a finished one to created.

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: LIST 12 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 (accent on pinned rows, text on 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::style now holds one vocabulary:

  • status_dot and dot_color: Unread → bg_accent, Attention → warning, Failed → danger.
  • Dot sizes: DOT 7 pt in a row's slot and DOT_BADGE 6 pt over an avatar, the sizes Rune's TabStrip uses.
  • session_busy for a session's running turn, and io_loader for 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_loader instead of a bare rune_kit::Loader. The sidebar's 11 pt label weight goes from 400 to 440.

features/mcp, features/files and features/connect are untouched; other batches cover them.

Checks

  • cargo check --bin opencode-desktop
  • cargo check -p session-view --examples
  • cargo check -p opencode-web --target wasm32-unknown-unknown
  • scripts/guardrails.sh (12/12)

I checked the visuals with headless --snap captures at 2× of the same scenes and playgrounds as the audit's Before set. They're in the audit's after folder.

…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

No deployments
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