Repository navigation
feat(phone): draw the workspace's tab row at every phone size - #3632
Closed
goyon300-hash wants to merge 1 commit into
Closed
goyon300-hash wants to merge 1 commit into
goyon300-hash wants to merge 1 commit into
Conversation
A phone drew no tab row: the header's title opened a bottom sheet listing the workspace's tabs, so switching tabs cost two taps and covered the pane. The row is now drawn under the header at every width, a phone's included, and the sheet is gone. - The row leads with the workspace's name, which opens the workspace drawer, and ends with the + as its own cell, so neither covers a tab. A tab is at most the row's width, its name cut with an ellipsis, and the open tab is always wholly in view. - A short screen (at most 700px tall) draws the row compact, 36px instead of 44px, rather than leaving it out. The row is never hidden, a single tab included: the workspace's name and the + are useful with one tab too. - A tab herdr still names by its number draws its pane's title instead, with herdr's number before it only where two tabs would otherwise read alike. Display only: herdr's label is never written, and the tooltip keeps it. - A split tab's 1/2 in the header is a button on a phone, listing the tab's panes, the open one marked. - The pane's and the tab's actions are the row's menu; the header's More no longer repeats them, and the phone's glass header is gone, the row sitting between the header and the transcript. The row reads the runtime's snapshot in its own order and never writes the Herdr app's layout document; where the runtime offers no rename, move or split, the row offers none.
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
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. |
|
All contributors have signed the CLA. Thank you! |
Author
|
I have read the CLA Document and I hereby sign the CLA |
This was referenced Nov 12, 2026
devswha
added a commit
that referenced
this pull request
Nov 12, 2026
#3761) ## Change **Web side** of the phone Back fix. It reaches phones when the PC updates Ovis: a browser tab, the installed PWA and the page inside the app all load it from the PC. The **shell side** (the Android app never passed Back to the page, so there every Back left the app) is a separate PR and needs a store build. No issue: the maintainer reported it ("on a phone, Back does not close what is open, the whole app goes away"). ### What was wrong Measured on an Android 17 emulator (Chrome 145, the real Back key) and in a phone-sized browser, on main at `968d6faba`, for 29 surfaces, each opened cold and after two pane moves: - Several surfaces never held a history entry, so Back left the app from the first screen, or went to the pane before with the surface still up: the workspace drawer, New workspace opened from it, the agent list and the folder browser inside a dialog, the usage sign-in and account dialogs, Add PC, the device approval prompt, the usage popover, a file's More menu, the Changes base picker, the reply comments list, the relay shell's Ready checkpoint. The terminal's find bar swallowed one Back and stayed. - With two things open (the drawer and a row's menu over it), the first Back closed the menu and the second left the app with the drawer open: all sheets shared one entry and every traversal closed all of them. - Only a phone's width counted. A phone on its side, or a tablet, got no entry for a menu or a dialog. - Chromium's Back skips every entry of a page that added one with no tap since the user's last Back or Forward (its [history manipulation intervention](https://chromium.googlesource.com/chromium/src/+/main/docs/history_manipulation_intervention.md)). An entry made right after a Back was skipped, so the next Back left the app with the surface still up: Files, back in front after Back closed a file opened from it, is the common case. Measured on the device: an entry is kept after a tap, and through a step the page takes by itself (`history.back()`, or going forward again onto an entry), and is skipped after a system Back with no new tap. ### What changes One mechanism, `usePhoneSheetBack` in `src/lib/sheetHistory.ts`, which every surface over the app goes through: - **Surfaces are a stack.** Back closes the one on top. One still up under it stays, and the top one's own close (Cancel, Escape, an item) comes back to it. A busy dialog refuses Back and keeps its entry; the device approval prompt answers nothing on Back (Deny and Approve are its ways out). - **Where Back is the system's**: a phone's width, and any screen worked by touch alone (`BACK_QUERY`: a phone on its side, a tablet). A desktop's Back stays the panes'. - **No entry is made where Chromium's Back would skip it.** A sheet that closes itself over one that stays hands its entry back with no step. A Back that leaves a sheet up goes again onto the entry it left (Navigation API `traverseTo`) instead of making one. Files, in front again once Back closed the file or the diff opened from it, goes onto the entry that Back left and takes it (`returns`). Any other sheet that opens with no tap behind it makes its entry at the next tap. - **A step the app takes by itself is no Back.** Settings, a file, a diff or a web page closing by its own control tells the sheets (`sheetStep.goingBack`): the step closes no sheet, keeps what the last tap allowed, and goes past a sheet's entry lying over its own. So Add PC opened from Settings' Add a connection stays up as Settings closes under it, and Files takes Back again as soon as a file opened from it is closed by its X. A traversal the browser refuses is told to the sheets at once (`sheetStep.dropped`), and a step that lands nowhere is waited for one second at most, as `settingsHistory.ts` bounds its own. - **Every surface takes part**, and only while it is drawn: the drawer, New workspace and the lists inside it, the usage dialogs and popover, Add PC, the approval prompt, the agent picker, a file's More menu, the Changes base picker, reply comments, the Ready checkpoint, the terminal's find bar. - **A test that fails when a new surface forgets**: `src/conventions.test.ts` ("surfaces over the app") scans the components for a dialog, a sheet, a menu or a popover and requires `usePhoneSheetBack`, an entry of its own (the diff viewer, the web panel) or a stated reason (the composer's `/` list, which is the keyboard's). - **A browser regression that presses Back**: `scripts/phone-back-demo-regression.ts`, at 390x844 and on its side, by touch. It also counts the taps behind every entry the app adds: none may be added with no tap since the user's last Back or Forward. Kept as it was: Back sends nothing to a pane, closes no pane and no tab, and discards no draft and no unanswered prompt (a draft stays when Back moves to the pane before). With nothing open Back goes to the pane before, and from the first screen it leaves the app at once. No "press again to exit": Android draws that way out itself (predictive back), and a press held back would break it. Design source (`src/AGENTS.md`): Android's own rule for a [bottom sheet](https://m3.material.io/components/bottom-sheets/guidelines), a menu and a navigation drawer (Back dismisses it, then the screen under it navigates) and [predictive back](https://developer.android.com/design/ui/mobile/guides/patterns/predictive-back), and what the Android apps of two coding-agent tools do, read in their source: [Paseo](https://github.com/getpaseo/paseo) (`isolated-bottom-sheet-modal/visibility-tracker.ts` at `68818067f`) and [T3 Code](https://github.com/pingdotgg/t3code) (`apps/mobile/src/lib/backHandler.ts` at `591188471`) give the system's Back to the surface opened last, a stacked sheet before the one below, for as long as it is on screen. Ovis is a page, where that Back is a step in the history, so each surface holds an entry instead. The Claude and Codex apps were not looked at. DESIGN.md says the same. ### Behaviour a reviewer may not expect - On a phone, closing what was opened over Files (a confirmation, the command palette) no longer closes Files with it. On main that close was a side effect of the shared entry. - On a touch screen a dialog holds a history entry at every width, so a state read while it is up differs from the entry under it by the dialog's marks (`ovis:sheet`, `ovis:sheet-under`). - A surface closed by its own control steps off its entry a moment later. A Back pressed, or a page load the browser starts (a test's `reload` or `goto`), before that step lands is spent on it (the load is dropped, `net::ERR_ABORTED`). A load the page itself asks for first goes through (measured in the demo), and I found no place in the app that closes a surface and then loads a page in one task. Five suites that pressed Back, reloaded or loaded a page right after such a close now wait for the step (`sheetEntryLeft` in `scripts/sheets-settled.ts`): `file-viewer-regression`, `agents-sign-in-demo-regression`, `machine-dialog-regression`, `key-bar-customization-demo-regression` (the command palette, closed in a touch context) and `machine-own-ovis-regression` (the drawer, open as the window is widened). `file-viewer-regression` also compares recorded states without the dialog's marks, `terminal-autoswitch-demo-regression` waits for the peek's entry instead of a popstate that no longer comes, and `deep-link-demo-regression` closes Files itself. - The entry Files takes after Back still names the file when it is landed on. No popstate listener is kept from hearing that landing (`src/conventions.test.ts` forbids it); the file and diff viewers ask `sheetStep.taking(event)` and leave it alone. ### Limits, not fixed here - The composer's `/` list and the terminal's expanded key row are states of the keyboard area, not surfaces: Android's Back hides the keyboard first, and the next Back is the pane's. - A terminal peek left up under Settings or a file that the user's own Back closed takes Back again from the next tap (the skip rule above gives no entry before one). - The device approval prompt holds Back only once it has an entry, that is once a tap came since the user's last Back. Up with no tap behind it, Back goes to what is under it, as on main. Holding it there would mean going onto the left entry again after the rest of the app has read the landing, which I could not check on a device (the demo has no such prompt): left out. - A tap is read from `navigator.userActivation.isActive`, which stays true for about five seconds after one. In that time after a Back, the end of a scroll (a `touchend` that is no tap) can be taken for a new tap, and a surface waiting for one (it came up by itself, or that Back left it up) makes its entry early. Chromium may skip it, and Back then leaves with the surface up, as on main. Telling the two apart needs a measurement on a device of which touches Chromium counts: left for a follow-up. - iOS Safari, as a tab or from the home screen, was not run (the iOS app turns the swipe off). WebKit also skips an entry a page adds with no recent gesture ([WebKit bug 248303](https://bugs.webkit.org/show_bug.cgi?id=248303)), by the time since the last gesture and not by the taps since the last Back, and the bookkeeping here (`SKIPS`) is for Chromium alone. So there a surface opened by a tap holds its entry, as on main; one that comes up by itself, or that a Back leaves up long after the last touch, may have its entry skipped, and Back then does what it does on main. - Files takes the entry a Back left whenever it comes in front with no tap since that Back, whatever that entry was. On a phone it is the file's or the diff's in every way there is to get there. A desktop window narrowed to a phone's width with Files open, right after a Back that closed Settings or a web page and with no click between, would have Files take that entry, and Settings or the page could show again: their history handlers do not ask `sheetStep.taking` as the two viewers do. Found by the review at `a91d33ff6`: left for a follow-up. - With the Back **gesture** (not the button), a list that closes on a press outside it closes by the press the swipe starts with, at the screen's edge, and the Back that follows closes what is under it: the agent list inside New workspace took the dialog with it on the device (the Back key closes the list alone). The cause is in each list's outside-press handler, ten components, not in the history: a press that starts a system gesture is no press outside. Left for a follow-up. - Two presses that do nothing, as on main: on a first visit with no pane in the address, the pane the app picks adds an entry over the empty one, so the first Back on the first screen does nothing and the second leaves (`useSelection.ts`); and after a reload with a sheet open, its entry stays as an ordinary one. Both are in the address code, which another lane is changing, and are left for a follow-up. - Other lanes: #3756 (`feat/mobile-inbox`) adds a list place to the address and the history. The rules its screens follow to take part were sent to its lane, and this branch merges with it without a conflict as of `49f21c58b`. #3632 (the phone's tab row) conflicts with this branch in one hunk of `src/App.tsx`: the drawer's `usePhoneSheetBack` line sits right above the tab sheet block that PR replaces. Whichever merges second keeps both sides. ## Validation Everything heavy ran in the CI runner image (`herdr-ci-runner:local`), on this branch merged with main, as CI tests a PR. - `bun run check fast` at `a91d33ff6` merged with main `95d3cc805`: ok (workflow syntax, generated types and themes, typecheck, build, unit tests: 16592 pass, 0 fail, 57 skip in 922 files). - The browser lane (`scripts/ci-browser-parallel.ts`, 6 workers): - every script, at `f93723f02` merged with main `026074481`: 208 of 208 passed, two of them on their second run. `file-viewer-regression` was kept from a click for 10 s by an alert drawn over the Files tabs. `machine-dialog-regression` lost a reload to the closed Add PC dialog's history step: the race the last commit takes out of the suite. - the two commits after that run (`e9210c333`, `b147d6908`) change `sheetHistory.ts`, `FilesDialog.tsx`, the file and diff viewers' popstate handlers and one suite. At `b147d6908` merged with main `c8718113e`, the 44 scripts that press Back or open a sheet, Files, a file, a diff, Add PC or Add a connection: 44 of 44 on the first run. - the review round after that (`1b1885870`, `239ad7ad6`, `0fa80f098`) changes `sheetHistory.ts`, `historyNavigation.ts`, the find bar, the reply comments chip, the usage strip and the phone Back suite. At `c85571c91`, all on the first run: those 44 and the 6 more that name the find bar or the reply comments, merged with main `5f7f6689a`, 50 of 50; and `ui-contexts-regression`, `ui-contexts-layout-regression` (the usage strip's and the pane find's checks run inside them) and `chat-select-quote-demo-regression`, merged with main `39a97dcee`, 3 of 3. The other 155 were not run again after `f93723f02`. - GitHub's run at `c85571c91` failed: `key-bar-customization-demo-regression` lost a reload to the closed palette's history step, twice in a row (`net::ERR_ABORTED`). The unchanged suite, run four times here against each build, lost it once at `b147d6908`'s build too: timing, not the review round. `chat-history-browser-qa` failed once there on a 10 s timeout and passed when run again; it opens no surface and takes no step in the history. - to find every suite of that shape, every script ran once more on a scratch tree: `c85571c91` with the key bar suite's wait and a detector that is not in the repository, merged with main `3752f8730`. 208 of 208, `file-viewer-regression` on its second run (the alert over the Files tabs again). The detector records each `reload`, `goto`, `goBack` and `goForward` a suite asks for while the history is on a surface's entry, or within 400 ms of a step off one: 47 places. 27 act with a surface left up on purpose (a reload with the drawer open). 18 come after a step that had landed: 10 behind a wait for it, 2 right after such a place, 5 at a phone's width with surfaces that held an entry on main too, and one 297 ms later; those six are as they were. The last 2 reloaded with the history still on the entry of a drawer that the widened window no longer draws: `machine-own-ovis-regression`, fixed with the key bar suite in `a91d33ff6`. With their waits, both suites' reloads come 7 to 15 ms after the step was asked for, which lands in 2 ms (run again with the detector). On the branch itself, at `a91d33ff6` merged with main `95d3cc805`: the two suites, 2 of 2 on the first run. - one earlier full run is not counted: it was stopped at a load average near 280 on this PC (other lanes' browsers), where scripts failed on timing alone. - Unit files changed or added, each in its own process as `test:unit` runs them: `src/lib/sheetHistory.test.ts`, `sheetHistory.skips.test.ts`, `settingsHistory.test.ts`, `historyNavigation.test.ts`, `useFilePanels.reopen.hook.test.ts`, `src/conventions.test.ts`: pass. Each new case was run once with its fix taken out and failed: the sheet kept as Settings closes, the tap kept through the app's own steps, the entry taken after Back, the two viewers' guards, the bound on the wait, the wait ended when the browser refuses the step, the sheet gone before the way back lands. - `scripts/phone-back-demo-regression.ts` fails on main at its first case (the drawer). - On a device: an Android 17 emulator (API 37), Chrome 145, the Back key as `adb shell input keyevent 4`, the demo's fixtures, every history call of the page logged. | Opened | main | this branch | |---|---|---| | the drawer | Back leaves the app, the drawer still open | closes the drawer; the next Back leaves | | the drawer, then a row's ⋯ menu | the menu closes; the next Back leaves, the drawer still open | the menu; the drawer; then leaves | | Files, then a document | the document closes; the next Back leaves, Files still open | the document; Files; then leaves | | Files, then a change (a diff) | the diff closes; the next Back leaves, Files still open | the diff; Files; then leaves | | Settings → Add a connection → SSH → Add (Add PC, keyboard up) | the keyboard; Add PC; then leaves | the same, and Settings does not come back | | the header's More → Find… | closes; then leaves | the same | - The three components of the review round, in the demo at 390x844 by touch, Back as one step back in the history, in this head's build and in `b147d6908`'s (a scratch script, not in the repository): | State | `b147d6908` | this head | |---|---|---| | the usage popover open in the drawer, then no account left to show (each removed on the PC, then Refresh) | the first Back changes nothing on the screen; the second closes the drawer; the third leaves | the first Back closes the drawer; the second leaves | | the reply comments list open, its only comment removed in the list | the first Back changes nothing on the screen; the second leaves | the first Back leaves | | Find open in one pane of a split tab, then its sibling shown instead; the drawer opened and closed by Back; a tap on the terminal | the tap adds an entry for the hidden bar; Back stays on the sibling and closes the hidden bar | no entry; Back goes to the pane before, its bar still open; a tap there and Back close the bar | - In the Android app (WebView 145, same device, with the shell-side PR's build), 29 surfaces opened cold: the Back key closed 25 of them alone; the Back swipe 24, the 25th being the agent list of the limit above. Three more are states, not surfaces (the `/` list, the expanded key row, the terminal lens), and one the matrix could not open (a draft: a sequence checked it stays). - Not run: the integration suite (left to CI). iOS was not run, there is no way from here to make the simulator's edge swipe: judged from the code (the app turns WKWebView's swipe off, Safari's PWA swipe is a history step). --------- Co-authored-by: sisyphus-dev-ai <[email protected]>
devswha
added a commit
that referenced
this pull request
Nov 13, 2026
…device's (#3776) ## Summary Closes #3375. Since 0.5.0 (#3099) a phone drew no tab row: switching to another tab of the workspace took the title, then the tab in a sheet. This brings one-tap switching back, as a choice of the device's (Settings -> Appearance -> **Tabs on a phone**): - **Under the header** (the default): the tab row under a one-row header, the same row a tablet draws: two or three tabs in view at 360px, the open tab and the `+` always in view, each tab a 44px target, its `⋯` the tab's and pane's menu. It costs the pane the row's 44px. - **In the header**: the 52px header of #3099 keeps its height and draws the tabs in the title's place, one row that scrolls sideways (`touch-action: pan-x`, `overscroll-behavior-x: contain`, so the edge swipe still opens the drawer). The open tab is a pill capped so the next tab's mark shows beside it, the row fades under its end, a split tab shows its open pane (`1/2`), and a chevron led by the tab count opens today's tab sheet (close, move, New terminal, New tab with agent…). A tap opens a tab; a long press (450ms) opens its menu. A watching device shows an eye before the chevron. Today's title-and-sheet header is not a third choice: In the header replaces it at the same height, and its chevron still opens the sheet. Design reference: herdr's own TUI keeps its tab bar on screen (DESIGN.md already cites it for the strip), and Ovis did up to 0.4.x; the Codex and Claude phone apps title one thread and list the others from it, which suits one thread, not three or four agents at work in one workspace. Outside draft #3632 was read for reference only; no code is taken from it. The setting is a device setting (`phoneTabs`, `"row" | "header"`, default `"row"`), kept in a key of its own (`ovis:phone-tabs`) like the other newer device settings, so an older tab's whole-record save does not drop it; it is not collected by telemetry. Its label, choices and explanation are translated to Korean, Japanese and Chinese. ## Screenshots (demo fixtures, 360px unless noted) | | Light | Dark | |---|---|---| | Before, on `main`: the title, the tabs one tap away in a sheet | <img src="https://raw.githubusercontent.com/devswha/ovis/07574297daed2270ca237ef35fc947e808a2311b/01-before-360-light.png" width="300" alt="main, light"> | <img src="https://raw.githubusercontent.com/devswha/ovis/07574297daed2270ca237ef35fc947e808a2311b/02-before-360-dark.png" width="300" alt="main, dark"> | | After, Under the header (default): the row under a one-row header | <img src="https://raw.githubusercontent.com/devswha/ovis/07574297daed2270ca237ef35fc947e808a2311b/03-row-360-light.png" width="300" alt="row under the header, light"> | <img src="https://raw.githubusercontent.com/devswha/ovis/07574297daed2270ca237ef35fc947e808a2311b/04-row-360-dark.png" width="300" alt="row under the header, dark"> | | After, In the header: the tabs in the title's place, the next tab's mark beside the open one, the count before the chevron | <img src="https://raw.githubusercontent.com/devswha/ovis/07574297daed2270ca237ef35fc947e808a2311b/05-header-360-light.png" width="300" alt="tabs in the header, light"> | <img src="https://raw.githubusercontent.com/devswha/ovis/07574297daed2270ca237ef35fc947e808a2311b/06-header-360-dark.png" width="300" alt="tabs in the header, dark"> | | Under the header, 390 light | In the header, 390 dark | In the header with the agent inbox on: a thread (Back, then the tabs) | the inbox list (no tab row) | |---|---|---|---| | <img src="https://raw.githubusercontent.com/devswha/ovis/07574297daed2270ca237ef35fc947e808a2311b/07-row-390-light-full.png" width="200" alt="row under the header, full screen"> | <img src="https://raw.githubusercontent.com/devswha/ovis/07574297daed2270ca237ef35fc947e808a2311b/08-header-390-dark-full.png" width="200" alt="tabs in the header, full screen"> | <img src="https://raw.githubusercontent.com/devswha/ovis/07574297daed2270ca237ef35fc947e808a2311b/09-header-inbox-thread-360.png" width="200" alt="inbox thread with the tab row"> | <img src="https://raw.githubusercontent.com/devswha/ovis/07574297daed2270ca237ef35fc947e808a2311b/10-header-inbox-list-360.png" width="200" alt="inbox list"> | ## Validation Run on this head (5b3987a), rebased on main 95d3cc8 (#3756 merged), heavy runs through the load queue: - `bun run check fast`: pass (workflow syntax, generated types and themes, typecheck, build, unit tests). - The whole browser lane in the CI runner image (`herdr-ci-runner:local`, `scripts/ci-browser-parallel.ts`, 8 workers): **208/208 passed**, none flaky. - Scripts that drive a phone's header sheet or its More menu's pane actions now set In the header (`ovis:phone-tabs`), the choice they test; `mobile-tabs-regression` (in `ui-contexts-regression`) checks both choices: the row at 360 and 390 (every tab, its `⋯` and the `+` 44px, the open tab and `+` in view, a tap switching tabs, no chevron) and the header row with its sheet. `phone-glass-header`, `tab-menu` and `conversation-search` wait on the header's tab count instead of the title's `1/2`. - Manual QA on the demo build at 320, 360 and 390: both densities, a watching device (an eye before the chevron), one tab and five with long names (one Korean), a split tab (`1/2` on the open tab), all 20 palettes in light and dark with the tabs in the header, and the agent inbox on (its list draws no tab row; a thread draws Back, then the tabs): every tab, menu and chevron at least 44px, the open tab in view, nothing overflowing sideways, no page errors. - Skipped: nothing of the required checks; the Native Windows job runs on GitHub.
Owner
|
Thank you for putting this together and for the screenshots, @goyon300-hash. Phone tab rows have since landed on |
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.
Summary
A phone drew no tab row: the header's title opened a bottom sheet listing the workspace's tabs, so
switching tabs cost two taps and covered the pane. This draws the row under the header at every
width, a phone's included, and removes the sheet.
(
max-width: 768px and max-height: 700px) draws it compact (36px instead of 44px) rather thanleaving it out: the workspace's name and the
+are useful with one tab too.+as its own cell, so neither covers a tab. A tab is at most the row's width, its name cut withan ellipsis, and the open tab is always wholly in view (
bringOpenTab).(
displayPaneTitle, cut at 24 columns), with herdr's number before it only where two tabs wouldotherwise read alike. Display only: herdr's label is never written, and the tooltip keeps it.
1/2in the header is a button on a phone, listing the tab's panes,the open one marked.
Moreno longerrepeats them, and the phone's glass header is gone (the row sits between the header and the
transcript, which DESIGN.md already says keeps the plain bar).
The row reads the runtime's snapshot in its own order and never writes the Herdr app's layout
document. Where the runtime offers no rename, move or split, the row offers none.
Screenshots
Demo fixtures, dark amber, DPR 2.
Files modified
Client
src/components/TabStrip.tsx— the row at every width; the workspace cell; pane-title names; the+as the row's own cell on a phone; the sheet removed.src/components/TabStrip.css— the workspace cell, the number prefix, the amber underline, thephone sizing and the compact variant.
src/App.tsx— the header sheet removed; the1/2chip is a pane picker;onOpenWorkspaces; thepane/tab group removed from
More.src/components/PaneCanvas.tsx— the "no row" menu and the lone-pane head condition removed.src/lib/paneCanvas.ts—tabRowHiddenandCRAMPED_QUERYremoved (the row is never hidden).src/lib/usePaneSheet.ts— new: the pane picker's state.src/lib/useTabSheet.ts— deleted.src/styles.css—.context-tabs/.has-tabsremoved;.context-position.is-picker.src/lib/i18n.{ko,ja,zh}.ts,src/lib/i18n/terminal.{ko,ja,zh}.ts—"Panes"added;"Tabs of {workspace}"moved to the terminal part files.Tests
scripts/mobile-tabs-regression.ts— rewritten; 320×640, 360×640, 390×667, 390×844.scripts/phone-glass-header-demo-regression.ts— rewritten as the phone row check (the glassheader it tested no longer exists).
scripts/tab-menu-regression.ts— the phone section uses the row's menu.scripts/phone-safe-area-demo-regression.ts,scripts/newtab-typeahead-regression.ts,scripts/new-session-skills-browser-qa.ts,scripts/mirror-fold-demo-regression.ts,scripts/tab-pick.ts— the row replaces the header sheet.scripts/ui-regression.ts,scripts/workspace-rows-regression.ts— tab-name assertions.src/lib/paneCanvas.test.ts,src/components/PaneCanvas.appLayout.test.tsx— the "no row" cases.Docs
DESIGN.md,docs/guide.md,changelog.d/phone-tab-row.md,docs/screenshots/phone-tab-row/.Test results
bun run typecheckbun run check fast(workflow syntax, generated types/themes fresh, typecheck, build, 15 382 unit tests)scripts/mobile-tabs-regression.tsscripts/phone-glass-header-demo-regression.tsscripts/tab-menu-regression.tsscripts/phone-safe-area-demo-regression.tsscripts/newtab-typeahead-regression.tsscripts/new-session-skills-browser-qa.tsscripts/mirror-fold-demo-regression.tsscripts/ui-contexts-regression.tsscripts/ui-contexts-layout-regression.tsscripts/sticky-modifiers-regression.tsMeasured on the live core at 320×640, 360×640, 390×667 and 390×844: the row is drawn at every size
(36px compact, 44px full), the workspace's name and the
+are there, the open tab is wholly inview before and after a one-tap switch, nothing overflows sideways, the soft keyboard leaves the row
in place with the composer above it, and the terminal lens keeps the row and the 48px key bar.
Known baseline failures
Both fail on a clean
HEADin this environment, reproduced with the change stashed, so this PRintroduces no additional failures:
scripts/ui-regression.ts—checkFollowHerdrFocuswaits for a selected tab in.tab-stripthatnever appears.
scripts/workspace-rows-regression.ts—.tab-stripcount is 0 at 1280×900.Their tab-name assertions were updated to the new display names.
Shared Core integration
The Herdr app's window was not running during the check (
herdr-app status→ connection refused),so this verifies its document and the shared core, not a live window.
herdr-appdocument before/after Ovis switched through all 3 tabs and opened the drawer:byte-identical, version 68 → 68.
["herdr-app"]only — noovis-layoutwas created.Ovis pane is in the document (6/6).
hc lslists the same 6 live terminals.pingreportsrename/split/move/arrange: false; the UI offers none of them, and every mutationpath in
server/herdr-core/adapter.tsrefuses withunsupported.Remaining limitations
header is the plain bar at every phone size.
hidden; 36px still clears WCAG 2.5.8 (24×24).
its name;
autoTabNamesis unchanged and off by default.tab's name is cut to fit the row; the full names are in the tooltips and the header's title.
layout, so it was verified on the isolated
ovis-testherdr session.functioning" is verified through its document and the live terminals, not a live window.
Draft: not for merge.