Repository navigation
fix(ui): the rest of the design pass - #3433
Conversation
…nly while a wait is drawn
…ps each agent's title, the finish dot stays
… mark on hover and on a phone
…ix that is no kind of change; lock and mute marks checked visible
The sidebar's lists after herdr-app's: one-line workspace rows, a branch shown while the pointer is on its row, worktree names without herdr's prefix, the same small ? on a waiting agent's row and its workspace's row, working as a dot and an unread finish as a check. A status change no longer moves a row under the pointer, or under a finger for a second after it lifts. Settings -> Agents order gains Waiting first, with its resting fold; the default stays herdr's order. Part 1 of 5 of the split of feat/header-compact. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…session counts The header and tab row become one compact line with New workspace as the + beside the logo; shortcut hints follow the platform. On a phone the drawer takes four fifths of the screen, is a modal dialog that still swipes closed and holds the focus itself, and the header counts the running and the unseen finished sessions. The next waiting session is found across every PC, and PC load moves to the status bar, off by default. Part 2 of 5 of the split of feat/header-compact. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Approval and prompt cards keep their height and place, the unsent text window names where it goes, a held message always shows its count, the greeting wraps balanced, the context ring only shows and the Compact context button is gone, and queued messages wait for Send now unless sending them automatically is chosen. Part 3 of 5 of the split of feat/header-compact. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Settings rows get touch-sized controls and wording that says what each does, secrets stay in their fields, a search result lands on its group, theme cards hold at 200% zoom, and a failed update is announced as an alert. Part 4 of 5 of the split of feat/header-compact. Co-Authored-By: Claude Opus 5.5 <[email protected]>
One state word across translations, one heading per view, file errors that say why, design tokens within the scale, the palette's footer row, pane swap failures explained, and the dialogs' wording. Part 5 of 5 of the split of feat/header-compact. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ar-v2 The tree is part 1 of 5 (sidebar rows) on the current main; the earlier commits of this branch stay in its history. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
| Layer / File(s) | Summary |
|---|---|
Design tokens and global styles DESIGN.md, src/styles.css |
The design guide documents new surface, typography, spacing, sizing, and accessibility tokens. Global styles apply shared tokens and add responsive, contrast, focus, and reduced-motion rules. |
Component styling src/components/* |
Component styles adopt shared surface, typography, spacing, sizing, focus, and touch-target tokens. They also update scrolling, hover, and responsive behavior. |
Interface behaviors and content
| Layer / File(s) | Summary |
|---|---|
File errors and document browsing src/lib/fileFailure*, src/components/FileViewer*, src/components/MarkdownDocuments*, src/lib/i18n/files.* |
File failures receive categorized localized messages. Remote file locations include the machine ID. Document refreshes retain the prior path and row count while loading. |
Dialog and annotation drafts src/components/NewSessionDialog*, src/components/WorktreeDialog*, src/components/ReplyComments*, src/components/RepoDiffViewer* |
Dialog and annotation drafts are stored by target and restored when reopened. Relevant drafts are cleared after cancellation or successful completion. |
Navigation, pairing, and setup src/components/FilesDialog*, src/components/ConnectPhoneDialog.tsx, src/components/SetupGuide*, src/components/AgentTile* |
Files tabs support keyboard navigation. Pairing controls expose request progress. Setup headings, error messages, and agent installation notes are updated. |
Theme, status, and localized messages src/lib/themeBoot*, src/lib/runtimeMove*, src/lib/pullRequest.ts, src/lib/i18n/* |
Unspecified theme choices use the system scheme, except palette-only records, which use dark mode. Status presentation, machine-prefixed pull-request errors, and translations are updated. |
Browser QA tooling
| Layer / File(s) | Summary |
|---|---|
Design-gate checks and runner scripts/design-gate-checks*, scripts/design-gate-qa.ts, docs/development.md, tsconfig.tools.json |
The new checks cover focus traversal, layout changes, focus-ring ownership, and target sizing. The browser runner measures design properties across staged demo surfaces and writes reports with baseline or allowlist comparisons. |
Ideal-state probes scripts/ideal-state-behaviour-*, scripts/ideal-state-idle* |
A shared demo harness supports probes for pane state, timing, row behavior, idle state, and hidden-page animation frames. |
Regression updates scripts/*regression.ts, scripts/ci-browser.sh |
Existing browser regressions update expected labels, theme behavior, and other interface checks. CI adds the idle-state regression. |
Estimated code review effort: 4 (Complex) | ~60 minutes
Change: Feature
Suggested reviewers: anndii
Merge Risk: 
Low · previous review cccd0
-
The changes remain mergeable with bounded follow-up for appearance inconsistencies, stale drafts, recovery messages, and browser-check limitations. Draft handling deserves particular attention because older text can reappear or replace newer edits.
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 warning Passed checks: 4 passed-
Full details: Title check
-
Explanation
The title "fix(ui): the rest of the design pass" is broadly related to the changeset, which is a broad design-pass continuation touching many UI components, translations, styles, and tests. It is somewhat overly broad and does not name a single primary change, but it refers to a real aspect of the work and is not off-topic. It is not vague in the sense of "misc updates" because it names the design pass.
Full details: Description check
-
Explanation
The description follows the template with a Change section and a Validation section. The Change section explains the scope of the design pass (state wording, file-open failure reasons, design tokens, palette footer, pane-swap errors, dialog wording) and gives stack context. The Validation section lists
bun run check fastwith its result and notes that the browser lanes were not run locally. It does not mention contract-test coverage, which the template asks for only for HTTP/WS changes, and it does not link an issue, which the template asks for only for features. The Change section describes what changed but gives little on the problem being solved, which is a minor gap.
-
Full details: Docstring Coverage
-
Explanation
Docstring coverage is 51.79% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 56 functions across 69 files. (4 skipped: 4 unsupported.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
-
Finishing Touches
-
Generate docstrings
-
- Commit to this branch
- Create a new PR
Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
|
Merge note (merge pass) at head cf3e7d3:
|
…docked (#3467) Fixes #3368. ## Summary With File viewer set to panel and a file docked, pressing a file link in a pane that wasn't the selected one selected that pane on pointerdown. That closed the docked file and widened the panes under the pointer before the release, so the browser sent the click to an element holding the link, and the link never opened its file. - **The click is handed on.** The press that selects another pane now hands its click on to the pressed control when the click lands where that control was at pointerdown. A press dragged off that place still opens nothing, and the pane is still selected on pointerdown as before. - **Web links are covered.** The same applies to web links (`a[href]`). The handed-on click keeps the original click's Ctrl, Cmd, Alt and Shift keys, so a Ctrl-click still opens a new tab. - **One activation per press.** The browser's own click is cancelled when the click is handed on, so a tap can't activate two different controls. - **No stale hand-off.** The hand-off ends at the next press anywhere and when the window loses focus. A press that never clicks (a long press, a release outside the window, a title drag) can't hand a later click on to its link. ## Review The Codex route was unavailable: the team proxy no longer offers gpt-6.1-terra, and the owner's own Codex login is out of usage until Nov 13. An adversarial Fable stand-in reviewed the first version instead. It found no HIGH and four MEDIUMs, all fixed in d9ed948, each with an assertion that fails without its fix: 1. **A stale hand-off after a press that makes no click.** It now ends on the next window pointerdown and on blur. 2. **Touch double activation.** The original click is cancelled with stopImmediatePropagation and preventDefault. 3. **Web links weren't covered.** The lookup is now `button, a[href]`, and the hand-off is a modifier-keeping MouseEvent. 4. **The regression could pass without the hand-off running.** It now asserts that each browser click landed off the pressed control. Its LOWs are left as they are: - the handed-on click is untrusted (`detail 0`); - a negative check waits on a timeout, as elsewhere in the repo. ## Validation - **`scripts/docked-file-link-demo-regression.ts`:** passes 5/5 (it was 2/2 before this round): - file link in a non-selected pane; - press dragged off opens nothing; - a press with no click hands no later click on, after a new press or a lost focus; - Ctrl web link keeps its key; - a tap opens the file and clicks nothing else. Each new assertion fails with its fix removed. - **Browser regressions covering PaneCanvas / pane frames / the Files panel,** run in the CI runner image (`herdr-ci-runner:local`): - 60 of 63 pass, run alone where a first parallel run had flaked (terminal-ghostty, chat-browser-qa). - omo-plan-browser-regression, workspace-rows-regression and omo-chat-browser-qa fail on main in the same image as well, so this change doesn't cause them. - **`bun run check fast`:** green (unit tests 14168 pass, 0 fail, 50 skip). - **Overlap with the redesign stack:** this PR shares `src/components/PaneCanvas.tsx`, `scripts/ci-browser.sh` and `docs/development.md` with #3433, and merges cleanly against #3432's and #3433's heads. The Lead asked for it to open now. --------- Co-authored-by: sisyphus-dev-ai <[email protected]>
…sed screen (#3462) Fixes #3366. ## Summary libghostty's layer sized its cells by dividing xterm's screen by the grid at `onResize`. While xterm's renderer is paused, it reports a resize at once but resizes its screen later, from an idle task. Under the chat lens the pane sits in a `content-visibility: hidden` subtree, where browsers skip ResizeObserver, so nothing measured the screen again. A grid another device widened and gave back under the chat lens left every cell about three times its glyph, for good. The cell now comes from xterm's device cell, which follows the font alone, for the grid xterm has now. It reproduces xterm's own `css.canvas` arithmetic, so it holds for fractional cells, fractional device pixel ratios, zoom and fractional line heights. The second commit corrects the first commit's wording of that mechanism. The first said xterm holds the resize, but it defers it to an idle task; what persisted was the skipped ResizeObserver. That commit also makes the regression step deterministic: it waits for the hidden chat state before the widen, and for the screen to reach the grid width before reading it. ## Review The Codex route was unavailable: the team proxy no longer offers gpt-6.1-terra, and the owner's own Codex login is out of usage until Nov 13. So an adversarial Fable stand-in reviewed this instead. It found the fix correct, with no HIGH: - MEDIUM: the stated mechanism was wrong. Fixed by the second commit's comments. - LOW: the new assertion could fail under load with the fix, or pass in a narrow window without it. Fixed by the two waits. - LOW: the `RenderService.dimensions` getter throws without a renderer. There's no live path to it: the overlay is released before the terminal is disposed. Noted only. ## Validation - `scripts/terminal-ghostty-demo-regression.ts` passes with the fix. With the old metric restored it fails: `the layer's cell is xterm's ({"layer":23.4,"xterm":7.8})`. - Browser regressions that cover `src/lib/ghostty/overlay.ts`, run in the CI runner image (`herdr-ci-runner:local`), all pass: core-history-scroll, replay-clipboard, sidebar-activity, terminal-bundled-mono, terminal-composition, terminal-ghostty, terminal-hangul-seam, terminal-late-faces, terminal-sync-output, terminal-touch-burst, unconfirmed-input, session-history and windows-lens. - terminal-ipad-ime and ui-regression fail on main 2cf36d5 in the same image, so they aren't counted. windows-terminal-browser-qa needs native Windows. - `bun run check fast` is green after the rebase on main (unit tests 14168 pass, 0 fail, 50 skip). - Overlap with the redesign stack: this PR shares `src/lib/ghostty/overlay.ts` and `scripts/terminal-ghostty-demo-regression.ts` with #3433, and merges cleanly against #3432's and #3433's heads. The Lead asked for it to open now.
…ound (#3461) Fixes #3407. ## Summary libghostty's layer draws every pane over xterm's screen, and xterm's selection boxes sit under it. A run with its own background painted opaque over the selection, so a coloured cell was copied but never highlighted: `rgb(50,60,70)` stayed `rgb(50,60,70)` while a plain cell turned the selection's `rgb(74,61,38)`. - A run is now drawn in pieces, split by what the selection covers. A selected piece leaves its background out, so xterm's own selection shows there as it does over a plain cell. Its text is kept readable against the selection colour at the terminal's minimum contrast, as xterm's own rows do. - The selection is read from xterm's render service, which a drag updates on every step (`onSelectionChange` fires only at release), with xterm's own geometry, column (Alt-drag) selections included. - Only rows whose selected columns changed are drawn again. ## Review **Codex (gpt-6.1-terra):** an earlier round ran through the axwith route, before the owner's team-proxy rule. It found three MEDIUMs (mid-drag tracking, Alt-drag column selection, contrast against the selection colour) and a LOW (the test could pass after a renderer fallback). All are fixed in this commit. **Fable stand-in, on the final diff:** today the team proxy no longer offers gpt-6.1-terra, and the owner's own Codex login is out of usage until Nov 13, so an adversarial Fable stand-in reviewed the final diff instead. It confirmed all five earlier findings fixed, with no HIGH or MEDIUM. It noted four LOWs, left out of this PR: - A wide (CJK) glyph straddling the start column of a column selection is treated as selected (`overlay.ts` ~326; xterm tests the head column only). This one is a one-line change, and I'll make it if the merge pass wants it in. - One extra idle frame per scrolled line when nothing is selected. - A one-frame lag of the lifted backgrounds behind xterm's box during a drag. - Faint (SGR 2) text inside a selection is clamped against the theme background. ## Validation - `scripts/terminal-selection-cell-bg-regression.ts` measures the pixels under a drag selection mid-drag and after it: a truecolor, a palette and an uncoloured cell; a coloured cell outside the selection; black text on a light cell; and an Alt-drag column selection. It asserts that libghostty draws at every measurement. It fails on main. - Browser regressions were run in the CI runner image (`herdr-ci-runner:local`, bun 1.4.2, herdr 0.9.3): - **Pass (13):** this PR's regression, core-history-scroll, replay-clipboard, sidebar-activity, terminal-bundled-mono, terminal-composition, terminal-ghostty, terminal-hangul-seam, terminal-late-faces, terminal-sync-output, terminal-touch-burst, unconfirmed-input, session-history, windows-lens. - **Fail on this branch and on main 2cf36d5 alike, in this image:** terminal-ipad-ime and ui-regression. They are not caused by this change. - **Not run here:** windows-terminal-browser-qa needs native Windows. - `bun run check fast` is green after a rebase on main (unit tests 14168 pass, 0 fail, 50 skip). - Overlap with the redesign stack: this PR shares `src/lib/ghostty/overlay.ts` and `scripts/ci-browser.sh` with #3433. It merges cleanly against both #3432's and #3433's heads; the Lead asked for it to open now. --------- Co-authored-by: sisyphus-dev-ai <[email protected]>
…on phones (#3471) Fixes #3369. ## Summary A code block is `div.markdown-code > pre.hl-code`. The wrapper clips with `overflow: hidden` (`ChatView.css`), so it's a scroll container on both axes that never scrolls. Inside a phone sheet it kept the sheet's `overscroll-behavior: contain`. #3294 let `.hl-code`'s vertical overscroll go on, but the stroke then stopped at the wrapper, so a vertical swipe begun on a code block didn't scroll the file. The wrapper now joins the #3294 list; horizontal overscroll behaviour is unchanged. #3294's regression missed this because its outline fixture never loaded `ChatView.css`, which the app always has (PaneTerminal imports ChatView). The wrapper drew with `overflow: visible` there. The fixture now loads it. ## Review Codex CLI adversarial review, gpt-6.1-terra fast xhigh (route: team proxy): no HIGH, MEDIUM or LOW findings. It noted that the regression covers an upward swipe with short code lines, not a horizontal scroll of a wide block or a downward swipe. ## Validation - **`scripts/markdown-outline-browser-qa.ts`:** its phone step passes with the fix. With main's `src/styles.css` it fails, so the fix is still needed after the redesign (#3433). - **Covering browser regressions in the CI runner image (`herdr-ci-runner:local`):** all pass: markdown-outline-browser-qa, phone-glass-header-demo, phone-split-grid-demo, phone-worktree-sheet, touch-long-press-demo. - **`bun run check fast`:** green after the rebase on main 70575cd (unit tests 14276 pass, 0 fail, 50 skip). Co-authored-by: sisyphus-dev-ai <[email protected]>
Fixes #3374. ## Summary The line-breaking reset that gives code and the terminal the browser's own breaking also covered `.composer-text` and `.composer-measure`. So Korean typed in the message box broke mid-word, while the transcript, the inline suggestion and the box's own placeholder keep words whole (`html:lang(ko) body { word-break: keep-all }`). Under `:lang(ko)`, both boxes now take `keep-all` too: - A path or a command still breaks through the box's `overflow-wrap: anywhere`. - The terminal's input line keeps the reset. - The measuring textarea wraps like the visible box, so the box still grows to fit. ## Review Codex CLI adversarial review, gpt-6.1-terra fast xhigh (route: team proxy): no HIGH, MEDIUM or LOW findings. ## Validation - **`scripts/composer-fit-demo-regression.ts`:** at 390 px, "가 <a 24-syllable word> 나" keeps the word whole on a line of its own (3 lines). It passes with the fix and fails with main's `src/styles.css`: `390px: "가 가나다…차 나" keeps the 24-syllable word whole on a line of its own`. So the fix is still needed after the redesign (#3433). - **Covering browser regressions in the CI runner image (`herdr-ci-runner:local`):** - pass: composer-fit-demo, restored-draft-demo, held-rows-demo, unconfirmed-input-demo; - composer-fit-demo failed once in a batch run, then passed twice in a row on its own (a load flake). - **`bun run check fast`:** green after the rebase on main 70575cd (unit tests 14276 pass, 0 fail, 50 skip). --------- Co-authored-by: sisyphus-dev-ai <[email protected]>
…ign proposals) (#3480) ## Summary This implements the owner-approved Settings proposals from the ui-proposals-34 design pass (G-013, G-089, G-094, G-101, G-104, G-111, G-145, G-173, G-176, G-178, G-179, G-201). Each change is small, keeps the existing positions, and adds no always-visible button. Base: `main` (70575cd, after #3431, #3432 and #3433 merged). Head: 2a1934c (rebased on the latest main; `check fast` on old-desktop REMOTE_EXIT=0 on this head). ## Changes per id - **G-013** About's compact update row (version, state, Update button) now wraps inside the row (`flex-wrap`, the fact keeps its words whole, the button stays at the end). Before, with large text on a phone, the version stacked one letter per line over "Ovis" and the button went off screen. Reference: Codex app Settings (a version row whose button drops under its label on a narrow window). - **G-089** On touch screens the settings chips are further apart: the measured gap went from 8px to 12px (`--space-3` instead of `--space-2`). They were already 44px tall. Reference: Claude app (iOS) settings chips. - **G-094 / G-176** The note on Alerts -> external alerts ("외부 앱으로 알림 보내기", a label #3433 already has) is now one plain line: "알림을 다른 앱에도 보냅니다. PC·패널 이름과 열기 링크가 포함됩니다." (en: "Sends alerts to another app too, with the PC and pane names and a link to open the pane."). The sentence that a pane's name may hold your task is dropped, because the owner chose the short text. The plan-limits part of G-094 was already done in #3432. Reference: Claude app notification settings. - **G-101** About's runtime hint (Herdr app core installed, no switch offered) is one line saying what it switches, plus a "How to switch" text link to `docs/guide.md#herdr-app-terminals`. The `.env` / `herdr plugin config-dir` steps are gone from the UI. The "runs" and "installed" variants are now one string. On a touch screen the link keeps the 44px target `.settings-link` already has, so the hint's second line is a little taller. Reference: Codex app (a settings fact with a link instead of instructions). - **G-104** In the move-to-herdr-core plan, the note that scrollback and shell programs do not move is above the pane list, so it is read before "Move everything". The text and its `aria-describedby` id are unchanged. Reference: Codex app confirm sheets (the caveat sits over the list). - **G-111** (verify) Already met on this branch since #3432: when the webhook GET fails, the group stays and its row says it could not read the setting and to reopen Settings. No change. - **G-145** Release notes: the short summary now scrolls with Settings. Only the full changelog (behind "Show every change", or alone when a release wrote no summary) keeps its own scroll box (`.update-changelog`, a focusable region named "Full changelog", framed by a hairline so it reads as its own reader). Measured at 390px: before, `.update-notes` scrolled on its own (382px tall); after, `.update-notes` does not scroll (709px, flows with the page) and only `.update-changelog` scrolls (382px). Reference: Claude app (release notes read inline; the raw changelog on request). - **G-173** Each Settings page except About opens with one dim line saying what it holds (`.settings-page-note`). There is no landing page, and the phone list stays label-only. About is left sentence-free on purpose. Reference: Codex app Settings (one dim sentence under a pane title). - **G-178** The shortcuts search field has the same leading magnifier as the settings search (same `.settings-search` wrapper and CSS). Reference: Zed's keymap editor. - **G-179** (lowest priority) You can type the terminal and chat font sizes where the number was shown (`Stepper unit="px"`). The whole draft is read, so a pasted 200 is refused rather than cut to 20. A whole number in range is applied on Enter or blur; anything else is refused and the field goes back (Escape also reverts). Enter and Escape are left to an IME while it composes (`isComposing` or keyCode 229, as the font-family field does), so a Japanese or Chinese composition is never committed or cleared half-typed. The -/+ buttons stay, and a visually hidden polite output still announces the size they or a typed number set. On touch screens the field is read at `--fs-input` or larger, so iOS Safari does not zoom on focus. The number field is a 24px target (44px on touch), so these two steppers are a little wider on a phone. Interface font size and wheel speed are unchanged. Reference: Warp Settings -> Appearance. - **G-201** The "Composer buttons" row icon changed from the decorative Sparkles to `TextCursorInput` (the message box). The chips keep their own icons, and the touch-only Suggestion chip keeps its sparkle. Reference: Codex app settings (a row's glyph names its object). i18n: ko/ja/zh entries added for the new keys and the replaced keys removed. DESIGN.md: the Settings-parts entry names the typed font size (G-179) and the page line (G-173). Changelog: `changelog.d/settings-design-proposals.md`. ## Screenshots Before/after (demo build, light, Korean, 390 and 1440 where staged): `~/.cache/ovis-tmp/ui-proposals-34/settings/before/` and `.../settings/after/`. The shots come from a copy of the shared harness (`.../settings/capture.ts`), used for both before and after, which: - G-013: serves a revision-bound offer whose running version matches the build, so the compact update row (where the bug is) shows, with release notes in the API's real shape (`notes`, `summary.ko`); - G-101: patches `/api/health` so herdr-core is installed with no switch offered, which makes the runtime hint render; - G-145: opens "Show every change", scrolls the Settings body to its end, and logs which box scrolls; - G-089: logs the measured chip gap and height. G-089, G-101 and G-145 "before" were shot on the base commit (a000989). ## Validation Final fixes in ce4654273 (now 2a1934c after a rebase on main) (the Terra review fixes on top of cef418233). On it: `bun run check fast` on old-desktop (a fresh clone of the branch with the fixes): REMOTE_EXIT=0; `SettingsControls.test.tsx`, `i18n.test.ts` and `conventions.test.ts`: 63 pass; `scripts/settings-pages-demo-regression.ts` and `scripts/composer-fit-demo-regression.ts`: pass. The lines below ran on cef418233 Each run started after the 1-minute load was under 50. - `TMPDIR=… bun run check fast`: pass (workflow syntax, generated types/themes, typecheck, build, unit 14278 pass / 0 fail / 50 skip). - `bun test src/components/SettingsControls.test.tsx` (new, part of check fast): it failed before the IME guard (a composing Enter committed the draft) and passes now. - Browser regressions, one at a time: - `scripts/settings-pages-demo-regression.ts`: pass (30). It now also checks that a stepped size is announced, that the field is at `--fs-input` or larger on a phone, that typed 30 and pasted 200 are refused (nothing saved), and that 16 and then 14 are applied. - `scripts/alert-webhook-demo-regression.ts`: pass (4). - `scripts/composer-fit-demo-regression.ts`: pass (33; reads the chat size from the new field). - `scripts/revision-bound-update-demo-regression.ts`: pass (7). - `scripts/prompt-dock-demo-regression.ts`: pass (37). - `scripts/design-gate-qa.ts`: exits 1 with 335 failures. Before the rebase this was the same 335 as the base commit (set diff empty); none are on a Settings page. They are terminal-view contrast and header/composer targets. - `scripts/ui-regression.ts`: fails outside what this PR touches. This run: "Start uses the folder Browse is showing" (New workspace) after 45 passes. Earlier runs failed elsewhere (the palette's ArrowUp wrap, New workspace's Name field). A clean `origin/main` worktree did not get through its start, so it gives no comparison. - `scripts/update-browser-qa.ts`: fails at its own install build on main and on this branch ("Tsconfig not found …/install/shared/vendor/paseo-e2ee"). Environmental, not this change. - Skipped: `bun run check full`, the CI runner image runs, Windows/macOS. ## Review - Codex Terra (gpt-6.1-terra, xhigh, team proxy) on `cef418233`: two MEDIUM and one LOW, all on G-179's typed size, fixed test-first in `ce4654273`: - MEDIUM: a valid typed size was lost when Settings closed without a blur (sheet swipe, Back). It is now committed on unmount; Escape still reverts. - MEDIUM: -/+ stepped from the saved value while a newer draft was still in the field. They now resolve the draft first. - LOW: the allowed range was only in a tooltip and a rejected value reverted silently. A rejected value now shows the range under the field until the next edit. - Earlier, Codex (gpt-6.1-sol) ran two rounds on G-179: four MEDIUMs (paste cut to two digits, lost size announcement, iOS zoom, IME Enter/Escape), all fixed with failing-first tests; no HIGH.
…field, and the PC named in PR errors (#3481) ## Summary Dialogs group of the owner-approved UI proposals (ui-proposals-34). Base: `main` (after #3433); head `65989edd6`. It adds a second way to reach the worktree and earlier-sessions actions, puts the rename dialog's caption above its field, and names the PC in pull request errors. No new always-visible buttons, and nothing moves. ## Per id - **G-123 (done)**: the command palette lists New worktree, Open worktree… and Earlier sessions… for the selected pane's workspace, the same actions its sidebar row menu has. - When they show: worktrees on a repository's main checkout, where the PC's herdr offers worktrees, never on a watching device; Earlier sessions where the PC's bridge lists them. - Same detection as the sidebar: the probe for repository folders that herdr did not mark moved from Sidebar into `lib/repositoryWorkspaces.ts`. The sidebar, the palette and App's `openWorktree` guard share its per-PC answers, so the palette offers worktrees wherever the row menu does. - Opening: the dialog opens from App through a new optional `AppActions.openWorktree`, as `WorktreeRequestDialog`. That component is keyed by PC, workspace and mode, so pointing it at another repository remounts it: a branch typed for one repository is never saved as another's draft. A dialog replaced while its request runs ignores the answer. Its state lives in `useNewSessionState`. A creation that answers after its dialog was replaced clears the draft only when that draft is still the version it sent. - Probes are deduplicated per round: a question from a round that was dropped (StrictMode remount, or the PC going offline and back) never stands in for the next round's. - i18n: the three labels moved from the sidebar part to the base dictionaries (ko/ja/zh). Reference: Zed's command palette (workspace actions reachable by name) and T3 Code's palette. - **G-181 (done)**: the rename pane and rename tab dialogs use the shared `.field` / `.field-label` pattern, with the caption above the input, as NewSessionDialog does. Reference: the Claude and Codex apps' rename sheets (caption above the field). - **G-127 (verify, then a fix was owed)**: #3433 already names a remote PC by its name in the pull request panel. This adds the case it leaves out: this PC, when several PCs are shown, which had no prefix. App now passes the PC's name to Files / Pull request for a remote PC, or for this PC among several. The panel's heading and error say "workstation · …" and "[workstation] …" there, and the "Run gh auth login there" step stays. Reference: GitHub's mobile app (an error in place, naming the account or host it concerns). - **G-117 (verify-ok)**: the empty session history already says "이 폴더에 저장된 {agent} 대화가 없습니다. 다른 에이전트를 선택하세요." (from #3433). - **G-118 (verify-ok)**: the empty palette already adds "검색어를 줄이거나 지워 보세요." Under a status filter it reads "…위의 전체를 골라 모든 패널에서 찾아보세요." (from #3433). - **G-131 (verify-ok)**: a file read error keeps the file name in the header with Close beside it. The alert line gives the cause by category, for example "PC가 파일을 읽지 못했습니다. 다시 열어 보세요." for a 500. No code change. - **G-186 (not in this PR)**: on hold for the owner's decision. The phone Files sheet has no menu to put "이 폴더에서 찾기" in, and showing the desktop button breaks the no-new-always-visible-button rule. ## Screenshots Demo build, light, Korean, before and after pairs: `~/.cache/ovis-tmp/ui-proposals-34/dialogs/{before,after}`. - G-123 at 1440: `>워크트리` finds nothing before; it lists 워크트리 열기… and 새 워크트리 after. - G-181 at 1440: the caption sat beside the field before; it is above the field after. - G-127 at 390 with two PCs (`G-127-multi`): no PC named before; "workstation · …" and "[workstation] …" after. - G-117, G-118, G-131 and G-186 are unchanged. ## Validation All on head `b4a02508a`, rebuilt on `origin/main` (after #3433's squash) by cherry-picking this group's five commits, plus a changelog wording commit: - `TMPDIR=… bun run check fast`: pass (workflow syntax, generated types and themes, typecheck, build, unit tests 14284 pass, 0 fail). - Tests written first and seen failing on the code before each fix: - `src/components/WorktreeDialog.test.tsx`: retargeting keeps each repository's own draft; a replaced dialog ignores its answer; a draft typed after a replaced dialog's creation was sent survives that answer. - `src/lib/repositoryWorkspaces.test.tsx`: the answer is kept under StrictMode, and when the PC comes back while an earlier question is still out. - `CommandPalette.appLayout.test.tsx`: worktree rows for a repository folder that herdr did not mark. - Other tests added: - `CommandPalette.appLayout.test.tsx`: the palette's worktree rows for a main checkout, a linked worktree, a herdr-core layout and a non-repository. - `PullRequestPanel.test.tsx`: the PC name in PR errors. - Browser regressions on the host, one at a time, through `bun run check run --build bun scripts/<name>`, all pass: `palette-machines-demo-regression.ts`, `context-menu-inputs-demo-regression.ts` (Rename pane dialog), `agent-entry-points-demo-regression.ts` (New worktree dialog), `workspace-rows-regression.ts`, `session-history-browser-qa.ts`, `files-prompt-regression.ts`, `files-panel-demo-regression.ts`, `tab-menu-regression.ts`. tab-menu's earlier failure, which was already on #3433's stack, is gone on main. - In the CI runner image (`herdr-ci-runner:local`, as its `runner` user, fresh clone, one at a time; command in `~/.cache/ovis-tmp/ui-proposals-34/runner-image.md`), on the pre-rebuild head `cf0e32c2e`: the same seven CI-list scripts passed 7/7. It was not re-run after the rebuild, since the sidebar's rendering is unchanged. - Skipped: `bun run check full` / the integration lane, `ui-regression.ts`. - CI runner image on the rebuilt head (`herdr-ci-runner:local`, as its own user, fresh clone, one at a time): the seven listed browser scripts 7/7 pass through CI's `ci-browser-parallel.ts` (214 s), and `tab-menu-regression.ts` passes on its own. - Adversarial review: Codex (gpt-6.1-sol, fast, xhigh; Terra was not served by the team proxy), two rounds: five MEDIUMs, all reproduced and fixed with failing-first tests; no HIGH. ## Final round - Head `65989edd6`, rebased on the latest `main`. Codex Terra (gpt-6.1-terra, xhigh, team proxy) on `b4a02508a` found one MEDIUM and one LOW, fixed test-first in the last commit: - MEDIUM: the palette's New worktree / Open worktree... / Earlier sessions... stayed offered for a disconnected PC and then failed. They now need the PC online. - LOW: opened from the palette, the worktree dialog named the PC by its id. It now shows the PC's name. - On the fixed tree: `bun run check fast` on old-desktop (fresh clone): REMOTE_EXIT=0; focused tests (CommandPalette, WorktreeDialog, repositoryWorkspaces, app-hooks) 17 pass; `scripts/palette-machines-demo-regression.ts` and `scripts/agent-entry-points-demo-regression.ts`: pass. `check fast` on old-desktop on the rebased head `65989edd6`: REMOTE_EXIT=0. - Not included: G-186 (a phone "find in this folder" entry). The owner chose to drop it this round rather than add a new always-visible button.
…, quicker setup start (owner-approved design proposals) (#3485) ## Summary The phone, banner and first-run group of the owner-approved UI proposals (ui-proposals-34, PR 4 of 4), based on `main` at `b8cace07d`; head `1faeebbbf`. Positions stay where they were; no new control is always visible. ## Per id - **G-102 - close the update-available line.** The line offering a release gets the same Close (X) the update-done line already has. It stays closed on this device for that release, keyed by its revision (a moved tag counts as a new offer), and comes back for the next one. A failed or changed install still has no Close until it is dealt with. Settings keeps offering the update either way. The new key `ovis:update-offer-closed` lives in `lib/updateNotes.ts` next to the done line's key and follows the same subscribe-then-read pattern across tabs. Reference: the Codex app's update toast (Update now and a close; the next version shows again). - **G-103 - phone push banner on one line, Close at its right end (owner note).** `PushHealthNotice` joins the shared `.update-notice.is-line` layout: one nowrap row, the sentence cut with an ellipsis (its full text is in the tooltip and in Settings → Alerts), the repair button, then Close at the right end of the same line. Why a repair failed (for example Brave's push setting) must be read in full, so in that case only the sentence wraps (`.is-failure`); the row and Close's place stay the same. Reference: the Claude iOS app's banners (one line, close glyph at the trailing edge). - **G-143 - phone More folded into two groups.** At sheet width (phone), More keeps the next waiting session, Search panes and actions (the phone's only way to the palette), Browse files, Copy link, Alerts and the split tab's pane list. It folds Find in terminal and Search conversation into **Find…** (찾기…), and every other pane and tab action into **Pane and tab…** (패널·탭…). Each opens its own sheet from More's button and takes over More's history entry, so one Back closes it. No item was removed; a group holding just one item is not folded. The phone sheet drops from 12 rows to 7. Desktop and landscape popovers are unchanged. A group still open when the window widens past a phone's width closes, since More lists those items itself there. The Chat/Terminal switch and the tab list were never in More (the header lens and the title's tab sheet), so they stay as they are. To stay under App's hook ceiling, the More state moved into `src/lib/moreMenu.ts`, which lowers the ceiling from 24 to 22. Reference: the Claude iOS app's action sheets (secondary actions grouped behind one row that opens a second sheet). - **G-192 - setup guide reaches Start sooner.** The agents screen's lead is one short line ("Pick one, then press Start." / "하나를 고르고 시작을 누르세요.") instead of two, and its blocks sit one spacing step closer on a phone. Order and Start's place are unchanged. On a 390x844 phone, Start is now fully in view and Connect your phone begins under it (before: Start sat on the bottom edge). Reference: the Codex app's onboarding (one short line over the choices). - **G-032 - verify only.** The manage icon already has its name (`aria-label` "Manage {name}" / "{name} 관리", tooltip "PC 관리"), and the step under an SSH failure points to it by its shape and menu name. The owner rule forbids a visible label beside it, so there is no code change. - **G-031 - verify only.** An SSH failure gives a plain cause with the host:port tried, keeps ssh's own line selectable under it, and adds the Manage-PC step. - **G-139 - verify only.** With no address a phone can open, the QR box says so ("폰이 열 수 있는 주소가 없습니다. 코드를 직접 입력하세요.") at the same size and place (#3433). - **G-198 - verify only.** The welcome title is "Ovis 시작하기" and the subtitle says what the app does and what comes next, so the welcome no longer repeats itself (#3433). ## Screenshots Demo build, light theme, Korean, 390 phone and 1440 desktop where the shot has them: `~/.cache/ovis-tmp/ui-proposals-34/phone/before` and `.../phone/after` (G-031, G-032, G-102, G-103, G-139, G-143, G-192, G-198). The capture harness copy at `.../phone/capture.ts` waits for the welcome's `h1` (the shared harness waited for an `h2` that #3433 had changed). It was used for both runs. ## Tests and scripts - `src/lib/moreMenu.test.ts`: an open group has its items at a phone's width and none once the screen is wider, so it closes (found by the Codex adversarial review: Find… stayed open after a resize to 1440 and lost Search conversation; the test failed before the fix). - `UpdateControls.test.tsx`: the offer line closes for its revision only and comes back for the next; a failed install stays with no Close. - `push-health-demo-regression.ts`: at 390 and 1440, Close is on the repair button's line and is the line's last control at its right end. - Browser scripts that picked a pane or find action straight from the phone's More now open the group first, through the shared `openMoreGroup` in `scripts/header-more.ts`: chat-request-details, conversation-search, deep-link, design-gate-qa, mirror-fold, mobile-tabs, phone-glass-header, phone-safe-area, tab-menu. ## Validation Head `50f5a1494`: my six commits cherry-picked onto `origin/main` `70575cd47`, with no conflicts. Every check below ran on that head. - `bun install --frozen-lockfile` (no changes), then `TMPDIR=$HOME/.cache/ovis-tmp/ui-proposals-34/tmp-phone bun run check fast`: pass (workflow syntax, generated types and themes, typecheck, build, unit 14280 pass / 0 fail / 50 skip). - Browser scripts, one at a time on this PC (1-min load under 80 before each): push-health-demo-regression, revision-bound-update-demo-regression, phone-glass-header-demo-regression, phone-safe-area-demo-regression, conversation-search-demo-regression, chat-request-details-demo-regression, deep-link-demo-regression, mirror-fold-demo-regression, agent-entry-points-demo-regression, phone-split-grid-demo-regression: all pass. - `scripts/ui-contexts-regression.ts` (isolated test herdr): pass, every check including checkPushSettings, checkMobileTabs, checkTabMenu (desktop, phone and tablet) and checkUpdateNotice. - `scripts/design-gate-qa.ts`: 335 failures (terminal-view contrast, chat minimap ticks, header counts). The same 335 as on the pre-rebuild base `a00098952`, so it adds none; the unsent-text visit, which goes through Pane and tab…, passes. I did not run it again on plain `main`. - After screenshots re-taken on this head (same harness copy). Next to the earlier after shots, the only differences are chat timestamps and, from main, the desktop Agents rows that are no longer cut in G-031/G-032 at 1440. - Not run: ui-regression.ts, ui-contexts-layout-regression.ts, the CI runner image runs, the Windows and macOS checks. - CI runner image (`herdr-ci-runner:local`, fresh clone of `50f5a1494`): the ten browser scripts above, 10/10 pass in 287 s. ## Final round - Codex Terra (gpt-6.1-terra, xhigh, team proxy) on `50f5a1494`: one MEDIUM, one LOW, fixed test-first in `22f970fef`: - MEDIUM (G-103): a failed repair's full reason wrapped one letter per line on a narrow phone with large text and could grow the banner past the screen. In that failure state only, the reason now takes the line's width, Close stays top-right and the repair button sits under the reason; the banner is capped at half the screen. The normal banner stays one line with Close at its right end. - LOW (G-102): dismissing the update offer from the keyboard dropped focus to the page; it now moves to the header's More button. - Terra on `22f970fef`: one LOW (the failure layout also moved the controls on a wide screen), fixed in `1faeebbbf`: the grid applies to narrow screens only; push-health checks one row at 1440 and the grid at 320/390. - On `1faeebbbf`: `bun run check fast` on old-desktop (fresh clone): REMOTE_EXIT=0, unit 14296 pass / 0 fail. - On `1faeebbbf`, browser regressions on old-desktop (`bun run check run --build`, one at a time): push-health, revision-bound-update, phone-glass-header, phone-safe-area, conversation-search, chat-request-details, deep-link, mirror-fold, agent-entry-points, phone-split-grid and ui-contexts-regression: 11/11 pass.
Upstream's CSS convention (devswha#3433) asks for var(--app-height, 100dvh) instead of 100vh, so browser chrome and the phone keyboard do not enlarge the room the popover may take. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Upstream's CSS convention (devswha#3433) asks for var(--app-height, 100dvh) instead of 100vh, so browser chrome and the phone keyboard do not enlarge the room the popover may take. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ake rows, and whole Access values (#3821) ## Summary On a phone every segmented control in Settings drew a second, larger outline around its chosen option, and the four choices of **Settings → Appearance → Agents order** lay over each other. Both were reported from an Android phone (1080x2640, dark, Korean) and reproduce on `main` in Chromium with an Android WebView user agent at 360x800, 3x, touch. - **The second outline** (all 18 segmented controls of Settings, any language, 0 at desktop width). Under a finger an option's own box is its hit box, 44px tall in a 34px track, and its `::before` draws the pill (`src/styles.css`). `SettingsControls.css` wrote the chosen option's shadow on the option itself (`.settings-segmented > button[aria-pressed="true"] { box-shadow: var(--shadow-thumb) }`), with the same specificity as the shared rule that clears it and later in the cascade, so the shadow was drawn around the hit box, 5px out of the track above and below. Both rules came with #3433 (70575cd), in 0.5.2. - **The labels.** A stacked row gave each option an equal share of the line with `min-width: 0` under no-wrap labels (#562), so a label wider than its share ran over its neighbour: at 360px each of four options is 68px and "워크스페이스순" is 78.7px. It shows since #3276 (3cfaa7c, 0.5.2) gave the control a fourth, longer choice. In Japanese every neighbouring pair of the four labels overlaps at 320px, and English overlaps at 360px too. Neither comes from #3758, #3776, #3806 or #3810: none of them touches these rules. A second commit fixes one more thing that made Settings look broken on a phone: the values of **Settings → Devices and PCs → Access** broke one letter to a line ("S/e/t", "설/정/됨", "Throu/gh/Tailsca/le") in every language. ## The fix - **One place names the chosen option's edge.** `.segmented` carries `--segmented-chosen-shadow`, and the shared rules draw it on the box that is the pill: the option under a mouse, its `::before` under a finger. Settings sets the property (`--shadow-thumb`, and a ring of `--text` under `prefers-contrast: more`, which had the same fault) and no longer paints the option. A phone's chosen option now looks as the desktop's does. - **Labels that do not fit take rows.** `Segmented` measures its labels as they are drawn (a `ResizeObserver` on each label, so the language, the text size, the fonts arriving and the chosen weight are all followed) and tells its track: `--segmented-widest`, `--segmented-count`. In a stacked row the options share the line equally while the widest label fits a share with `--space-1` on each side; where it does not they go **two to a row** (four make two rows of two, three make two and one), and **one to a row** where it does not fit half the line. Whatever was measured, an option is never narrower than its own label (`min-width: min-content`). Under a finger the rows stand a whole hit box apart (16px), so no tap is shared between two rows. Each label keeps the room its chosen (semibold) weight takes, chosen or not, through a hidden zero-height copy (`::after { content: attr(data-label) }`), so a tap never changes how many rows the options take. - **Why wrap, and not shrink, cut or scroll.** A label is at `--fs-sm`, which is already the 12px floor when compact; an ellipsis takes the word that tells two choices apart ("워크스페…"); Hangul breaks between any two syllables, so wrapping the text inside its option splits the word; and a sideways scroller hides choices a segmented control exists to show at once. The relay's PC filter already wraps its options for the same reason. - **What it was compared with** (src/AGENTS.md). The equal segments follow iOS's segmented control and T3 Code's phone app (`apps/mobile/src/components/ui/SegmentedControl.shared.tsx`). Past them this differs from all three: iOS and Paseo (`packages/app/src/components/ui/segmented-control.tsx`) keep one line by sizing each segment to its label (`apportionsSegmentWidthsByContent`), which leaves these four phrases about 10px apart at 360px with nothing between them, and T3 Code lets a label wrap inside its segment. DESIGN.md has the rule, the reason and a `Layout:` line (a `switcher` whose wrap point is the measured label). - **Access values keep their width** (second commit). A row shrinks its children in proportion to their widths, so the value beside a sentence-long description gave up nearly all of its width, and `overflow-wrap: anywhere` let it fall to one character. On a phone (640px and under) `.settings-fact` now keeps its own width up to its 45% cap (`flex-shrink: 0`) and breaks inside a word only where that word alone is wider than the cap (`break-word`); the description wraps instead. A desktop keeps its layout box for box. The update row, which wraps its value under the version, keeps shrinking as before. The pattern followed is a value row of iOS Settings: the value is read whole and the text beside it gives way. What changes on screen: on phones, the chosen option's outline everywhere, and the shape of the controls with a label that did not fit (Agents order in every language at 320 to 390px; herdr window in English at 320 and 360px and in Japanese; Tidy dictated text in English at 320px and in Japanese; more at 20px text). Every other control keeps its boxes to 0.1px. The Access values change on phones. Nothing moves at desktop width. ## Screenshots (demo fixtures; before is `main` 76a26c0) | | Before | After | |---|---|---| | Chat, 360px, dark, Korean | <img src="https://raw.githubusercontent.com/devswha/ovis/06f2a183d209c125be02f04e736ebca7eab5bad9/01-chat-360-dark-ko-before.png" width="300" alt="main: a second outline around each chosen option"> | <img src="https://raw.githubusercontent.com/devswha/ovis/06f2a183d209c125be02f04e736ebca7eab5bad9/02-chat-360-dark-ko-after.png" width="300" alt="fixed: one pill per chosen option"> | | Appearance, 360px, dark, Korean (Workspaces chosen) | <img src="https://raw.githubusercontent.com/devswha/ovis/06f2a183d209c125be02f04e736ebca7eab5bad9/03-appearance-360-dark-ko-before.png" width="300" alt="main: the labels of Agents order lie over each other"> | <img src="https://raw.githubusercontent.com/devswha/ovis/06f2a183d209c125be02f04e736ebca7eab5bad9/04-appearance-360-dark-ko-after.png" width="300" alt="fixed: two rows of two"> | Every segmented control of a page, before | after, cropped at device resolution: | Appearance, 360px, light, Korean | Appearance, 390px, dark, English | |---|---| | <img src="https://raw.githubusercontent.com/devswha/ovis/06f2a183d209c125be02f04e736ebca7eab5bad9/05-controls-appearance-360-light-ko.png" width="420" alt="Appearance controls, light, Korean"> | <img src="https://raw.githubusercontent.com/devswha/ovis/06f2a183d209c125be02f04e736ebca7eab5bad9/06-controls-appearance-390-dark-en.png" width="420" alt="Appearance controls, dark, English"> | | Terminal, 320px, dark, English (three options: two and one) | Appearance, 320px, Japanese at 20px text (one to a row) | |---|---| | <img src="https://raw.githubusercontent.com/devswha/ovis/06f2a183d209c125be02f04e736ebca7eab5bad9/07-controls-terminal-320-dark-en.png" width="420" alt="Terminal controls at 320px"> | <img src="https://raw.githubusercontent.com/devswha/ovis/06f2a183d209c125be02f04e736ebca7eab5bad9/08-controls-appearance-320-dark-ja-text20.png" width="420" alt="Appearance controls, Japanese, largest text"> | Devices and PCs → Access, before | after (second commit): | 360px, dark, Korean | 390px, light, English | |---|---| | <img src="https://raw.githubusercontent.com/devswha/ovis/06f2a183d209c125be02f04e736ebca7eab5bad9/11-access-360-dark-ko.png" width="420" alt="Access values before and after, Korean"> | <img src="https://raw.githubusercontent.com/devswha/ovis/06f2a183d209c125be02f04e736ebca7eab5bad9/12-access-390-light-en.png" width="420" alt="Access values before and after, English"> | | 1440px before | 1440px after (identical boxes) | |---|---| | <img src="https://raw.githubusercontent.com/devswha/ovis/06f2a183d209c125be02f04e736ebca7eab5bad9/09-appearance-1440-dark-ko-before.png" width="420" alt="main at 1440"> | <img src="https://raw.githubusercontent.com/devswha/ovis/06f2a183d209c125be02f04e736ebca7eab5bad9/10-appearance-1440-dark-ko-after.png" width="420" alt="fixed at 1440"> | ## Validation Head `de9532987` (two commits on `main` 76a26c0; it merges cleanly into `main` `fa572277d`). - **New regression** `scripts/settings-segmented-demo-regression.ts` (in `scripts/ci-browser.sh`): every segmented control of every Settings page read by its boxes, never by pixels or words: nothing an option draws leaves its track, a chosen option's pill holds its own label, no label leaves its option or lies on its neighbour, no two options share a point, wrapped options go two to a row at most and share their row equally. Phone at 390, 360 and 320px in English, Korean, Japanese and Chinese; each of the four choices of Agents order in turn at 360px in Korean; 20px and compact text; `prefers-contrast: more` on a phone and at 1440; a mouse at 1440. - On `main` it fails at the first page: `Density, option 1 (Comfortable) draws a 153px by 44px box that leaves its 314px by 34px track`. - On `main` with only the outline neutralised it fails on the labels: `Agents order, option 1 (Waiting first) and Agents order, option 2 (Workspaces): the labels lie over each other by 2.9px`. - It also finds the narrowest width where Terminal → herdr window's three options share a line (English) and taps each there: the line must hold. Without the weight reserve it fails at 383px (`choosing option 3 keeps the line`: one row became two). - It checks that no `.settings-fact` on any Settings page is narrower than its own text while its cap has room. On the segmented-only commit it fails: `the fact "Set" is 15.9px wide, while its text takes 27.5px and its cap is 141.3px` (390px, English). - On this head it passes (about 60s). - **Checks**: `bun run check fast` passed locally on this head (typecheck, build, 16,955 unit tests, 0 failures). The 52 browser scripts of `scripts/ci-browser.sh` that open Settings passed on the VM pool on this head (4 VMs, 438s, no reruns, no known-red). Visual QA: two rounds of two read-only reviewers (round 1 REVISE, resolved; round 2 PASS and PASS), and a gate review (one desktop blocker, resolved; then APPROVE). - **Before/after on every Settings page**, 28 cases x 9 pages per build (320, 360, 390 and 1440; dark and light; Korean, English, Japanese, Chinese; 20px and compact text; more contrast), with the same geometry probe: `main` 526 defects, this head 0. - **Desktop did not move**: at 1440 (dark and light, Korean and English, and more contrast) every element box of the dialog on every page is identical before and after (19,050 boxes). Inside the dialog 123 of 140 captures are pixel-identical; the other 17 differ by at most 112 pixels of at most 2/255 on rounded corners, as two captures of `main` itself do (129 of 140, at most 4/255). - **Other users of `.segmented`** (Files tabs, diff layout, relay filter): the shared rules compute the same fill and edge as before for a control that is not Settings', under a mouse and a finger, dark and light. - `check-draft-guard` on the changed stylesheets and component: clean. - Not run: WebKit (Playwright's WebKit does not start on the PC without system packages; the rules use `clamp()` and `max()` in `flex-basis`, `min-content` and a `ResizeObserver`, all in Safari 15.4 and later), the Android emulator (the fault reproduced in Chromium), a Lighthouse audit (no change to loading or structure). ## WCAG 2.2 AA (the changed control, in the browser) | Item | Result | Evidence | |---|---|---| | Contrast 1.4.3, 1.4.11 | PASS | Fills, text and tokens unchanged; the chosen option still parts from its track by fill, weight and text colour (`src/lib/settings.test.ts` holds the floors for every theme), and by a ring of `--text` under `prefers-contrast: more` | | Focus 2.4.7, 2.4.11 | PASS | The focus ring is drawn on each option in one and in two rows and nothing covers it; with rows a hit box apart the ring of one row stays clear of the next | | Target size 2.5.8 | PASS | Each option's hit box is 44px tall and at least 44px wide (the narrowest measured on 200 phone pages is 44.75px); no two hit boxes share a point (asserted by the regression) | | Keyboard 2.1.1, 2.1.2 | PASS | Unchanged buttons; Tab order is the reading order in two rows | | Reflow 1.4.10, text spacing 1.4.12 | PASS | None of the 200 phone pages scrolls sideways, at 320px included; with line height 1.5, letter spacing 0.12em and word spacing 0.16em applied the probe finds 0 defects on 36 pages | | Dragging, authentication, help, entry | N/A | None on this surface | | State-stable controls | PASS | Each option of the four-option control keeps one box (138x44 in a 284x78 track at 360px) across its four states, in Korean and English | | System and surfaces | PASS | No new colour, blur or shadow: the edge is the existing `--shadow-thumb` | ## Seen and left alone - Phone Shortcuts: long select values end in an ellipsis; `main` and this head alike. - The relay dashboard's PC filter and the Files dialog's tabs size `.segmented` on their own; they are not Settings and were not changed. - On a phone with a hardware keyboard, the row's sentence drawn on keyboard focus can lie over the top of that row's own control; `main` and this head alike. - Keyboard focus on a touch device rings the option's 44px hit box, not its 28px pill; `main` and this head alike. - At 1440 the theme strip's next arrow overhangs its frame by 8px; it reads as intended. --------- Co-authored-by: sisyphus-dev-ai <[email protected]>
Upstream's CSS convention (devswha#3433) asks for var(--app-height, 100dvh) instead of 100vh, so browser chrome and the phone keyboard do not enlarge the room the popover may take. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Upstream's CSS convention (devswha#3433) asks for var(--app-height, 100dvh) instead of 100vh, so browser chrome and the phone keyboard do not enlarge the room the popover may take. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Upstream's CSS convention (devswha#3433) asks for var(--app-height, 100dvh) instead of 100vh, so browser chrome and the phone keyboard do not enlarge the room the popover may take. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Upstream's CSS convention (devswha#3433) asks for var(--app-height, 100dvh) instead of 100vh, so browser chrome and the phone keyboard do not enlarge the room the popover may take. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Upstream's CSS convention (devswha#3433) asks for var(--app-height, 100dvh) instead of 100vh, so browser chrome and the phone keyboard do not enlarge the room the popover may take. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ot, title tap on touch (#4988) ## What changed Part of #3466 (design pass follow-ups). Each fix comes with a test that fails on `main`: - **Item 1 (and item 2 within one window):** closing a reply comment's form wrote that form's copy of the draft over the shared draft, so with one pane in two split slots, closing the older form overwrote edits made in the other slot, and closing it after the other slot saved brought the saved comment back as a draft. Every edit already persists, so the close-time write is dropped. (A form left open still writes its own copy on the next keystroke; that and the cross-window case stay in the issue.) - **Item 3:** a stored appearance with `palette: null` but valid `darkTheme`/`lightTheme` and no valid `theme` booted dark even on a light OS. The legacy dark fallback now applies only to records without the newer theme sides; a legacy palette record still boots dark (tested). - **Item 7 (last part):** a tap on a split pane's title on a coarse pointer focused the pane's input and raised the on-screen keyboard; main's pre-#3433 coarse-pointer guard is back for the click. Enter/Space on the title still focus the input. No layout or contract change; the touch behaviour returns to what it was before #3433. ## How it was checked - New tests (`ReplyComments.draft.test.tsx`, `themeBoot.test.ts`, `PaneCanvas.titleTap.test.tsx`): 4 fail on `main`, all pass with the fix. - Neighbouring suites (PaneCanvas.appLayout, replyComments, settings, themeBoot, conventions): 198 pass. - Reviewed by omo-native-code-reviewer (CLEAR; its MEDIUM about typing in a still-open form is pre-existing and noted above, the changelog was narrowed to closing).
Change
The rest of the design pass:
subheadings.
server error, no connection).
follows).
wording (New workspace, New worktree, Install an agent, session history, setup guide).
Stack
Part 5 of 5 of the split of
feat/header-compact, the redesign the owner tried on the preview,cut into one PR per surface so each can be tested on its own. The five PRs stack: this one is based on
feat/settings-design-pass(#3432).Merge them in order: #3276, #3430, #3431, #3432, #3433. When the PR below this one merges, GitHub moves this one's base to
main(the merged branch is deleted); then merge
maininto this branch so the diff shows only thispart. The five stages together equal
feat/header-compactplus themainit now sits on, withthe changelog cut into one fragment per PR.
Validation
bun run check faston this PR's tree: passed (13,658 unit tests pass).replaced in a later one, a browser script expecting a later stage); the confirmed ones were fixed
by moving those changes between stages.
🤖 Generated with Claude Code