π OpenHands: AI-Driven Development
feat: add compact section navigation on tablets (#18200)
Engel Nystfd3a76f48327
diff --git a/.agents/skills/verify-openhands/references/feature-map/F09-settings-shell.md b/.agents/skills/verify-openhands/references/feature-map/F09-settings-shell.mdindex 9ac723e419..fb21c1a3d2 100644--- a/.agents/skills/verify-openhands/references/feature-map/F09-settings-shell.md+++ b/.agents/skills/verify-openhands/references/feature-map/F09-settings-shell.md@@ -5,12 +5,12 @@ Agent Context, Verification, Application, Secrets). On desktop a pinned leftcolumn lists the pages, highlights the current one and ends with an "AgentCanvas" version card and a "synced from β¦ backend" note; each page gets a titleand a grey subline. Below 1024 px (phones and tablets) `/settings` is a hub list-instead, and at phone width every page shows a Back chevron to the hub. Users reach Settings from the sidebar gear,+instead, at tablet widths (768β1023 px) each subpage has a compact Settings selector, and at phone width every page shows a Back chevron to the hub. Users reach Settings from the sidebar gear,the collapsed rail, the command menu and several deep links (LLM banner, gettingstarted checklist, composer pickers). The individual pages are other families(F10βF16; Secrets is F14).-Source: `src/routes.ts`, `src/routes/settings.tsx`, `src/routes/settings-index.tsx`, `src/routes/agent-settings.tsx`, `src/constants/settings-nav.tsx`, `src/hooks/use-settings-nav-items.ts`, `src/utils/settings-utils.ts`, `src/components/features/settings/settings-layout.tsx`, `src/components/features/settings/settings-desktop-sidebar.tsx`, `src/components/features/settings/settings-mobile-hub.tsx`, `src/components/features/settings/backend-synced-settings-badge.tsx`, `src/components/features/settings/agent-canvas-update-card.tsx`, `src/components/features/settings/agent-canvas-version-tile.tsx`, `src/utils/mobile-section-nav.ts`, `src/components/features/command-menu/command-menu-items.tsx`.+Source: `src/routes.ts`, `src/routes/settings.tsx`, `src/routes/settings-index.tsx`, `src/routes/agent-settings.tsx`, `src/constants/settings-nav.tsx`, `src/hooks/use-settings-nav-items.ts`, `src/utils/settings-utils.ts`, `src/components/features/settings/settings-layout.tsx`, `src/components/features/settings/settings-desktop-sidebar.tsx`, `src/components/shared/compact-section-navigation.tsx`, `src/components/features/settings/settings-mobile-hub.tsx`, `src/components/features/settings/backend-synced-settings-badge.tsx`, `src/components/features/settings/agent-canvas-update-card.tsx`, `src/components/features/settings/agent-canvas-version-tile.tsx`, `src/utils/mobile-section-nav.ts`, `src/components/features/command-menu/command-menu-items.tsx`.## Sub-features@@ -29,6 +29,7 @@ Source: `src/routes.ts`, `src/routes/settings.tsx`, `src/routes/settings-index.t- `F09.phone-hub`: below 1024 px (phones and tablets), `/settings` stays put and shows a "Settings" heading, the eight links, the version card and the synced note, with no page header and no horizontal overflow.- `F09.hub-resize-redirect`: widening the window to β₯1024 px while the phone hub is open replaces `/settings` with `/settings/agents`; narrowing on a sub-page keeps its URL and adds the Back chevron.- `F09.breakpoint-sweep`: at 767, 768, 820, 1023, 1024 and 1440 px, `/settings` is the hub below 1024 px and redirects to the desktop nav from 1024 px up, and the Application page's `main` is at least 340 px wide with no horizontal overflow.+- `F09.tablet-selector`: at 768β1023 px, a Settings selector above the subpage opens the same visible section links as the desktop sidebar, including Cloud links when available. Selecting a sibling navigates directly and closes it; Tab reaches links, Escape closes and returns focus, and outside clicks dismiss it. The current section uses a slash-boundary match, so a trailing slash does not hide the selector or its selected link. It is absent on the hub, phones and desktops.- `F09.phone-back`: at phone width each settings page shows a Back chevron (label "Settings") in the top bar that returns to the hub.- `F09.synced-badge`: the nav footer reads "These settings are synced from Local backend (<origin>)" for the active backend.- `F09.cloud-links`: on a Cloud backend only, the nav adds "Integrations" and "All Cloud Settings" external links; on a local backend neither exists.@@ -71,6 +72,7 @@ Preconditions:- **Phone hub and Back (`F09.phone-hub`, `F09.phone-back`).** Run `control-openhands browser viewport phone`, `control-openhands browser goto /settings` (URL stays `/settings`), `control-openhands browser snapshot 'testid=settings-mobile-hub'` (heading "Settings", the eight links, the version button, the synced text), `control-openhands browser count 'testid=settings-page-subtitle'` (`0`), `control-openhands browser bbox 'testid=settings-mobile-hub'` (`pageHorizontalOverflow` `false`) and `control-openhands browser screenshot --feature F09.phone-hub --name hub`. Then `control-openhands browser click 'testid=settings-mobile-hub >> testid=sidebar-settings-/settings/condenser'`, `control-openhands browser wait-url '/settings/condenser$'`, `control-openhands browser attr 'testid=sidebar-mobile-back-button' aria-label` (`Settings`), `control-openhands browser click 'testid=sidebar-mobile-back-button'`, `control-openhands browser wait-url '/settings$'` and `control-openhands browser visible 'testid=settings-mobile-hub'` (`true`). Drawer entry: `control-openhands browser goto /`, `control-openhands browser click 'testid=sidebar-mobile-menu-toggle'`, `control-openhands browser click 'testid=sidebar-mobile-drawer >> testid=backend-selector-settings-link'`, `control-openhands browser wait-url '/settings$'`; `control-openhands browser visible 'testid=sidebar-mobile-drawer'` is `false` (the drawer closed). Return with `control-openhands browser viewport desktop`.- **Resize from the hub (`F09.hub-resize-redirect`).** Run `control-openhands browser goto /`, `control-openhands browser viewport phone`, `control-openhands browser goto /settings` and `control-openhands browser visible 'testid=settings-mobile-hub'` (`true`). Then `control-openhands browser viewport desktop` and `control-openhands browser wait-url '/settings/agents$'`: the hub is gone (`count 'testid=settings-mobile-hub'` is `0`) and `control-openhands browser back` lands on `/` (the redirect replaced `/settings`). Reverse: `control-openhands browser goto /settings/condenser`, `control-openhands browser viewport phone`, `control-openhands browser url` (still `/settings/condenser`) and `control-openhands browser visible 'testid=sidebar-mobile-back-button'` (`true`). Tablets get the hub too, and the boundary is 1024 px: run `control-openhands browser viewport tablet` (820 px), `control-openhands browser goto /settings` (URL stays `/settings`) and `control-openhands browser visible 'testid=settings-mobile-hub'` (`true`); then `control-openhands browser viewport 1023x900`, `control-openhands browser goto /settings` and the same `visible` (`true`); then `control-openhands browser viewport 1024x900` and `control-openhands browser wait-url '/settings/agents$'` (`browser visible 'testid=settings-navbar-desktop'` is `true`). Return with `control-openhands browser viewport desktop`.- **Widths around the breakpoint (`F09.breakpoint-sweep`).** For each width `W` in `767`, `768`, `820`, `1023`, `1024`, `1440` run `control-openhands browser viewport Wx1024` and `control-openhands browser goto /settings`. Below 1024 px the URL stays `/settings`, `control-openhands browser visible 'testid=settings-mobile-hub'` is `true` and `control-openhands browser bbox 'testid=settings-mobile-hub'` has `pageHorizontalOverflow` `false` (725, 426, 478 and 681 px wide); from 1024 px up `control-openhands browser wait-url '/settings/agents$'` passes and `control-openhands browser visible 'testid=settings-navbar-desktop'` is `true`. Then `control-openhands browser goto /settings/app` and `control-openhands browser bbox 'role=main'`: `width` is at least 340 (767, 468, 520, 723, 424 and 840 today: full width at 767 px, `W β 300` beside the rail up to 1023 px, `W β 600` beside the rail and the settings nav from 1024 px), `scrollWidth` equals `clientWidth` and `pageHorizontalOverflow` is `false` (`insideViewport` is `false` only because the page is taller than 1024 px). Take `control-openhands browser screenshot --feature F09.breakpoint-sweep --name app-767` and `--name app-1024`. Finish with `control-openhands browser viewport desktop`.+- **Tablet selector (`F09.tablet-selector`).** Run `control-openhands browser viewport tablet`, `control-openhands browser goto /settings/app`, then `control-openhands browser click 'testid=settings-compact-navigation >> role=button'`. `control-openhands browser snapshot 'testid=settings-compact-navigation >> role=navigation'` lists every visible settings destination with Application current. Select `control-openhands browser click 'testid=settings-compact-navigation >> testid=sidebar-settings-/settings/secrets' --expect-url '/settings/secrets$'`; the selector now shows Secrets and its button has `aria-expanded=false`. Open again, `browser press Tab`, `browser press Escape`: `browser eval "document.activeElement.getAttribute('aria-expanded')"` is `false` (focus returned to the trigger). Capture `browser screenshot --feature F09.tablet-selector --name settings`. Repeat at 768 and 1023 px; at 767 and 1024 px `browser count 'testid=settings-compact-navigation'` is `0`. On `/settings` below 1024 px the hub remains the list. At tablet width, visit `/settings/llm/`: the trigger reads `Settings: LLM`, the page heading is LLM, and opening the selector marks LLM current. A nested URL such as `/settings/llm/example` is not a registered page and shows the global Not Found screen (F09.unknown-subpath).- **Synced badge (`F09.synced-badge`).** Run `control-openhands browser text 'testid=backend-synced-settings-badge'` and `control-openhands browser eval 'location.origin'`. The text is `These settings are synced from Local backend (<origin>)` with the same origin.- **Cloud links (`F09.cloud-links`).** On a local backend `control-openhands browser count 'testid=settings-integrations-link'` and `control-openhands browser count 'testid=settings-cloud-link'` are both `0`. Positive case (blocked without a Cloud account): with a Cloud backend active both exist; "All Cloud Settings" points at `<cloud host>/settings?org=<org id>` and opens in a new tab unless the canvas is locked to Cloud.- **Update card and dialog (`F09.update-card`, `F09.update-modal`, `F09.update-up-to-date`).** On a settings page run `control-openhands browser text 'testid=agent-canvas-update-toggle'` (`Agent Canvas`, `Version`, the client version, plus the badge text when present), `control-openhands browser count 'testid=agent-canvas-update-badge'` (`0` while the npm check fails; `1` with "Up to date" or "Update" when it succeeds), then `control-openhands browser click 'testid=agent-canvas-update-toggle'`, `control-openhands browser wait 'testid=agent-canvas-update-modal'` and `control-openhands browser text 'testid=agent-canvas-update-status'`. With registry access and a current client the status is `You're running the latest version. What's new`, and `control-openhands browser attr 'testid=agent-canvas-update-release-notes' href` is `https://github.com/OpenHands/OpenHands/releases` (`target` `_blank`). Without registry access the status is `Couldn't check for updates. Try again later.` Re-check: run `control-openhands browser network --clear`, then `control-openhands browser click 'testid=agent-canvas-update-check-button' --observe 'testid=agent-canvas-update-modal' --observe-ms 2000` (the observed states include `Checking for updatesβ¦` before the final status), then `control-openhands browser network`: exactly one new `GET https://registry.npmjs.org/@openhands/agent-canvas/latest` proves the button re-checked (`browser errors` does not list successful requests). `control-openhands browser enabled 'testid=agent-canvas-update-check-button'` is `true` again. Close with `control-openhands browser click 'testid=close-agent-canvas-update-modal'` (modal count `0`); reopen and `control-openhands browser press Escape` also closes it.@@ -90,6 +92,6 @@ Preconditions:- Registry reachability depends on the sandbox and changes between runs. When the browser cannot reach `registry.npmjs.org` (seen as `ERR_CERT_AUTHORITY_INVALID` through a proxy), the version badge and sidebar tile stay hidden and the dialog shows the failure state; that is environment, not product. When it can, a checkout at the latest release shows "Up to date" and the failure text cannot be produced. Check `browser network` for the registry request before deciding which update rows are `blocked`.- The update dialog's `role="dialog"` wrapper has no accessible name, so `role=dialog[name=...]` does not match it; use `testid=agent-canvas-update-modal`.- The `/settings` β `/settings/agents` redirect only happens at β₯1024 px. Below that (phones and tablets) `/settings` is the hub; do not expect a redirect there.-- From 768 to 1023 px the sidebar rail stays and the top bar is gone, so a settings sub-page shows neither the settings nav nor a Back chevron (`browser visible 'testid=sidebar-mobile-back-button'` is `false`); the rail's gear (`backend-selector-settings-link`) returns to the hub.+- From 768 to 1023 px the sidebar rail stays and the phone top bar is gone; the Settings selector above each subpage provides sibling navigation. The rail's gear (`backend-selector-settings-link`) still returns to the hub.- The phone hub is indented 32 px while sub-pages start at 16 px (hub padding inside the page padding); that is current layout, not overflow.- The "LLM Profiles" rename in `useSettingsNavItems` targets a `/settings` nav item that does not exist, so it never applies; the LLM nav item always reads "LLM".diff --git a/.agents/skills/verify-openhands/references/feature-map/F17-mcp-servers.md b/.agents/skills/verify-openhands/references/feature-map/F17-mcp-servers.mdindex b5202fdb0e..3b9fb8a567 100644--- a/.agents/skills/verify-openhands/references/feature-map/F17-mcp-servers.md+++ b/.agents/skills/verify-openhands/references/feature-map/F17-mcp-servers.md@@ -2,14 +2,14 @@Customize groups MCP Servers, Skills, Plugins and Apps behind one sidebarentry. From 1024 px up `/customize` goes straight to `/mcp`; below that (phones-and tablets) it is a list hub. The MCP page lets a user browse a library of catalog+and tablets) it is a list hub. At tablet widths (768β1023 px), each Customize subpage also has a compact selector for switching directly between siblings. The MCP page lets a user browse a library of catalogintegrations, install one through a modal (credentials masked, optionally alsosaved as secrets), hand-author custom SSE, Streamable HTTP or STDIO servers,test connections, check each installed server's health, enable or disable,edit and delete servers. Enabled servers are offered to every newconversation's agent.-Source: `src/routes/extensions-hub.tsx`, `src/routes/mcp.tsx`, `src/components/features/skills/extensions-navigation.tsx`, `src/components/features/skills/extensions-mobile-hub.tsx`, `src/components/features/mcp-page/`, `src/components/features/settings/mcp-settings/mcp-server-form.tsx`, `src/utils/mcp-marketplace-utils.ts`, `src/api/mcp-health/`, `src/hooks/mutation/use-add-mcp-server.ts`, `src/utils/mobile-section-nav.ts`.+Source: `src/routes/extensions-hub.tsx`, `src/routes/mcp.tsx`, `src/components/features/skills/extensions-navigation.tsx`, `src/components/shared/compact-section-navigation.tsx`, `src/components/features/skills/extensions-mobile-hub.tsx`, `src/components/features/mcp-page/`, `src/components/features/settings/mcp-settings/mcp-server-form.tsx`, `src/utils/mcp-marketplace-utils.ts`, `src/api/mcp-health/`, `src/hooks/mutation/use-add-mcp-server.ts`, `src/utils/mobile-section-nav.ts`.## Sub-features@@ -17,6 +17,7 @@ Source: `src/routes/extensions-hub.tsx`, `src/routes/mcp.tsx`, `src/components/f- `F17.desktop-subnav`: from 1024 px up, Customize pages show a left aside headed **Customize** with MCP Servers, Skills, Plugins and Apps, the active row marked, and the "synced from" backend badge.- `F17.mobile-hub`: below 1024 px (phones and tablets), `/customize` is a hub with the same four rows and badge; at phone width detail pages show a Back chevron to the hub; widening the window to 1024 px or more on `/customize` redirects to `/mcp`.- `F17.breakpoint-sweep`: at 767, 768, 820, 1023, 1024 and 1440 px, `/customize` is the hub below 1024 px and the desktop aside from 1024 px up, and the MCP page keeps **Add custom server**, a search box wider than 150 px and no horizontal overflow.+- `F17.tablet-selector`: at 768β1023 px, the compact Customize selector exposes the same MCP, Skills, Plugins and Apps links as the desktop nav; it follows Cloud visibility/external-link rules, dismisses on selection/outside click/Escape, and supports Tab navigation. It is absent on phones, desktops and the hub.- `F17.cloud-nav`: with a Cloud backend active, Plugins and Apps are hidden and Skills becomes an external link to `<cloud host>/settings/skills` (blocked here).- `F17.page-states`: `/mcp` shows the **Model Context Protocol (MCP)** header, **Add custom server**, the toolbar, an **Installed** section (empty-state copy when nothing is installed) and the **Library** grid, without page errors.- `F17.search`: one search box filters the library and the installed list (catalog name, description and args count); no match shows `No matches for your search.` in each section; the X clears it.@@ -68,6 +69,7 @@ Preconditions:- **Desktop entry points (`F17.customize-redirect`).** Run `control-openhands browser goto /conversations`, `control-openhands browser click 'testid=sidebar-skills-link' --expect-url '/mcp(\?|$)'` and `control-openhands browser count 'testid=mcp-page'` (`1`). Run `control-openhands browser goto /customize` and `control-openhands browser wait-url '/mcp(\?|$)'`. Command menu: run `control-openhands browser goto /conversations` (the browser is on `/mcp`, where the URL wait would pass at once), `control-openhands browser press Control+k`, `control-openhands browser type 'testid=command-menu >> role=combobox' MCP`, `control-openhands browser press Enter` and `control-openhands browser wait-url '/mcp(\?|$)'`; repeat with the term `Customize` (its only option reads `Customize Browse skills, plugins, and integrations.`). Every path ends on `/mcp`.- **Desktop sub-navigation (`F17.desktop-subnav`).** On `/mcp` run `control-openhands browser text 'testid=extensions-navbar-desktop'`: `Customize`, `MCP Servers`, `Skills`, `Plugins`, `Apps`, then `These settings are synced from Local backend (<base url>)`. `control-openhands browser attr 'testid=sidebar-extensions-/mcp' aria-current` is `page`. Run `control-openhands browser click 'testid=sidebar-extensions-/skills' --expect-url '/skills(\?|$)'`; that row's `aria-current` becomes `page`. Do the same for `/plugins` and `/apps`, then return with `control-openhands browser click 'testid=sidebar-extensions-/mcp' --expect-url '/mcp(\?|$)'`. `control-openhands browser screenshot 'testid=extensions-navbar-desktop' --feature F17.desktop-subnav --name subnav` shows the MCP Servers row highlighted.+- **Tablet selector (`F17.tablet-selector`).** Run `control-openhands browser viewport tablet`, `control-openhands browser goto /mcp`, and `control-openhands browser click 'testid=extensions-compact-navigation >> role=button'`. `control-openhands browser snapshot 'testid=extensions-compact-navigation >> role=navigation'` lists MCP Servers (current), Skills, Plugins and Apps. `control-openhands browser click 'testid=extensions-compact-navigation >> testid=sidebar-extensions-/skills' --expect-url '/skills$'` navigates directly and closes the list. Repeat from Skills to Plugins, Apps and MCP; the selector's current label follows each route. Capture `browser screenshot --feature F17.tablet-selector --name customize`. Check 768 and 1023 px, then 767 and 1024 px where `browser count 'testid=extensions-compact-navigation'` is `0`. Escape after keyboard opening returns focus to the trigger. The same links have `sidebar-extensions-*` IDs in the hidden desktop nav, so scope every tablet action to `extensions-compact-navigation`.- **Phone hub (`F17.mobile-hub`, `F17.phone`).** Run `control-openhands browser viewport phone`, `control-openhands browser goto /customize` and `control-openhands browser text 'testid=extensions-mobile-hub'` (the same five lines as the desktop aside); `control-openhands browser screenshot --feature F17.mobile-hub --name hub`. Run `control-openhands browser click 'testid=extensions-mobile-hub >> testid=sidebar-extensions-/mcp' --expect-url '/mcp(\?|$)'`; `control-openhands browser attr 'testid=sidebar-mobile-back-button' aria-label` is `Customize`, and `control-openhands browser count 'testid=extensions-navbar-desktop >> visible'` is `0`. `control-openhands browser bbox 'testid=mcp-page'` has `insideViewport` `true` and `pageHorizontalOverflow` `false`; `control-openhands browser screenshot --feature F17.phone --name mcp-page` shows the header, toolbar and one column of cards. Run `control-openhands browser click 'testid=sidebar-mobile-back-button' --expect-url '/customize(\?|$)'`; `control-openhands browser count 'testid=extensions-mobile-hub'` is `1`. Drawer entry: `control-openhands browser goto /conversations`, `control-openhands browser click 'testid=sidebar-mobile-menu-toggle'` and `control-openhands browser click 'testid=sidebar-mobile-drawer >> testid=sidebar-skills-link' --expect-url '/customize(\?|$)'`; the hub is shown. Tablets get the hub too: `control-openhands browser viewport tablet` (820 px) keeps it on `/customize`; run `control-openhands browser click 'testid=extensions-mobile-hub >> testid=sidebar-extensions-/mcp' --expect-url '/mcp(\?|$)'`, then `control-openhands browser visible 'testid=extensions-navbar-desktop'` and `control-openhands browser visible 'testid=sidebar-mobile-back-button'` (both `false`), `control-openhands browser bbox 'role=main'` (520 px wide, `pageHorizontalOverflow` `false`) and `control-openhands browser screenshot --feature F17.mobile-hub --name tablet-mcp`; the rail's `control-openhands browser click 'testid=sidebar-skills-link' --expect-url '/customize(\?|$)'` brings the hub back. Then `control-openhands browser viewport desktop` and `control-openhands browser wait-url '/mcp(\?|$)'`: widening on `/customize` redirects to `/mcp`.- **Widths around the breakpoint (`F17.breakpoint-sweep`).** For each width `W` in `767`, `768`, `820`, `1023`, `1024`, `1440` run `control-openhands browser viewport Wx1024` and `control-openhands browser goto /customize`. Below 1024 px `control-openhands browser visible 'testid=extensions-mobile-hub'` is `true` and `control-openhands browser click 'testid=extensions-mobile-hub >> testid=sidebar-extensions-/mcp' --expect-url '/mcp(\?|$)'` opens the MCP page; from 1024 px up `control-openhands browser wait-url '/mcp(\?|$)'` passes at once and `control-openhands browser count 'testid=extensions-mobile-hub'` is `0`. On `/mcp`, `control-openhands browser visible 'testid=extensions-navbar-desktop'` is `false` below 1024 px and `true` from 1024 px (the switch is exactly 1023 β 1024), `control-openhands browser visible 'testid=mcp-add-custom-server'` is `true`, `control-openhands browser bbox 'testid=mcp-search-input'` is wider than 150 px (622, 323, 375, 578, 257 and 673 today) and `control-openhands browser bbox 'role=main'` has `pageHorizontalOverflow` `false` with equal `scrollWidth` and `clientWidth` (`main` is full width at 767 px, `W β 300` beside the rail from 768 to 1023 px, `W β 640` beside the rail and the aside from 1024 px). `control-openhands browser fill 'testid=mcp-search-input' GitHub` keeps `control-openhands browser count 'testid=mcp-marketplace-card-github'` at `1`; `control-openhands browser click 'testid=mcp-search-clear'`. At the boundary take `control-openhands browser screenshot --feature F17.breakpoint-sweep --name mcp-1023` and `--name mcp-1024`. Finish with `control-openhands browser viewport desktop`.- **Page and empty state (`F17.page-states`).** On a fresh run run `control-openhands browser goto /mcp`, `control-openhands browser text 'testid=mcp-installed-empty'` (`No MCP servers installed yet.` and `Pick one from the marketplace below to get started.`) and `control-openhands browser count '[data-testid^="mcp-marketplace-card-"]'` (`55` today; the catalog ships with `@openhands/extensions`). `control-openhands browser eval "[...document.querySelectorAll('main h2')].map(h=>h.textContent)"` is `["Model Context Protocol (MCP)","Installed","Library"]`. Take `control-openhands browser screenshot --feature F17.page-states --name empty-desktop`. After the family, `control-openhands browser errors --app-only` shows `pageErrors` `0`.@@ -101,7 +103,7 @@ Preconditions:- Server errors on MCP mutations (a 404 on a server that is already removed, a 502 while the Agent Server is down) toast the server's message (`MCP server '<id>' was not found`), or `An error occurred` when the body has none (#18051). Expected: one toast per failed action. Known failure (reproduced 2026-10-09): a failed delete from the editor or a failed card toggle shows two identical toasts, one from the caller and one from the global mutation handler (#18181). Count them with `click ... --observe 'role=status'` or `browser toasts --history`.- Desktop `/customize` is a client-side redirect: `browser url` may still read `/customize` for a moment; use `wait-url '/mcp(\?|$)'`.-- From 768 to 1023 px the sidebar rail stays and the top bar is gone, so a Customize detail page shows neither the aside nor a Back chevron; the rail's **Customize** link (`sidebar-skills-link`, unscoped at this width) returns to the hub.+- From 768 to 1023 px the sidebar rail stays and the phone top bar is gone. The compact Customize selector above each detail page provides sibling navigation; the rail's **Customize** link (`sidebar-skills-link`, unscoped at this width) still returns to the hub.- On a phone the drawer and the hidden desktop rail both render `sidebar-skills-link`; scope it with `testid=sidebar-mobile-drawer >> ...` or the click fails with a strict-mode error, even though `browser testids` lists it once.- Editor dropdowns are comboboxes: click `server-type-dropdown` or `auth-mode-dropdown`, then `role=option[name="..."]`. Server types read `SSE`, `STDIO` and `SHTTP` (not "Streamable HTTP"); auth modes read `None`, `Bearer token`, `Header` and `OAuth`. The type dropdown exists only when adding.- The timeout field is `type="number"`: `browser fill` refuses letters, so `Timeout must be a valid number` cannot be reached from the UI.diff --git a/.agents/skills/verify-openhands/references/feature-map/README.md b/.agents/skills/verify-openhands/references/feature-map/README.mdindex 6cfb1eecd9..36faf3be44 100644--- a/.agents/skills/verify-openhands/references/feature-map/README.md+++ b/.agents/skills/verify-openhands/references/feature-map/README.md@@ -237,7 +237,7 @@ How to write and prove new entries: [../mapping.md](../mapping.md).| F06 | [Agent activity](F06-agent-activity.md) | messages, tool events, thinking, empty state, confirmation mode, stop/resume, errors, branching | `/conversations/<id>` | LLM | 35 || F07 | [Conversation page, header and menu](F07-conversation-page.md) | title rename, status menu, β― menu (skills, hooks, tools, export, download, cost, stop, delete), git bar, overview | sidebar row, URL, `/panel` | LLM; fixture repo; Cloud items blocked | 25 || F08 | [Workspace drawer: files and changes](F08-workspace-files-and-changes.md) | Files tab, Commits and uncommitted changes, diff viewer, file links in chat | panel toggle, file links | LLM; fixture repo | 33 |-| F09 | [Settings shell and navigation](F09-settings-shell.md) | settings navigation, phone hub, deep links, update card, backend note | gear, command menu, URLs | baseline; deep links before `llm preset` | 25 |+| F09 | [Settings shell and navigation](F09-settings-shell.md) | settings navigation, phone hub, deep links, update card, backend note | gear, command menu, URLs | baseline; deep links before `llm preset` | 26 || F10 | [LLM profiles](F10-llm-profiles.md) | list, add, edit, rename, duplicate, delete, default, advanced fields, validation | `/settings/llm` | fresh run; DeepSeek key | 34 || F11 | [Provider connections](F11-provider-connections.md) | add, edit, rotate key, delete connections; profiles from a connection | `/settings/llm` | fresh run; DeepSeek key | 21 || F12 | [Model router](F12-model-router.md) | meta-profiles, templates, run on first message, routing effect | `/settings/meta-llm` | LLM profiles | 25 |@@ -245,7 +245,7 @@ How to write and prove new entries: [../mapping.md](../mapping.md).| F14 | [Secrets](F14-secrets.md) | list, add, edit, rename, delete, agent access | `/settings/secrets` | LLM for agent access | 11 || F15 | [Condenser, agent context and verification](F15-agent-behavior-settings.md) | condenser fields, agent context, confirmation mode and critic, their effect on runs | `/settings/condenser`, `/agent-context`, `/verification` | LLM for the effects | 23 || F16 | [Application settings](F16-application-settings.md) | language, theme, analytics, sound, checklist, title model, voice input, git identity | `/settings/app` | LLM for title and git checks | 19 |-| F17 | [Customize hub and MCP servers](F17-mcp-servers.md) | catalog, install, test, edit, delete, custom servers, agent use | **Customize**, `/mcp` | `uvx`/`npx`; LLM | 30 |+| F17 | [Customize hub and MCP servers](F17-mcp-servers.md) | catalog, install, test, edit, delete, custom servers, agent use | **Customize**, `/mcp` | `uvx`/`npx`; LLM | 31 || F18 | [Skills catalog](F18-skills.md) | facets, search, enable/disable, add skill, Use skill, personal and project skills | `/skills` | `fixture skill`; LLM | 22 || F19 | [Plugins and plugin launch](F19-plugins.md) | catalog, install, update, uninstall, enable, launch deep links | `/plugins`, `/launch` | LLM | 25 || F20 | [Canvas apps](F20-canvas-apps.md) | install from path or git, enable, update, uninstall, extension pages | `/apps` | none | 24 |@@ -257,7 +257,7 @@ How to write and prove new entries: [../mapping.md](../mapping.md).| F26 | [Launcher modes, Docker, desktop and library](F26-runtime-variants.md) | launcher flags, partial stacks, LAN bind, Docker, Electron, embeddable library | a terminal | Docker/Electron where available | 32 || F27 | [Workspace tools](F27-workspace-tools.md) | terminal, browser, planner, task list, usage, `canvas_ui_control` | drawer tabs | LLM | 30 |-27 families, 745 sub-features. `control-openhands map ids` lists every ID with its file.+27 families, 747 sub-features. `control-openhands map ids` lists every ID with its file.### Neighbouring familiesdiff --git a/__tests__/components/features/settings/settings-layout.test.tsx b/__tests__/components/features/settings/settings-layout.test.tsxindex 669dd41315..d5a98a7484 100644--- a/__tests__/components/features/settings/settings-layout.test.tsx+++ b/__tests__/components/features/settings/settings-layout.test.tsx@@ -1,5 +1,8 @@-import { render, screen } from "@testing-library/react";-import { describe, expect, it } from "vitest";+import { render, screen, within } from "@testing-library/react";+import userEvent from "@testing-library/user-event";+import { NavigationProvider } from "#/context/navigation-context";+import { SettingsCompactNavigation } from "#/components/features/settings/settings-desktop-sidebar";+import { afterEach, describe, expect, it, vi } from "vitest";import { MemoryRouter } from "react-router";import { QueryClient, QueryClientProvider } from "@tanstack/react-query";import { SettingsLayout } from "#/components/features/settings/settings-layout";@@ -7,10 +10,12 @@ import { OSS_NAV_ITEMS } from "#/constants/settings-nav";import { SettingsNavRenderedItem } from "#/hooks/use-settings-nav-items";import { ActiveBackendProvider } from "#/contexts/active-backend-context";-const navigationItems: SettingsNavRenderedItem[] = OSS_NAV_ITEMS.map((item) => ({- type: "item",- item,-}));+const navigationItems: SettingsNavRenderedItem[] = OSS_NAV_ITEMS.map(+ (item) => ({+ type: "item",+ item,+ }),+);describe("SettingsLayout", () => {it("renders the desktop sidebar alongside the provided child content", () => {@@ -34,3 +39,93 @@ describe("SettingsLayout", () => {expect(screen.getByTestId("page-body")).toBeInTheDocument();});});++describe("Settings compact section navigation", () => {+ const originalInnerWidth = window.innerWidth;+ afterEach(() => {+ window.innerWidth = originalInnerWidth;+ });++ function renderCompact(currentPath: string, items = navigationItems) {+ const navigate = vi.fn();+ const view = render(+ <QueryClientProvider+ client={+ new QueryClient({ defaultOptions: { queries: { retry: false } } })+ }+ >+ <ActiveBackendProvider>+ <NavigationProvider+ value={{+ currentPath,+ navigate,+ isNavigating: false,+ conversationId: null,+ }}+ >+ <SettingsCompactNavigation navigationItems={items} />+ </NavigationProvider>+ </ActiveBackendProvider>+ </QueryClientProvider>,+ );+ return { ...view, navigate };+ }++ it("uses the supplied visible sections and navigates without the hub", async () => {+ window.innerWidth = 820;+ const items = navigationItems.filter(+ (item) =>+ item.type === "item" &&+ ["/settings/app", "/settings/secrets"].includes(item.item.to),+ );+ const { navigate } = renderCompact("/settings/app", items);+ const user = userEvent.setup();++ await user.click(screen.getByRole("button"));+ const nav = screen.getByRole("navigation");+ expect(within(nav).getAllByRole("link")).toHaveLength(2);+ await user.click(+ within(nav).getByRole("link", { name: "SETTINGS$NAV_SECRETS" }),+ );++ expect(navigate).toHaveBeenCalledWith("/settings/secrets", {+ replace: false,+ });+ expect(screen.queryByRole("navigation")).not.toBeInTheDocument();+ });++ it("keeps the hub as a list without a redundant selector", () => {+ window.innerWidth = 820;+ renderCompact("/settings");+ expect(screen.queryByRole("button")).not.toBeInTheDocument();+ });++ it.each(["/settings/llm/", "/settings/llm/profile"])(+ "keeps the LLM section reachable and selected on %s",+ async (currentPath) => {+ window.innerWidth = 820;+ renderCompact(currentPath);+ const user = userEvent.setup();++ await user.click(+ screen.getByRole("button", {+ name: "SETTINGS$TITLE: SETTINGS$NAV_LLM",+ }),+ );++ const nav = screen.getByRole("navigation");+ expect(+ within(nav).getByRole("link", { name: "SETTINGS$NAV_LLM" }),+ ).toHaveAttribute("aria-current", "page");+ expect(+ within(nav).getByRole("link", { name: "SETTINGS$NAV_APPLICATION" }),+ ).not.toHaveAttribute("aria-current");+ },+ );++ it("does not treat a similarly named path as an LLM child", () => {+ window.innerWidth = 820;+ renderCompact("/settings/llm-other");+ expect(screen.queryByRole("button")).not.toBeInTheDocument();+ });+});diff --git a/__tests__/components/features/skills/extensions-navigation.test.tsx b/__tests__/components/features/skills/extensions-navigation.test.tsxindex 0f44e3f5dc..b953c8298f 100644--- a/__tests__/components/features/skills/extensions-navigation.test.tsx+++ b/__tests__/components/features/skills/extensions-navigation.test.tsx@@ -1,6 +1,8 @@import type { ReactNode } from "react";import { render, screen, within } from "@testing-library/react";import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";+import userEvent from "@testing-library/user-event";+import { NavigationProvider } from "#/context/navigation-context";import { MemoryRouter } from "react-router";import { QueryClient, QueryClientProvider } from "@tanstack/react-query";import { ActiveBackendProvider } from "#/contexts/active-backend-context";@@ -10,9 +12,11 @@ import {setRegisteredBackends,} from "#/api/backend-registry/active-store";import type { Backend } from "#/api/backend-registry/types";-import { useSidebarStore } from "#/stores/sidebar-store";-import { ExtensionsNavigation } from "#/components/features/skills/extensions-navigation";+import {+ ExtensionsNavigation,+ ExtensionsCompactNavigation,+} from "#/components/features/skills/extensions-navigation";vi.mock("react-i18next", async (importOriginal) => ({...(await importOriginal<typeof import("react-i18next")>()),@@ -30,7 +34,11 @@ const cloudBackend: Backend = {kind: "cloud",};-function renderExtensionsNavigation(ui: ReactNode) {+function renderExtensionsNavigation(+ ui: ReactNode,+ currentPath = "/mcp",+ navigate = vi.fn(),+) {return render(<QueryClientProviderclient={@@ -38,7 +46,18 @@ function renderExtensionsNavigation(ui: ReactNode) {}><ActiveBackendProvider>- <MemoryRouter>{ui}</MemoryRouter>+ <MemoryRouter>+ <NavigationProvider+ value={{+ currentPath,+ navigate,+ isNavigating: false,+ conversationId: null,+ }}+ >+ {ui}+ </NavigationProvider>+ </MemoryRouter></ActiveBackendProvider></QueryClientProvider>,);@@ -173,41 +192,87 @@ describe("ExtensionsNavigation", () => {});});- // Regression: the nav used to suppress itself at iPad-portrait widths- // (768β1023px) whenever the primary Sidebar was expanded, leaving users- // on /skills, /mcp, and /plugins with no way to switch between those- // pages. It must stay rendered there, like the Settings secondary nav.- describe("tablet viewports", () => {+ describe("tablet section selector", () => {const originalInnerWidth = window.innerWidth;+ beforeEach(() => {+ window.innerWidth = 820;+ });+ afterEach(() => {+ window.innerWidth = originalInnerWidth;+ });++ it("opens every local section and navigates directly from MCP to Skills", async () => {+ const user = userEvent.setup();+ const navigate = vi.fn();+ renderExtensionsNavigation(+ <ExtensionsCompactNavigation />,+ "/mcp",+ navigate,+ );- function setViewport(width: number) {- Object.defineProperty(window, "innerWidth", {- configurable: true,- writable: true,- value: width,+ const trigger = screen.getByRole("button", {+ name: "NAV$CUSTOMIZE: MCP Servers",});- }+ await user.click(trigger);+ const nav = screen.getByRole("navigation", { name: "NAV$CUSTOMIZE" });+ expect(+ within(nav)+ .getAllByRole("link")+ .map((link) => link.getAttribute("href")),+ ).toEqual(["/mcp", "/skills", "/plugins", "/apps"]);+ expect(+ within(nav).getByRole("link", { name: "MCP Servers" }),+ ).toHaveAttribute("aria-current", "page");+ await user.click(within(nav).getByRole("link", { name: "Skills" }));- afterEach(() => {- setViewport(originalInnerWidth);- // The Zustand sidebar store is a module singleton β reset it so this- // suite's state doesn't bleed into other tests.- useSidebarStore.setState({ collapsed: false });+ expect(navigate).toHaveBeenCalledWith("/skills", { replace: false });+ expect(trigger).toHaveAttribute("aria-expanded", "false");});- it("stays rendered at iPad portrait width while the Sidebar is expanded", () => {- // Arrange: iPad Air portrait viewport with the primary Sidebar- // expanded β the exact conditions that previously hid the nav.- setViewport(820);- useSidebarStore.setState({ collapsed: false });-- // Act- renderExtensionsNavigation(<ExtensionsNavigation />);+ it("supports keyboard opening, Escape focus return, and outside dismissal", async () => {+ const user = userEvent.setup();+ renderExtensionsNavigation(<ExtensionsCompactNavigation />);+ const trigger = screen.getByRole("button");+ trigger.focus();+ await user.keyboard("{Enter}{Tab}");+ expect(screen.getByRole("link", { name: "MCP Servers" })).toHaveFocus();+ await user.keyboard("{Escape}");+ expect(trigger).toHaveFocus();+ expect(trigger).toHaveAttribute("aria-expanded", "false");+ await user.click(trigger);+ await user.click(document.body);+ expect(trigger).toHaveAttribute("aria-expanded", "false");+ });- // Assert+ it("keeps Cloud filtering and the external Skills destination", async () => {+ setRegisteredBackends([cloudBackend]);+ setActiveSelection({ backendId: cloudBackend.id });+ renderExtensionsNavigation(<ExtensionsCompactNavigation />);+ await userEvent.click(screen.getByRole("button"));+ const nav = screen.getByRole("navigation");+ expect(+ within(nav).queryByRole("link", { name: "Plugins" }),+ ).not.toBeInTheDocument();expect(- screen.getByTestId("extensions-navbar-desktop"),- ).toBeInTheDocument();+ within(nav).queryByRole("link", { name: "Apps" }),+ ).not.toBeInTheDocument();+ const link = within(nav).getByRole("link", {+ name: "SIDEBAR$SKILLS_AND_PLUGINS_CLOUD_LINK",+ });+ expect(link).toHaveAttribute(+ "href",+ "https://app.all-hands.dev/settings/skills",+ );+ expect(link).toHaveAttribute("target", "_blank");});++ it.each([767, 1024])(+ "leaves phone and desktop navigation unchanged at %i px",+ (width) => {+ window.innerWidth = width;+ renderExtensionsNavigation(<ExtensionsCompactNavigation />);+ expect(screen.queryByRole("button")).not.toBeInTheDocument();+ },+ );});});diff --git a/__tests__/routes/settings.test.tsx b/__tests__/routes/settings.test.tsxindex 8886e45773..98fb4390da 100644--- a/__tests__/routes/settings.test.tsx+++ b/__tests__/routes/settings.test.tsx@@ -106,33 +106,36 @@ describe("settings route", () => {expect(result).toBeNull();});- it("renders the current OSS section title", () => {- const RouterStub = createRoutesStub([- {- path: "/settings",- Component: SettingsScreen,- children: [- {- path: "/settings/app",- Component: () => <div data-testid="app-settings-screen" />,- },- ],- },- ]);+ it.each(["/settings/app", "/settings/app/"])(+ "renders the current OSS section title on %s",+ (path) => {+ const RouterStub = createRoutesStub([+ {+ path: "/settings",+ Component: SettingsScreen,+ children: [+ {+ path: "/settings/app",+ Component: () => <div data-testid="app-settings-screen" />,+ },+ ],+ },+ ]);- render(- <QueryClientProvider client={new QueryClient()}>- <ActiveBackendProvider>- <RouterStub initialEntries={["/settings/app"]} />- </ActiveBackendProvider>- </QueryClientProvider>,- );+ render(+ <QueryClientProvider client={new QueryClient()}>+ <ActiveBackendProvider>+ <RouterStub initialEntries={[path]} />+ </ActiveBackendProvider>+ </QueryClientProvider>,+ );- expect(- screen.getAllByText("SETTINGS$NAV_APPLICATION").length,- ).toBeGreaterThan(0);- expect(screen.getByTestId("app-settings-screen")).toBeInTheDocument();- });+ expect(+ screen.getByRole("heading", { name: "SETTINGS$NAV_APPLICATION" }),+ ).toBeInTheDocument();+ expect(screen.getByTestId("app-settings-screen")).toBeInTheDocument();+ },+ );it("exposes a single main landmark that holds the settings page", () => {// Arrangediff --git a/src/components/features/settings/settings-desktop-sidebar.tsx b/src/components/features/settings/settings-desktop-sidebar.tsxindex e795dbc4b8..a9982a216b 100644--- a/src/components/features/settings/settings-desktop-sidebar.tsx+++ b/src/components/features/settings/settings-desktop-sidebar.tsx@@ -1,3 +1,5 @@+import { CompactSectionNavigation } from "#/components/shared/compact-section-navigation";+import { useNavigation } from "#/context/navigation-context";import { useTranslation } from "react-i18next";import { cn } from "#/utils/utils";import { Typography } from "#/ui/typography";@@ -22,10 +24,6 @@ export function SettingsDesktopSidebar({navigationItems,}: SettingsDesktopSidebarProps) {const { t } = useTranslation("openhands");- const desktopNavItems = navigationItems.filter(- (item): item is Extract<SettingsNavRenderedItem, { type: "item" }> =>- item.type === "item",- );return (<aside@@ -38,20 +36,7 @@ export function SettingsDesktopSidebar({<Typography.Text className="px-2 text-sm font-normal text-contrast">{t(I18nKey.SETTINGS$TITLE)}</Typography.Text>- <div className="flex flex-col gap-0.5 pt-0.5">- {desktopNavItems.map((renderedItem) => (- <SidebarNavLink- key={renderedItem.item.to}- to={renderedItem.item.to}- label={t(renderedItem.item.text as I18nKey)}- end- testId={`sidebar-settings-${renderedItem.item.to}`}- icon={renderedItem.item.icon}- />- ))}- <IntegrationsSettingsLink />- <CloudSettingsLink />- </div>+ <SettingsNavigationLinks navigationItems={navigationItems} /><div className="flex flex-col gap-2 px-2 pt-3"><AgentCanvasUpdateCard /></div>@@ -61,3 +46,55 @@ export function SettingsDesktopSidebar({</aside>);}++function SettingsNavigationLinks({+ navigationItems,+}: SettingsDesktopSidebarProps) {+ const { t } = useTranslation("openhands");+ const desktopNavItems = navigationItems.filter(+ (item): item is Extract<SettingsNavRenderedItem, { type: "item" }> =>+ item.type === "item",+ );+ return (+ <div className="flex flex-col gap-0.5 pt-0.5">+ {desktopNavItems.map((renderedItem) => (+ <SidebarNavLink+ key={renderedItem.item.to}+ to={renderedItem.item.to}+ label={t(renderedItem.item.text as I18nKey)}+ testId={`sidebar-settings-${renderedItem.item.to}`}+ icon={renderedItem.item.icon}+ />+ ))}+ <IntegrationsSettingsLink />+ <CloudSettingsLink />+ </div>+ );+}++export function SettingsCompactNavigation({+ navigationItems,+}: SettingsDesktopSidebarProps) {+ const { t } = useTranslation("openhands");+ const { currentPath } = useNavigation();+ const currentItem = navigationItems.find(+ (item) =>+ item.type === "item" &&+ (item.item.to === currentPath ||+ currentPath.startsWith(`${item.item.to}/`)),+ );++ return (+ <CompactSectionNavigation+ label={t(I18nKey.SETTINGS$TITLE)}+ currentLabel={+ currentItem?.type === "item"+ ? t(currentItem.item.text as I18nKey)+ : undefined+ }+ testId="settings-compact-navigation"+ >+ <SettingsNavigationLinks navigationItems={navigationItems} />+ </CompactSectionNavigation>+ );+}diff --git a/src/components/features/settings/settings-layout.tsx b/src/components/features/settings/settings-layout.tsxindex e6175b030c..dc5b292113 100644--- a/src/components/features/settings/settings-layout.tsx+++ b/src/components/features/settings/settings-layout.tsx@@ -1,4 +1,7 @@-import { SettingsDesktopSidebar } from "./settings-desktop-sidebar";+import {+ SettingsDesktopSidebar,+ SettingsCompactNavigation,+} from "./settings-desktop-sidebar";import { SettingsNavRenderedItem } from "#/hooks/use-settings-nav-items";import { settingsLayoutMainScrollClassName } from "#/utils/settings-like-page-layout-classes";@@ -21,7 +24,10 @@ export function SettingsLayout({<div className="flex min-h-0 flex-1 gap-10 lg:items-start"><SettingsDesktopSidebar navigationItems={navigationItems} /><main className={settingsLayoutMainScrollClassName}>- <div className="mx-auto w-full min-w-0 max-w-200">{children}</div>+ <div className="mx-auto flex w-full min-w-0 max-w-200 flex-col gap-6">+ <SettingsCompactNavigation navigationItems={navigationItems} />+ {children}+ </div></main></div></div>diff --git a/src/components/features/skills/extensions-navigation.tsx b/src/components/features/skills/extensions-navigation.tsxindex 3bf8bdf3a7..bf4dc35cbd 100644--- a/src/components/features/skills/extensions-navigation.tsx+++ b/src/components/features/skills/extensions-navigation.tsx@@ -1,5 +1,7 @@import { useTranslation } from "react-i18next";import { Blocks, ExternalLink } from "lucide-react";+import { CompactSectionNavigation } from "#/components/shared/compact-section-navigation";+import { useNavigation } from "#/context/navigation-context";import { NavigationLink } from "#/components/shared/navigation-link";import { cn } from "#/utils/utils";import SkillsIcon from "#/icons/skills.svg?react";@@ -72,9 +74,6 @@ export const EXTENSIONS_NAV_ITEMS: ExtensionNavItem[] = [export function ExtensionsNavigation() {const { t } = useTranslation("openhands");- const { active } = useActiveBackendContext();- const { backend } = active;- const isCloudBackend = !isNoBackend(backend) && backend.kind === "cloud";return (<aside@@ -84,82 +83,110 @@ export function ExtensionsNavigation() {<span className="px-2 text-sm font-normal text-contrast">{t(I18nKey.NAV$CUSTOMIZE)}</span>- <div className="flex flex-col gap-0.5 pt-0.5">- {EXTENSIONS_NAV_ITEMS.filter(- (item) =>- !(CLOUD_HIDDEN_EXTENSION_PATHS.has(item.to) && isCloudBackend),- ).map((item) => {- const isCloudSkillsLink =- item.to === CLOUD_LINKED_EXTENSION_PATH && isCloudBackend;- const baseRow = (- <span className="shrink-0 flex items-center justify-center">- {item.icon}- </span>- );- const label = (- <span className="truncate">- {isCloudSkillsLink- ? t(I18nKey.SIDEBAR$SKILLS_AND_PLUGINS_CLOUD_LINK)- : item.label}- </span>- );- const comingSoonBadge = item.comingSoon && (- <span className="ml-auto shrink-0 rounded-full border border-contrast/20 bg-contrast/5 px-1.5 py-0.5 text-[10px] font-medium text-text-dim">- {t(I18nKey.NAV$COMING_SOON)}- </span>- );+ <ExtensionsNavigationLinks />+ <div className="px-2 pt-3">+ <BackendSyncedSettingsBadge />+ </div>+ </aside>+ );+}- if (isCloudSkillsLink) {- const cloudSkillsUrl = `${backend.host.replace(/\/+$/, "")}/settings/skills`;- return (- <a- key={item.to}- data-testid={`sidebar-extensions-${item.to}`}- href={cloudSkillsUrl}- target="_blank"- rel="noopener noreferrer"- className={cn(- sidebarNavRowClassName(),- "truncate",- SIDEBAR_ROW_INTERACTIVE_CLASS.idle,- )}- >- {baseRow}- {label}- <ExternalLink- className="ml-auto size-4 shrink-0 text-muted"- aria-hidden- />- </a>- );- }+function ExtensionsNavigationLinks() {+ const { t } = useTranslation("openhands");+ const { active } = useActiveBackendContext();+ const { backend } = active;+ const isCloudBackend = !isNoBackend(backend) && backend.kind === "cloud";+ return (+ <div className="flex flex-col gap-0.5 pt-0.5">+ {EXTENSIONS_NAV_ITEMS.filter(+ (item) =>+ !(CLOUD_HIDDEN_EXTENSION_PATHS.has(item.to) && isCloudBackend),+ ).map((item) => {+ const isCloudSkillsLink =+ item.to === CLOUD_LINKED_EXTENSION_PATH && isCloudBackend;+ const baseRow = (+ <span className="shrink-0 flex items-center justify-center">+ {item.icon}+ </span>+ );+ const label = (+ <span className="truncate">+ {isCloudSkillsLink+ ? t(I18nKey.SIDEBAR$SKILLS_AND_PLUGINS_CLOUD_LINK)+ : item.label}+ </span>+ );+ const comingSoonBadge = item.comingSoon && (+ <span className="ml-auto shrink-0 rounded-full border border-contrast/20 bg-contrast/5 px-1.5 py-0.5 text-[10px] font-medium text-text-dim">+ {t(I18nKey.NAV$COMING_SOON)}+ </span>+ );+ if (isCloudSkillsLink) {+ const cloudSkillsUrl = `${backend.host.replace(/\/+$/, "")}/settings/skills`;return (- <NavigationLink+ <akey={item.to}- to={item.to}- end={item.end}data-testid={`sidebar-extensions-${item.to}`}- className={({ isActive }) =>- cn(- sidebarNavRowClassName(),- "truncate",- isActive- ? SIDEBAR_ROW_INTERACTIVE_CLASS.active- : SIDEBAR_ROW_INTERACTIVE_CLASS.idle,- )- }+ href={cloudSkillsUrl}+ target="_blank"+ rel="noopener noreferrer"+ className={cn(+ sidebarNavRowClassName(),+ "truncate",+ SIDEBAR_ROW_INTERACTIVE_CLASS.idle,+ )}>{baseRow}{label}- {comingSoonBadge}- </NavigationLink>+ <ExternalLink+ className="ml-auto size-4 shrink-0 text-muted"+ aria-hidden+ />+ </a>);- })}- </div>- <div className="px-2 pt-3">- <BackendSyncedSettingsBadge />- </div>- </aside>+ }++ return (+ <NavigationLink+ key={item.to}+ to={item.to}+ end={item.end}+ data-testid={`sidebar-extensions-${item.to}`}+ className={({ isActive }) =>+ cn(+ sidebarNavRowClassName(),+ "truncate",+ isActive+ ? SIDEBAR_ROW_INTERACTIVE_CLASS.active+ : SIDEBAR_ROW_INTERACTIVE_CLASS.idle,+ )+ }+ >+ {baseRow}+ {label}+ {comingSoonBadge}+ </NavigationLink>+ );+ })}+ </div>+ );+}++export function ExtensionsCompactNavigation() {+ const { t } = useTranslation("openhands");+ const { currentPath } = useNavigation();+ const currentItem = EXTENSIONS_NAV_ITEMS.find(+ (item) => currentPath === item.to || currentPath.startsWith(`${item.to}/`),+ );++ return (+ <CompactSectionNavigation+ label={t(I18nKey.NAV$CUSTOMIZE)}+ currentLabel={currentItem?.label}+ testId="extensions-compact-navigation"+ >+ <ExtensionsNavigationLinks />+ </CompactSectionNavigation>);}diff --git a/src/components/shared/compact-section-navigation.tsx b/src/components/shared/compact-section-navigation.tsxnew file mode 100644index 0000000000..e23e8686c0--- /dev/null+++ b/src/components/shared/compact-section-navigation.tsx@@ -0,0 +1,83 @@+import { useId, useRef, useState } from "react";+import { ChevronDown } from "lucide-react";+import { useNavigation } from "#/context/navigation-context";+import {+ SETTINGS_COMPACT_MAX_WIDTH,+ SIDEBAR_RAIL_COLLAPSE_MAX_WIDTH,+ useBreakpoint,+} from "#/hooks/use-breakpoint";+import { useClickOutsideElement } from "#/hooks/use-click-outside-element";+import { useCloseOnEscape } from "#/hooks/use-close-on-escape";+import { cn } from "#/utils/utils";+import { dropdownTriggerShellClassName } from "#/utils/dropdown-classes";++interface CompactSectionNavigationProps {+ label: string;+ currentLabel?: string;+ testId: string;+ children: React.ReactNode;+}++function SectionDisclosure({+ label,+ currentLabel,+ testId,+ children,+}: CompactSectionNavigationProps) {+ const [isOpen, setIsOpen] = useState(false);+ const menuId = useId();+ const triggerRef = useRef<HTMLButtonElement>(null);+ const containerRef = useClickOutsideElement<HTMLDivElement>(() =>+ setIsOpen(false),+ );+ useCloseOnEscape(isOpen, () => setIsOpen(false), triggerRef);++ return (+ <div ref={containerRef} className="relative" data-testid={testId}>+ <button+ ref={triggerRef}+ type="button"+ aria-label={`${label}: ${currentLabel}`}+ aria-expanded={isOpen}+ aria-controls={menuId}+ onClick={() => setIsOpen(!isOpen)}+ className={cn(dropdownTriggerShellClassName, "min-h-11 text-sm")}+ >+ <span className="shrink-0 text-muted">{label}</span>+ <span className="min-w-0 flex-1 truncate text-left text-contrast">+ {currentLabel}+ </span>+ <ChevronDown className="size-4 shrink-0" aria-hidden />+ </button>+ {isOpen && (+ // Link activation bubbles here for mouse and keyboard alike. Child+ // anchors own navigation; this only dismisses their disclosure.+ // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions -- delegated link activation, not a standalone click target+ <nav+ id={menuId}+ aria-label={label}+ className="absolute inset-x-0 top-full z-50 mt-1 max-h-80 overflow-y-auto rounded-md border border-border-subtle bg-tertiary p-1 shadow-lg"+ onClick={(event) => {+ if (event.target instanceof Element && event.target.closest("a")) {+ setIsOpen(false);+ }+ }}+ >+ {children}+ </nav>+ )}+ </div>+ );+}++/** Keep sibling pages reachable while the secondary sidebar is hidden. */+export function CompactSectionNavigation(props: CompactSectionNavigationProps) {+ const { currentPath } = useNavigation();+ const isCompact = useBreakpoint(SETTINGS_COMPACT_MAX_WIDTH);+ const isPhone = useBreakpoint(SIDEBAR_RAIL_COLLAPSE_MAX_WIDTH);++ if (!isCompact || isPhone || !props.currentLabel) return null;++ // Route changes also dismiss a disclosure opened before browser Back/Forward.+ return <SectionDisclosure key={currentPath} {...props} />;+}diff --git a/src/routes/canvas-extensions.tsx b/src/routes/canvas-extensions.tsxindex fcb4b3731f..f80761b877 100644--- a/src/routes/canvas-extensions.tsx+++ b/src/routes/canvas-extensions.tsx@@ -1,7 +1,10 @@import React from "react";import { useTranslation } from "react-i18next";import { ExternalLink } from "lucide-react";-import { ExtensionsNavigation } from "#/components/features/skills/extensions-navigation";+import {+ ExtensionsNavigation,+ ExtensionsCompactNavigation,+} from "#/components/features/skills/extensions-navigation";import { AddCanvasExtensionModal } from "#/components/features/canvas-extensions/add-canvas-extension-modal";import { CanvasExtensionCard } from "#/components/features/canvas-extensions/canvas-extension-card";import { BrandButton } from "#/components/features/settings/brand-button";@@ -89,6 +92,7 @@ export default function CanvasExtensionsScreen() {<ExtensionsNavigation /><main className={cn(settingsLikeMainScrollClassName, "h-full")}><div className="mx-auto flex w-full min-w-0 max-w-200 flex-col gap-6">+ <ExtensionsCompactNavigation /><div className="flex min-w-0 items-start justify-between gap-4"><div className="min-w-0 space-y-1"><h2 className="text-xl font-semibold leading-6 text-foreground">diff --git a/src/routes/mcp.tsx b/src/routes/mcp.tsxindex 0fb635ebbb..155826f07a 100644--- a/src/routes/mcp.tsx+++ b/src/routes/mcp.tsx@@ -1,6 +1,9 @@import React from "react";import { AxiosError } from "axios";-import { ExtensionsNavigation } from "#/components/features/skills/extensions-navigation";+import {+ ExtensionsNavigation,+ ExtensionsCompactNavigation,+} from "#/components/features/skills/extensions-navigation";import { useTranslation } from "react-i18next";import { I18nKey } from "#/i18n/declaration";import { BrandButton } from "#/components/features/settings/brand-button";@@ -113,6 +116,7 @@ export default function MCPPage() {<ExtensionsNavigation /><main className={settingsLikeMainScrollClassName}><div className="mx-auto flex w-full min-w-0 max-w-200 flex-col gap-6">+ <ExtensionsCompactNavigation /><div className="min-w-0"><div className="flex flex-wrap items-start justify-between gap-4"><div className="min-w-0 flex-1 basis-64 space-y-1">diff --git a/src/routes/settings.tsx b/src/routes/settings.tsxindex 8cecee4850..0f32cddf98 100644--- a/src/routes/settings.tsx+++ b/src/routes/settings.tsx@@ -64,7 +64,9 @@ function SettingsScreen() {// Resolve from the full list, not the listed subset, so a page that is// reachable but unlisted still gets its own title.const currentItem = OSS_NAV_ITEMS.find(- (item) => item.to === location.pathname,+ (item) =>+ item.to === location.pathname ||+ location.pathname.startsWith(`${item.to}/`),);if (currentItem) {return {diff --git a/src/routes/skills-plugins.tsx b/src/routes/skills-plugins.tsxindex d5738f1210..7a15cc9835 100644--- a/src/routes/skills-plugins.tsx+++ b/src/routes/skills-plugins.tsx@@ -1,6 +1,9 @@import React from "react";import { useTranslation } from "react-i18next";-import { ExtensionsNavigation } from "#/components/features/skills/extensions-navigation";+import {+ ExtensionsNavigation,+ ExtensionsCompactNavigation,+} from "#/components/features/skills/extensions-navigation";import { PluginCard } from "#/components/features/plugins/plugin-card";import { PluginsToolbar } from "#/components/features/plugins/plugins-toolbar";import { PluginDetailModal } from "#/components/features/plugins/plugin-detail-modal";@@ -128,6 +131,7 @@ export default function SkillsPluginsScreen() {<ExtensionsNavigation /><main className={cn(settingsLikeMainScrollClassName, "h-full")}><div className="mx-auto flex w-full min-w-0 max-w-200 flex-col gap-6">+ <ExtensionsCompactNavigation /><div className="flex min-w-0 items-start justify-between gap-4"><div className="min-w-0 space-y-1"><h2 className="text-xl font-semibold leading-6 text-foreground">diff --git a/src/routes/skills-settings.tsx b/src/routes/skills-settings.tsxindex 7ef831ddcf..f4c578ff78 100644--- a/src/routes/skills-settings.tsx+++ b/src/routes/skills-settings.tsx@@ -2,7 +2,10 @@ import React from "react";import { useTranslation } from "react-i18next";import { useSearchParams } from "react-router";import { BrandButton } from "#/components/features/settings/brand-button";-import { ExtensionsNavigation } from "#/components/features/skills/extensions-navigation";+import {+ ExtensionsNavigation,+ ExtensionsCompactNavigation,+} from "#/components/features/skills/extensions-navigation";import { AddSkillModal } from "#/components/features/skills/add-skill-modal";import { SkillCard } from "#/components/features/skills/skill-card";import { SkillDetailModal } from "#/components/features/skills/skill-detail-modal";@@ -135,6 +138,7 @@ function SkillsSettingsScreen() {data-testid="skills-page"className="mx-auto flex w-full min-w-0 max-w-275 flex-col gap-6">+ <ExtensionsCompactNavigation /><div className="flex min-w-0 items-start justify-between gap-4"><div className="min-w-0 space-y-1"><h2 className="text-xl font-semibold leading-6 text-foreground">