Skip to content

feat(header): a phone's title lists the workspace's tabs in place of the tab row - #3099

Merged
devswha merged 4 commits into
mainfrom
feat/phone-tab-sheet
Nov 6, 2026
Merged

devswha merged 4 commits into
mainfrom
feat/phone-tab-sheet

Conversation

@devswha

@devswha devswha commented Nov 6, 2026

Copy link
Copy Markdown
Owner

What

On a phone (640px wide or less, the width where dialogs become bottom sheets) the tab row under the
header is gone. The pane's title in the header gets a ChevronDown, and the whole title is one
button that opens the workspace's tabs as a bottom sheet:

  • each tab with its state dot (hollow at rest), its agent's mark and a Close button of its own,
    the open tab marked current and its state word (RUN / INPUT / DONE / BG) shown for a state;
  • the open tab's Move tab left / right, then New terminal and New tab with agent….

The header goes from 96px (52 + 44 row) to 52px at 390×844. This widens the existing "a lone tab on a
cramped phone draws no row" path (tabRowHidden, formerly loneTabHidden): More keeps carrying the
open pane's actions and the open tab's Rename / Move to workspace / Close, and the waiting jump with
its dot, as it already did for a lone tab. New terminal and New tab with agent… leave More there,
since the title's list has them. Touch screens between 641 and 768px (a tablet upright) keep the row.

On every width, each tab in the strip now carries its agent's mark before its name, and a working
tab's dot is a turning ring (8 steps per --dur-spin, the plain dot under reduced motion). The
desktop header keeps its height (46 + 34).

Design reference: the Herdr app's tabs (program icon, spinner while working); the Codex and Claude
apps for the phone, which title the open conversation and list the others from it. No pixels or
code copied.

Accessibility

  • The title button is named "Tabs of {workspace}" with aria-haspopup="dialog" and
    aria-expanded; its press area is the whole title and crumb, grown to --touch-target (44px).
  • The list is the existing modal sheet (RowMenu): focus lands on the first row, arrows and Tab move
    tab → that tab's Close → next tab, Escape and the system Back close it, and focus returns to the
    title. RowMenuItem gains an optional aside button for the per-tab Close ("Close {tab}"), and
    each item carries data-item (its id) for scripts.
  • The agent's mark in a tab and the marks in the list are hidden from assistive tech, so a tab is
    still named by its words; the state is said in words in the list.

Tests

Browser scripts that drove the phone's tab row now use the title's list or More, and the checks of
the row's touch menu move to a 700px touch screen, where the row is still drawn:
mobile-tabs-regression.ts (rewritten for the header list: contents, Close per tab, focus order,
44px targets, More's contents, reopen after reload), tab-menu-regression.ts (phone: More and the
title's list, including both tab moves), phone-glass-header-demo-regression.ts,
ui-regression.ts, deep-link, conversation-search, mirror-fold, phone-split-grid,
terminal-keyboard, terminal-switch, terminal-switch-resize, terminal-view-replay,
new-session-skills-browser-qa.ts, and the manual font-swap-demo-regression.ts. A small
scripts/tab-pick.ts opens a tab the way a user does at the page's width.

Validation

  • bun run check fast: pass (see below).
  • Whole browser lane (ci-browser-parallel.ts, every script) in the self-hosted CI runner image
    herdr-ci-runner:local as its runner user: 171/173; the two failures
    (omo-plan-browser-regression.ts, file-viewer-regression.ts) pass on a rerun on this branch and
    also flaked on plain origin/main in the same image under the same load.
  • font-swap-demo-regression.ts (manual, not in CI): skipped; it fails on plain origin/main too
    before its tab section ("the built stylesheet names an installed face, and this copy of it no
    longer does").
  • Screenshots, 390×844 light/dark before/after with the list open, and 1280×800 before/after
    (height unchanged), measured: header + row 52 + 44 → 52 at 390, 46 + 34 → 46 + 34 at 1280.

…the tab row

On a phone (640px or less) no tab row is drawn: the header's title opens a
sheet of the workspace's tabs, each with its state, agent and a Close, the
open tab's moves, New terminal and New tab with agent. The header drops from
96px to 52px. Tabs everywhere show their agent's mark, and a working tab's
dot turns.
@coderabbitai

coderabbitai Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

Summary

Summary by CodeRabbit

  • New Features
    • On phones, the header now opens a workspace tab list showing each tab’s status and agent, with controls to switch, close, reorder, or add tabs.
    • The header’s More menu retains pane actions when the tab row is hidden, including the option to open the next waiting session.
    • Tabs display agent icons, and working indicators animate unless reduced motion is enabled.
    • Tablet and desktop tab navigation remains available in the tab row.

Phones now show workspace tabs in a sheet opened from the header title. The sheet lists tab state and agent marks, and supports tab selection, closing, and reordering. The tab row and More menu actions adjust to whether tabs appear in the header. Regression scripts now cover phone and tablet layouts.

Changes: Phone workspace-tab navigation

Layer / File(s) Summary
Header tab control and row visibility
src/App.tsx, src/lib/useTabSheet.ts, src/lib/paneCanvas.ts, src/components/PaneCanvas.tsx, src/styles.css, src/lib/paneCanvas.test.ts, DESIGN.md
The header title opens the tab sheet on phones. The tab row is hidden when tabs are in the header, or when a cramped layout has one tab and tabs are not in the header.
Tab sheet and menu actions
src/components/TabStrip.tsx, src/components/TabStrip.css, src/components/RowMenu.tsx, src/components/RowMenu.css, src/components/PaneCanvas.tsx, src/lib/i18n*, src/lib/i18n/terminal.*, changelog.d/phone-header-tab-list.md, DESIGN.md
The sheet lists tabs with status and agent marks, and provides tab selection, close, reorder, and new-tab actions. The More menu retains other pane and tab actions. Working-state marks animate unless reduced motion is enabled.
Phone and tablet tab regression coverage
scripts/*
Browser regressions use the header tab list on phones and the tab strip on wider viewports. Shared tab-selection and menu checks use the updated controls.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Feature

Possibly related PRs

  • devswha/ovis#2622: It hides a lone tab row on compact-height screens; this change also applies row hiding when tabs appear in the phone header.
  • devswha/ovis#1427: It adds a tab-menu workspace-move action; this change tests that a moved tab appears in the header tab list.
Merge Risk: Low · up to d556a

The change is mergeable with bounded follow-up: phone switching measurements include menu-opening time, and the new list would benefit from direct checks of status marks and Close actions. No production failure is established.

- [ ] 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.

Share

… for

The list closes when the selection moves to another PC or workspace, and
the title offers none while the setup guide stands in the pane's place. A
tab closed elsewhere under the sheet's focus gives it to the first item
left. Dots and Symbols indicators keep their glyph still.
# Conflicts:
#	scripts/new-session-skills-browser-qa.ts
@devswha

devswha commented Nov 6, 2026

Copy link
Copy Markdown
Owner Author

Review round (omo + Codex Terra, xhigh)

  • omo review at 1890de2: CLEAR.
  • Codex adversarial review at 1890de2: no HIGH. Findings and how each was handled in 9a50b78:
Sev Finding Resolution
MEDIUM The open tab list followed a selection made elsewhere (an alert, a link) into another workspace, so a pick could land on another workspace's tab. Fixed: useTabSheet binds the list to the PC and workspace it was opened on and closes it when that changes.
MEDIUM A tab closed elsewhere while its row or Close held the sheet's focus dropped the focus to the page, behind the modal. Fixed: RowMenu's sheet gives the focus to the first item left when the focused one goes.
MEDIUM With the setup guide in the pane's place, the title still offered the list (aria-expanded true, no sheet), which could then appear when the guide closed. Fixed: no title button and no open list while the guide is shown.
LOW A header notice (Copied, a link to a closed pane) replaces the title for 1.6-8 s, and with it the way to the tabs. Left as is: the notice is short and the same as for every other title action; noted here.
LOW With Dots or Symbols indicators, the working glyph turned and got a ring. Fixed: the ring applies to the classic dot only.

After the fixes and a merge of origin/main (one conflict in new-session-skills-browser-qa.ts, resolved onto main's new openDialog), the 36 tab/header browser scripts of the CI list ran in herdr-ci-runner:local: 34/36, the other two (file-viewer-regression.ts, prompt-dock-demo-regression.ts, unrelated to the header) pass on a rerun. bun run check fast: pass at b500b06.

@devswha

devswha commented Nov 6, 2026

Copy link
Copy Markdown
Owner Author

Local merge gate (owner-approved): origin/main merged (no conflict), bun run check fast passed at this head, omo CLEAR at this head (Codex Terra xhigh no HIGH on the previous head; 3 MEDIUMs + 1 LOW fixed), threads resolved, merges cleanly; 34/36 tab and header scripts pass in the CI runner image, deep-link passes on rerun, and ui-regression's remaining failures also fail on main (tracked separately). Phone (<=640 px): the tab row goes, the title opens a tab sheet; header 96 -> 52 px. Desktop height unchanged, tabs gain an agent icon and a working ring. Before/after pictures were shown to the owner, who delegated UI picture OKs to the lead. Merged without waiting for GitHub CI.

@devswha
devswha merged commit 071fc69 into main Nov 6, 2026
14 of 16 checks passed
@devswha
devswha deleted the feat/phone-tab-sheet branch November 6, 2026 02:04
devswha added a commit that referenced this pull request Nov 6, 2026
…in the failed-requests script (#3111)

## What

`scripts/chat-request-details-demo-regression.ts` fails on main (Browser
regression, other scripts) at line 116 on every phone run:

```
116 |       if (phone) await page.locator(".tab-strip-menu").first().click();
TimeoutError: click: Timeout 30000ms exceeded.
  - waiting for locator('.tab-strip-menu').first()
```

#3106 added a phone step that opens Search conversation from the tab
row's menu button. #3099, merged after it, drops the tab row on phones
(the header title lists the tabs) and moves the pane's actions to the
header's More. #3099 had already moved
`conversation-search-demo-regression.ts` to `.header-more-button`, but
it never saw this new step. This PR moves the step the same way. The
step still opens the pane's menu, picks Search conversation, and asserts
the folded row opens on the pick. No assertion changed.

## Validation

- In `herdr-ci-runner:local` (own `HERDR_TEST_SESSION`): main's version
of the script fails at line 116 as in CI (`TimeoutError ... waiting for
locator('.tab-strip-menu')`); with this change it passes all 8 runs (390
and 1280, light and dark, details on and off).
- `bun run check fast`: pass.
- Skipped: the rest of the browser suite (only this script changed).
devswha added a commit that referenced this pull request Nov 6, 2026
…ets (#3119)

## Why

On a phone, a few open surfaces reached into the screen's safe-area
insets (measured on `origin/main` with the insets emulated through CDP,
`Emulation.setSafeAreaInsetsOverride`):

- **Upright, Dynamic Island (59px top inset):** the search sheet
(`Search panes and actions`) is `100% - 32px` tall, so its search field
(top 54px) and close button (top 49px) sat under the island.
- **Short screen (keyboard up, 390x500):** the More sheet, Settings and
the search sheet started at 32-40px, under the status bar; Settings'
close button sat under the island.
- **Landscape (844x390, 59px notch on either side, 21px home
indicator):** Settings fills the scrim, whose padding was a flat 16px.
Its left menu (Search settings, Appearance ... About) went under the
left notch, the close button and the right-hand controls under the right
one, and About into the home indicator.
- **Landscape, a tab's menu:** `RowMenu` clamps its popover to the
window, so a tall menu ran 13px into the home indicator.

The header, the title's tab sheet (#3099), the More sheet, confirmations
and the drawer already kept clear. The composer and the key bar sit part
way into the home-indicator inset by design (#335, KeyBar.css: the
indicator is a thin bar near the edge and stays clear), so they are left
alone.

## Change

- `.modal-scrim` pads each side to `max(--space-4,
env(safe-area-inset-*))`: a centred card (Settings sideways) keeps clear
of the notch on either side and of the home indicator. With no insets
(desktop) the padding is the 16px it was.
- A phone's bottom sheet (`.modal` at `<=640px`, the machine dialog) is
capped at `min(92%, 100% - top inset - --space-2)`, and the search
sheet's height takes `max(--space-8, top inset + --space-2)` off instead
of `--space-8`: a sheet's top never reaches under the status bar or
island, the keyboard up included.
- `RowMenu`'s popover placement clamps to the safe area
(`lib/safeArea.ts` reads the insets from `--safe-area-*` on the root,
which styles.css sets to `env(safe-area-inset-*)`: a script cannot read
`env()` itself, a custom property computes it). With no insets the
arithmetic is the same as before.

Design follows iOS's own sheets and popovers (UIKit's
`UISheetPresentationController`, Apple HIG Layout: keep controls inside
the safe area), which never put content under the status bar, the
Dynamic Island or the home indicator.

## Validation

- New `scripts/phone-safe-area-demo-regression.ts` (in the CI browser
lane): upright 390x844, short 390x500, an iPhone keyboard (visual
viewport 500px, `data-keyboard`) and landscape 844x390 with emulated
insets; every visible control of the open surface must lie inside the
safe area, and its close or answer must be drawn whole there. On
`origin/main` it fails with 24 findings (each listed above); with this
change it passes.
- Screenshots: before/after at 390x844 upright and 844x390 landscape
with the insets drawn in red, light and dark, and 1280 light and dark
(unchanged: no insets).
- `bun run check fast`: passed on 58971f1 (typecheck, build, 12591 unit
tests, 0 fail).
- Browser regressions covering the touched shared pieces (RowMenu in the
sidebar and tab strip, the palette, dialogs, Settings, the machine
dialog): the 44 scripts of the CI browser lane that name them, run with
`ci-browser-parallel.ts` in the CI runner image
(`herdr-ci-runner:local`): 43/44 passed. `scripts/ui-regression.ts`
times out waiting for the `Suggestion chip` switch; it fails the same
way on plain `origin/main` (0101784) in the same image, so it is not
from this change.
- Not run: native iOS/Android devices (the insets are emulated in
Chromium), the integration suite (no server change).
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant