HarnessRouter Community Edition: the self-hosted, Apache-2.0 edition of the unified interface for agent harnesses. Run Codex, Claude Code, Hermes, PI, DSH, and more through one API, with sessions, streaming, files, cancellation, and failure handling. Implements the Unified Harness Protocol (UHP), an open standard. Your keys, your infrastructure.
Python agent-apiagent-frameworkagent-harnessai-agentsai-infrastructurecoding-agentconformance-testingdeepseek-harnessharness-engineeringhermesllmopen-protocolopen-sourceopen-standardpi-coding-agentself-hosteduhpunified-apiunified-harness-protocolunified-interface
console: the workspace menu fits the window, its workspaces scroll, New workspace stays in reach (#575)
github-actions[bot]66eb6e55f956
diff --git a/ui/src/components/hrui/Shell.test.tsx b/ui/src/components/hrui/Shell.test.tsxindex 39c2688e..b0187c41 100644--- a/ui/src/components/hrui/Shell.test.tsx+++ b/ui/src/components/hrui/Shell.test.tsx@@ -108,6 +108,21 @@ test('the workspace menu: the workspaces, Workspace settings and New workspace,expect(toast).not.toHaveBeenCalled();});+test('the workspace menu fits the window: its workspaces scroll, its two actions stay outside the list', async () => {+ await mount();+ await act(async () => { (el.querySelector('.ws-rail') as HTMLButtonElement).click(); });+ const menu = el.querySelector('.ws-pop') as HTMLElement;+ const list = menu.querySelector('.ws-list') as HTMLElement;+ expect(list).toBeTruthy();+ expect(list.textContent).toContain('Default Workspace');+ // the actions are the menu's own, never inside the list that scrolls+ const actions = Array.from(menu.querySelectorAll<HTMLButtonElement>(':scope > .ws-row.plain')).map((b) => b.textContent);+ expect(actions).toEqual(['Workspace settings', 'New workspace']);+ expect(list.textContent).not.toContain('New workspace');+ // held to the room under its top (jsdom's window is 768 tall, the menu at its top: 768 - 0 - 8)+ expect(menu.style.maxHeight).toBe(`${window.innerHeight - 8}px`);+});+test('before the list answers: no page, no workspace named, a loading state in the menu', async () => {ctx = { ...ctx, workspaces: [], current: UNKNOWN, known: false, loading: true };await mount();diff --git a/ui/src/components/hrui/Shell.tsx b/ui/src/components/hrui/Shell.tsxindex cb176073..f06f11a7 100644--- a/ui/src/components/hrui/Shell.tsx+++ b/ui/src/components/hrui/Shell.tsx@@ -139,6 +139,12 @@ export function HruiShell({ children }: { children: React.ReactNode; ownStyles?:wsPop.current.style.left = narrow ? '8px' : `${r.right + 8}px`;wsPop.current.style.top = narrow ? `${r.bottom + 6}px` : `${r.top}px`;}+ if (wsOpen && wsPop.current) {+ // never past the window's foot: the workspaces scroll inside it, its two actions stay in reach+ // (an organization with many workspaces could not reach New workspace, 2026-10-23)+ const top = wsPop.current.getBoundingClientRect().top;+ wsPop.current.style.maxHeight = `${Math.max(160, window.innerHeight - top - 8)}px`;+ }if (meOpen && mePop.current && meBtn.current) {const r = meBtn.current.getBoundingClientRect();const st = mePop.current.style;@@ -206,14 +212,18 @@ export function HruiShell({ children }: { children: React.ReactNode; ownStyles?:</button>) : waiting ? (<Skel label="Loading workspaces"><SkRows n={2} /></Skel>- ) : workspaces.map((w) => (- <button key={w.id || 'default'} type="button" className="ws-row" role="menuitem"- onClick={() => { setWsOpen(false); if (w.id !== current.id) { setCurrent(w.id); window.location.assign('/studio'); } else go('/studio'); }}>- <WsBadge name={w.name} size={30} />- <span className="grow"><b>{w.name}</b>{w.description ? <small>{w.description}</small> : null}</span>- {w.id === current.id ? <span className="chk">{Ic.check}</span> : null}- </button>- ))}+ ) : (+ <div className="ws-list">+ {workspaces.map((w) => (+ <button key={w.id || 'default'} type="button" className="ws-row" role="menuitem"+ onClick={() => { setWsOpen(false); if (w.id !== current.id) { setCurrent(w.id); window.location.assign('/studio'); } else go('/studio'); }}>+ <WsBadge name={w.name} size={30} />+ <span className="grow"><b>{w.name}</b>{w.description ? <small>{w.description}</small> : null}</span>+ {w.id === current.id ? <span className="chk">{Ic.check}</span> : null}+ </button>+ ))}+ </div>+ )}{!known ? null : (<><hr /><button type="button" className="ws-row plain" role="menuitem" onClick={() => openSheet('people')}>Workspace settings</button>diff --git a/ui/src/components/hrui/hrui-console.css b/ui/src/components/hrui/hrui-console.cssindex fcd4e7dd..3e5ea9b0 100644--- a/ui/src/components/hrui/hrui-console.css+++ b/ui/src/components/hrui/hrui-console.css@@ -1032,3 +1032,9 @@#hrui .dc-b.on>svg{color:var(--accent)}#hrui .dc-dot{position:absolute;top:5px;right:5px;width:7px;height:7px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 2px var(--bg)}#hrui .dc-pop{min-width:232px;white-space:nowrap}++/* the workspace menu never runs off the window (Shell sets its height to the room it has): its+ workspaces scroll inside it, and Workspace settings and New workspace stay at its foot */+#hrui .ws-pop:not(.me-pop){display:flex;flex-direction:column;overscroll-behavior:contain}+#hrui .ws-pop .ws-list{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow-y:auto}+#hrui .ws-pop:not(.me-pop)>hr,#hrui .ws-pop:not(.me-pop)>.ws-row.plain{flex:none}