…d its foot is the gear alone (#3961)
## Change
The maintainer asked that a phone's workspace list not spend rows on
**Open agent inbox** and **Change PC** ("모바일의 경우 왼쪽 사이드바에 많은 줄을 차지하지
않았으면해. PC 바꾸기도 마찬가지야"). He compared three variants on a preview, then
picked the Ovis mark in the drawer's head with the gear alone at its
foot, without a Change PC icon ("pc 바꾸기 필요한가? 어차피 사이드바에 머신별로 나오는거아니야?").
On a phone (below 769px):
- **The drawer's head.** With the drawer open, the toggle's place holds
the Ovis mark (`.drawer-toggle.is-mark`, `OvisMark`) instead of the X.
It is a button named and titled **Open agent inbox**, and it opens the
inbox mode. The setup guide's shell offers no inbox, so it keeps the X.
The design follows the app mark at the head of the Codex and Claude
apps' sidebars, which is their way home.
- **The drawer's foot is the gear alone.** Neither the Open agent inbox
row nor the Change PC row is drawn there.
- **Change PC** is now the last row of Settings' page list at the
drawer's widths (`.settings-change-pc`, `DRAWER_QUERY`, below 769px),
only where the page shows one PC of a list: the phone app or the relay
shell. Getting back to the list of PCs is drawer → gear → Change PC,
three taps. The row sits under the pages and needs no scrolling at 390
(picture below). Before, Settings' Change PC was under Devices and PCs →
More → This app, five taps deep, so I put a row on the list rather than
moving it within its section. That row stays, and so does the access
gate's.
- **Closing without the X.** The drawer closes by a tap on the dimmed
pane beside it, a swipe, Back, or Escape. It also starts with **Close
workspace list** (`.drawer-close`), a named control that a screen reader
reads; it is drawn as a button only while the keyboard is on it.
- **A double tap on the menu button.** I chose a time guard over moving
the mark. The mark sits exactly where the menu button was, so a tap on
it within 400 ms of the click that opened the drawer is that double
tap's second half and does nothing. The guard compares the two clicks'
own `timeStamp`s (`SECOND_TAP_MS` in lib/useSidebarLayout.ts), so there
is no timer. I kept the mark in place because the header row over the
drawer has no other free spot: moving it would put it on the pane's
title, whose tap opens the tab list.
Wide layouts are unchanged. From 769px, the sidebar's foot still has the
phone app's or relay's Change PC row, and a collapsed sidebar's hover
peek keeps its Open agent inbox row.
Also, from the review of #3954:
- `inbox-mode-demo-regression`'s stale PASS wording is fixed.
- `sidebar-peek-demo-regression` now checks the peek's Open agent inbox
row, the only sidebar way in there.
## After the first review (second commit)
- **641-768px gap:** at those widths the drawer had no Change PC row and
Settings' list had none either, because the list's row followed the
dialog's 640px narrow width. It now follows the drawer's own width.
`drawer-modal-regression` checks it at 700px, where the row sits under
the page list beside the open page.
- **Deterministic guard test:** the guard is `secondTapOf` in
`lib/useSidebarLayout.ts`. `useSidebarLayout.hook.test.ts` drives
`toggleDrawerByButton` and `secondTapOfOpening` with fixed timestamps:
within the window, at its edge, and after a close by another way. The
browser test no longer has to rely on two real taps landing close
together.
- **Stale stamp:** the opening stamp is cleared whenever the drawer
closes.
- **Comment:** MachineSidebar's comment now says "last row".
## After GitHub's browser run (third and fourth commits)
- **The open drawer lost its disclosure state.** The X carried
`aria-controls="workspace-drawer"` and `aria-expanded="true"`. The Ovis
mark in its place opens the inbox and rightly carries neither, so with
the drawer open nothing said it was expanded. The named **Close
workspace list** carries both now.
- Four browser scripts on GitHub waited on that control:
sidebar-activity, pane-mute-captures (through pane-mute-demo-run),
workspace-touch-reorder and sidebar-agent-tree. With the attributes back
they find it again.
- The two places that tapped the old X to close the drawer
(sidebar-activity, ui-regression) tap beside it instead.
- omp-question-compat reads the drawer's `is-open` state and closes it
through the named close.
- **The double-tap check asserts or fails.** drawer-modal's double-tap
check no longer skips itself when its two taps land 400 ms or more
apart. It fails with the gap, and the guard's edges are the hook test's.
## Pictures (demo build, 390×844, dark, drawer open)
The phone app with several PCs, before and after:
<img
src="https://raw.githubusercontent.com/devswha/ovis/6d7401b437ab8c146597bdcafc9d7aff3421d553/before-app-several-pcs-390-dark.png"
width="240"> <img
src="https://raw.githubusercontent.com/devswha/ovis/6d7401b437ab8c146597bdcafc9d7aff3421d553/after-app-several-pcs-390-dark.png"
width="240">
The phone app with one PC, before and after:
<img
src="https://raw.githubusercontent.com/devswha/ovis/6d7401b437ab8c146597bdcafc9d7aff3421d553/before-app-one-pc-390-dark.png"
width="240"> <img
src="https://raw.githubusercontent.com/devswha/ovis/6d7401b437ab8c146597bdcafc9d7aff3421d553/after-app-one-pc-390-dark.png"
width="240">
A phone browser (no Change PC anywhere, as before), before and after:
<img
src="https://raw.githubusercontent.com/devswha/ovis/6d7401b437ab8c146597bdcafc9d7aff3421d553/before-browser-390-dark.png"
width="240"> <img
src="https://raw.githubusercontent.com/devswha/ovis/6d7401b437ab8c146597bdcafc9d7aff3421d553/after-browser-390-dark.png"
width="240">
The gear's Settings in the phone app, before and after: Change PC at the
end of the list.
<img
src="https://raw.githubusercontent.com/devswha/ovis/6d7401b437ab8c146597bdcafc9d7aff3421d553/before-app-several-pcs-settings-390-dark.png"
width="240"> <img
src="https://raw.githubusercontent.com/devswha/ovis/6d7401b437ab8c146597bdcafc9d7aff3421d553/after-app-several-pcs-settings-390-dark.png"
width="240">
The phone app is a stand-in `window.Capacitor` on the demo build, the
same one the new test uses.
## Validation
On cc19360 (the fourth commit):
- `bun run check fast`: exit 0, every step ok (unit tests 538.3 s).
- In the CI runner image, every lane script that uses the drawer's
`aria-controls` or pane-mute-demo-run passed: herdr-profiles,
pane-mute-captures, pane-mute, phone-worktree-sheet, recent-folders,
sidebar-activity, sidebar-agent-tree, workspace-touch-reorder and
drawer-modal. ui-regression failed in that batch, at its desktop reorder
step (line 1788, after the drawer step it changes at line 588, which ran
and passed). Alone it failed once more, on a different step (a split's
route handled twice). Then side by side it passed, on this head and on
main.
On the second commit (64c84a2):
- `bun run check fast`: exit 0, every step ok (unit tests 519.5 s). This
includes the new `useSidebarLayout.hook.test.ts` case.
- In the CI runner image: drawer-modal (with the 700px check),
settings-pages, phone-back and inbox-mode passed, 4/4 in 110.8 s.
On the first commit (7a889c9):
- `bun run check fast` (TMPDIR under ~/.cache/ovis-tmp, heavy slot) on
the pushed head: exit 0. Every step ok: workflow syntax, generated types
and themes, typecheck, build, unit tests (542.8 s). An earlier run
caught App.tsx going one hook over `app-hooks.test.ts`'s ceiling, so the
double-tap stamp moved into `lib/useSidebarLayout.ts`.
- `scripts/drawer-modal-regression.ts` (extended), run locally and in
the CI runner image:
- the open drawer's head is the mark (named and titled Open agent inbox,
no `aria-expanded`);
- the drawer holds the named close, and its foot is the gear's row
alone;
- it closes by a tap outside, Back (staying on the pane), Escape, a
swipe, and the named close reached by Tab (drawn while focused, focus
back to the toggle);
- a double tap on the menu button (the two clicks' timeStamps 132-148 ms
apart) opens the drawer and not the inbox, and a tap past 400 ms (waited
for on `performance.now()` against that click's timeStamp, no sleep)
opens the inbox;
- with a stand-in phone app, the drawer has no Change PC row, the gear's
Settings list ends in Change PC, which calls `HerdrShell.disconnect`,
and a 1440 window keeps its Change PC row.
- In the CI runner image (`herdr-ci-runner:local`, `heavy-run.sh`,
ci.yml's `ci-browser-parallel.ts` step with `BROWSER_SCRIPTS` and
`BROWSER_RETRY=0`), these passed, 19/19 in 513.6 s: drawer-modal,
phone-back, sidebar-declutter, sidebar-filter, render-crash, pc-load,
deep-link, workspace-rows, tap-targets, agent-state-groups,
sidebar-machine-layout, sidebar-spacing, phone-safe-area,
terminal-autoswitch, settings-pages, sidebar-peek, sidebar-split,
setup-row and hide-pc. These passed too: ui-regression,
ui-contexts-layout, and the three inbox-mode scripts.
- `ui-contexts-regression`: three failures, then two passes, all on the
branch's head.
- The three failures were all in `newtab-typeahead-regression.ts`'s
frame count: "the page's frames for the new tab are all heard". The
typed text was heard intact each time, in its touch case twice and its
dialog case once. Three of the script's last five commits worked on that
comparison (#3691, #3713, #3788).
- Then on the pushed head it passed twice, and origin/main (bcc55ef)
passed three times, all alone in their own slots.
- This change sends no terminal frames. I count it as that known flake,
not a regression.
- Scripts that closed the drawer by its X (deep-link, pc-load,
sidebar-filter, render-crash, sidebar-declutter, workspace-rows) now tap
outside it or wait on `#workspace-drawer.is-open`. inbox-mode's drawer
block enters by the mark, past the double-tap window.
- `sidebar-peek-demo-regression` (new check, from #3954's review):
passes light and dark, locally and in the image.
- Not run: `bun run check full`, the integration lane, Windows, macOS,
and a real iOS/Android app (the app is a `window.Capacitor` stand-in).
Change
What was wrong. With the sidebar shown (from 769px), three things on one screen opened the agent inbox: the Ovis mark at the sidebar's top left, an Open agent inbox row at the sidebar's foot, right above the Settings gear, and the same item at the end of More. The maintainer asked for the row above Settings to go, since the Ovis mark already does it.
The fix. Where the Ovis mark is drawn and opens the inbox (from 769px with the sidebar shown, outside the inbox mode), it is the classic shell's only way in. Neither the sidebar's foot row nor More's last item is drawn there. One flag in
App.tsx(markEnters) decides all three.Each layout keeps one obvious way in:
Where I kept the entries instead of adding a mark. A phone's header and a collapsed sidebar draw no Ovis mark: a phone's header row holds the pane's title, and the collapsed header holds the palette and sidebar buttons before the tabs. Adding a mark there would put a new control in each of those rows just to replace a menu item, so More (and the phone drawer's foot row) still offer the way in.
The mark already says what it does. It is a button named and titled Open agent inbox in all four languages (en; ko 에이전트 인박스 열기; ja エージェント受信トレイを開く; zh 打开 Agent 收件箱, all checked on the page). In the mode, the mark at the top of the rail still says Back to Ovis and returns to the app as before. The design follows the Codex and Claude apps, where the app's mark at the head of the sidebar is the way home and no row repeats it. DESIGN.md's sidebar footer, inbox mode and More entries say this now.
Telemetry. Nothing is added, removed or renamed.
shared/telemetry.tsis untouched, and so are the receiver's fingerprint and the notice.inbox_by_buttonis still counted by the mark, andinbox_by_menuby More wherever More still offers the item. Where the foot row and More's item are no longer drawn, they no longer count. Theinboxshown mark still follows whether the mode is offered, which is unchanged.Pictures (demo build, dark)
Before and after at 1440, sidebar shown: the foot row above the gear is gone.
Before and after at 1440, More open: no Open agent inbox beside the mark.
After at 1440 with the sidebar collapsed (no mark): More keeps it.
At 390 the phone is unchanged, before and after: the drawer's foot row, then More.
Validation
bun run check fast(TMPDIR under ~/.cache/ovis-tmp, heavy slot): exit 0. Every step ok: workflow syntax, generated types and themes fresh, typecheck, build, unit tests (527.7 s), actionlint.herdr-ci-runner:local, through~/.ovis-toolchain/heavy-run.sh): ci.yml'sci-browser-parallel.tsstep withBROWSER_SCRIPTSlimited to them andBROWSER_RETRY=0, at 854679e:inbox-mode-demo-regression80.4 s,inbox-mode-panes-demo-regression149.6 s,inbox-mode-rail-demo-regression111.0 s,ui-contexts-layout-regression137.9 s: pass.ui-contexts-regression(it runstab-menu,mobile-tabsandusagechecks): pass, 290.3 s. Its first run failed inupdate-notice-regression.ts, which readsgit rev-parse HEAD, because the container's user could not read my copy of the checkout ("dubious ownership"). I allowedsafe.directory, rebuilt, and it passed. That was my setup, not this change.setup-row,sidebar-declutter,sidebar-peek,sidebar-spacing,sidebar-split,sidebar-split-access,agent-state-groups,hide-pc,pc-load,deep-link,phone-back,tap-targets,terminal-autoswitchandpreferences-syncdemo regressions: 14/14 pass in 271.8 s with 3 workers. Check's report then exited 1 on the same git ownership refusal (its source identity), after every script had passed.scripts/inbox-mode-demo-regression.tschanged with the behaviour. The wide-window block now asserts that neither More nor the sidebar's foot offers Open agent inbox beside the mark, and it enters by the mark. The other wide-window ways in use the mark. The two collapsed-sidebar blocks still enter by More, and one asserts that no mark is drawn. The phone blocks are unchanged: More's last item and the drawer's foot row.data-window-controlsheader: the mark, which opens the inbox. Back to Ovis gives the mark back. The mark's name and title are in en, ko, ja and zh.bun run check full, the integration lane, Windows and macOS.