Repository navigation
feat(agent-dashboard): choose in-window board or pop-out window - #10243
Conversation
The experimental Agent Dashboard opened only as a separate pop-out window. Add an "Open as" mode under the experimental toggle so it can open as an in-window screen popover (new default) or a pop-out window (prior behavior). The mode row appears only when the feature is on. - New setting `experimentalAgentDashboardMode: 'in-window' | 'popout'` (default in-window); sidebar entry branches on it. - In-window: AgentDashboardOverlay renders the shared AgentKanbanBoard in a near-fullscreen dialog, snapshot built locally via useLiveDashboardSnapshot (the pop-out relays over IPC; in-window has no relay). Ack/reveal act on the local store — the pop-out IPC handlers are gated to the pop-out renderer. - AgentKanbanBoard gains containerClassName/onAckAgent/onRevealAgent/ onClose props; defaults preserve the pop-out behavior. - Extracted AgentDashboardExperimentalSetting to keep ExperimentalPane under the max-lines cap.
📝 WalkthroughWalkthroughThe Agent Dashboard now supports configurable in-window and popout presentation modes. Settings define and persist the selected mode, with localized controls and search metadata. The application mounts a live in-window dashboard overlay with store-based snapshot, acknowledgement, reveal, and close handling. The reusable Kanban board and terminal dialog accept injected action callbacks while preserving popout relay defaults. Sidebar activation opens the dashboard according to the selected mode. Terminal preview IPC also accepts trusted UI renderers. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 3
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 1d3be195-11f1-4043-b6b7-7287c38e0329
📒 Files selected for processing (13)
src/renderer/src/App.tsxsrc/renderer/src/components/dashboard-popout/AgentKanbanBoard.tsxsrc/renderer/src/components/dashboard-popout/AgentTerminalDialog.tsxsrc/renderer/src/components/dashboard/AgentDashboardOverlay.tsxsrc/renderer/src/components/dashboard/useLiveDashboardSnapshot.tssrc/renderer/src/components/settings/AgentDashboardExperimentalSetting.tsxsrc/renderer/src/components/settings/ExperimentalPane.tsxsrc/renderer/src/components/settings/experimental-search.tssrc/renderer/src/components/sidebar/SidebarNav.tsxsrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/store/slices/ui.tssrc/shared/constants.tssrc/shared/types.ts
| /** Ack an agent in the pop-out window: relayed over IPC to the main renderer. | ||
| * ?. shields dialog-opening from dev-HMR preload skew (renderer updates hot, | ||
| * the preload only on app restart) — acks just no-op until restart. */ | ||
| function ackAgentViaPopoutRelay(paneKey: string): void { | ||
| void window.api.dashboard.ackAgent?.(paneKey) | ||
| } | ||
|
|
||
| /** Reveal an agent from the pop-out window: raise the main window and route it | ||
| * to the agent's pane via IPC. */ | ||
| function revealAgentViaPopoutRelay(args: AgentRevealArgs): void { | ||
| void window.api.dashboard.revealAgent(args) | ||
| } |
There was a problem hiding this comment.
🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Check whether ackAgent/revealAgent are both optional or if revealAgent is required (older/stable) in the preload API type.
rg -nP -C3 '\bdashboard\s*:\s*\{' --type=ts -g '!**/*.test.ts' | head -80
rg -nP '\b(ackAgent|revealAgent)\??\s*:' --type=tsRepository: stablyai/orca
Length of output: 151
🏁 Script executed:
#!/bin/bash
set -euo pipefail
printf 'Files matching AgentKanbanBoard.tsx, API/ preload definitions:\n'
fd -i 'AgentKanbanBoard\.tsx|api|preload|bridge|dashboard' . -t f | sed 's#^\./##' | head -200
printf '\nTarget file lines:\n'
sed -n '1,120p' src/renderer/src/components/dashboard-popout/AgentKanbanBoard.tsx
printf '\nSearch dashboard/revealAgent/ackAgent in tracked source/docs:\n'
rg -n --glob '!node_modules' --glob '!dist' --glob '!build' 'dashboard|ackAgent|revealAgent|window\.api|contextBridge|ipcRenderer|preload' . | head -300Repository: stablyai/orca
Length of output: 43295
🏁 Script executed:
#!/bin/bash
set -euo pipefail
printf 'Preload API types outline:\n'
wc -l src/preload/api-types.ts
sed -n '1,260p' src/preload/api-types.ts
printf '\nPreload index relevant dashboard wiring:\n'
wc -l src/preload/index.ts
rg -n -C 4 "dashboard|contextBridge|exposeInMainWorld|ackAgent|revealAgent" src/preload/index.ts src/preload/api-types.ts src/shared/types.ts | head -220Repository: stablyai/orca
Length of output: 21197
🏁 Script executed:
#!/bin/bash
set -euo pipefail
printf 'Preload API types outline:\n'
wc -l src/preload/api-types.ts
sed -n '1,260p' src/preload/api-types.ts
printf '\nPreload index relevant dashboard wiring:\n'
wc -l src/preload/index.ts
rg -n -C 4 "dashboard|contextBridge|exposeInMainWorld|ackAgent|revealAgent" src/preload/index.ts src/preload/api-types.ts src/shared/types.ts |(head -220)Repository: stablyai/orca
Length of output: 21197
Add the same HMR guard for revealAgentViaPopoutRelay.
ackAgent/revealAgent are symmetric pop-out IPC relays on window.api.dashboard, so calling revealAgent directly leaves the pop-out UI able to throw in dev when the renderer update is hot and the preload has not reloaded. Add the ?. no-op guard here as well.
Optional guard for parity
function revealAgentViaPopoutRelay(args: AgentRevealArgs): void {
- void window.api!.dashboard.revealAgent(args)
+ void window.api!.dashboard.revealAgent?.(args)
}| return ( | ||
| <AgentKanbanBoard | ||
| snapshot={snapshot} | ||
| containerClassName="h-full w-full" | ||
| onAckAgent={handleAckAgent} | ||
| onRevealAgent={handleRevealAgent} | ||
| onClose={onClose} | ||
| /> | ||
| ) | ||
| } |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "Files matching AgentDashboardOverlay and AgentKanbanBoard/AgentTerminalDialog:"
fd -i 'AgentDashboard|AgentKanban|AgentTerminal' src/renderer/src/components || true
echo
echo "Outline AgentDashboardOverlay:"
ast-grep outline src/renderer/src/components/dashboard/AgentDashboardOverlay.tsx || true
echo
echo "Relevant AgentDashboardOverlay lines:"
nl -ba src/renderer/src/components/dashboard/AgentDashboardOverlay.tsx | sed -n '1,120p'
echo
echo "Search for AgentTerminalDialog usages:"
rg -n "AgentTerminalDialog|<Dialog|DialogContent|DialogOverlay" src/renderer/src/components dashboard 2>/dev/null || trueRepository: stablyai/orca
Length of output: 1194
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "AgentDashboardOverlay.tsx:"
cat -n src/renderer/src/components/dashboard/AgentDashboardOverlay.tsx
echo
echo "AgentKanbanBoard.tsx relevant search:"
rg -n "AgentTerminalDialog|AgentTerminalPreview|TerminalPreview|onClick|terminal" src/renderer/src/components/dashboard-popout/AgentKanbanBoard.tsx src/renderer/src/components/dashboard-popout/AgentTerminalPreview.tsx src/renderer/src/components/dashboard-popout/AgentTerminalDialog.tsx -C 3 || true
echo
echo "AgentTerminalDialog.tsx:"
cat -n src/renderer/src/components/dashboard-popout/AgentTerminalDialog.tsx
echo
echo "AgentDashboardOverlay import structure:"
sed -n '1,70p' src/renderer/src/components/dashboard/AgentDashboardOverlay.tsx
sed -n '1,120p' src/renderer/src/components/dashboard-popout/AgentKanbanBoard.tsxRepository: stablyai/orca
Length of output: 50369
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "dialog primitive:"
fd -i 'dialog' src/renderer/src/components/ui -x sh -c 'echo "### $1"; sed -n "1,140p" "$1"' sh {}
echo
echo "AgentTerminalDialog full relevant body:"
sed -n '36,130p' src/renderer/src/components/dashboard-popout/AgentTerminalDialog.tsx
echo
echo "AgentKanbanBoard state around terminal dialog mounting:"
sed -n '1,250p' src/renderer/src/components/dashboard-popout/AgentKanbanBoard.tsxRepository: stablyai/orca
Length of output: 17401
Avoid stacking Radix overlays when opening the terminal preview.
AgentKanbanBoard can mount AgentTerminalDialog inside AgentDashboardOverlay; DialogContent always renders DialogOverlay, so the terminal preview applies a second semi-transparent scrim over the dashboard scrim. Pass a host flag/context through AgentKanbanBoard to suppress the inner overlay when open from the in-window overlay, or render AgentTerminalDialog as the same top-level Dialog from the overlay.
| experimentalAgentDashboardPopout: false, | ||
| // Why: in-window screen popover is the default surface; users opt into a separate pop-out window. | ||
| experimentalAgentDashboardMode: 'in-window', |
There was a problem hiding this comment.
🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "== repository files close to constants =="
git ls-files | rg 'src/shared/constants\.ts$|settings|AgentDashboard|SidebarNav' | head -200
echo
echo "== constants excerpt =="
if [ -f src/shared/constants.ts ]; then
sed -n '300,360p' src/shared/constants.ts | cat -n
fi
echo
echo "== search for relevant settings fields =="
rg -n "experimentalAgentDashboardPopout|experimentalAgentDashboardMode|AgentDashboard|isAgentDashboardPopoutMode|getDefaultSettings|Settings" src -S --glob '*.{ts,tsx,js,jsx}' | head -300
echo
echo "== find settings load/merge related files =="
fd -i 'settings|config|preferences|migrate|migration|default' src -t f | sort | head -200Repository: stablyai/orca
Length of output: 50371
🏁 Script executed:
#!/bin/bash
set -euo pipefail
# Behavioral probe: read source-shape facts only, without executing repo code.
python3 - <<'PY'
from pathlib import Path
import re
src = Path('src')
files = {str(p): p.read_text(errors='replace') for p in src.rglob('*') if p.suffix in {'.ts','.tsx','.js','.jsx'}}
targets = {
'src/shared/constants.ts': (
['experimentalAgentDashboardPopout', 'experimentalAgentDashboardMode', 'experimentalAgentDashboardModeDefaultedForExistingPopoutUsers'],
['getDefaultSettings']
),
}
needles = ['experimentalAgentDashboardModeDefaultedForExistingPopoutUsers', 'experimentalActivityDefaultedOffForAllUsers', 'terminalCursorStyleDefaultedToBlock']
mode_candidates = ['AgentDashboardExperimentalSetting.tsx', 'SidebarNav.tsx']
print("Relevant identifiers in constants:")
p = src/'shared'/'constants.ts'
if p.exists():
text = p.read_text(errors='replace')
for id_ in targets['src/shared/constants.ts'][0]:
for m in re.finditer(r'(?<!\w)' + re.escape(id_) + r'(?:[^\w]|$)', text):
line = text.count('\n', 0, m.start()) + 1
print(f"{id_}: line {line}")
for needle in needles:
found = []
for path, text in files.items():
for m in re.finditer(re.escape(needle), text):
found.append((path, text.count('\n',0, m.start())+1))
print(f"Found {needle}: {found}")
for cand in mode_candidates:
found = [p for p in files if p.endswith(cand)]
print(f"candidate file {cand}: {found}")
for f in found:
text = files[f]
for needle in ['experimentalAgentDashboardMode', 'isAgentDashboardPopoutMode', 'popout']:
hits = [(text.count('\n',0,m.start())+1, m.group(0)) for m in re.finditer(re.escape(needle), text)]
print(f" {f} hits for {needle}: {hits[:5]}")
PYRepository: stablyai/orca
Length of output: 2651
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "== settings type declarations around agent dashboard fields =="
sed -n '2888,2932p' src/shared/types.ts | cat -n
sed -n '220,290p' src/shared/types.ts | cat -n
echo
echo "== AgentDashboardExperimentalSetting.tsx relevant sections =="
sed -n '1,120p' src/renderer/src/components/settings/AgentDashboardExperimentalSetting.tsx | cat -n
echo
echo "== SidebarNav.tsx relevant sections =="
sed -n '35,120p' src/renderer/src/components/sidebar/SidebarNav.tsx | cat -n
echo
echo "== persistence migration references for defaulted guards =="
sed -n '2880,2945p' src/main/persistence.ts | cat -n
echo
echo "== focused search for experimentalAgentDashboard popout/mode =="
rg -n "experimentalAgentDashboardPopout|experimentalAgentDashboardMode|AgentDashboardExperimental|AgentDashboardOverlay|isAgentDashboardPopoutMode|handleAgentDashboard|AgentDashboard" src -S --glob '*.{ts,tsx}' -g '!**/node_modules/**' | head -250Repository: stablyai/orca
Length of output: 26751
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "== persistence dashboard migration block =="
sed -n '1288,1310p' src/main/persistence.ts | cat -n
echo
echo "== dashboard-popout implementation =="
sed -n '1,90p' src/main/ipc/dashboard-popout.ts | cat -n
echo
echo "== persistence settings normalization/load/save flow relevant methods =="
rg -n "class .*SettingsStore|loadSettings|saveSettings|getSettings|experimentalActivityDefaultedOffForAllUsers|needsSave|settingsChanged|watch|setSettings" src/main/persistence.ts | head -250
echo
echo "== focused tests around old dashboard flag =="
sed -n '60,90p' src/main/ipc/dashboard-popout.test.ts90p' src/main/ipc/dashboard-popout.test.ts | cat -n 80Repository: stablyai/orca
Length of output: 6032
Migrate legacy experimentalAgentDashboardPopout: true to popout mode.
Users who have the dashboard enabled before this mode/default change persist with only experimentalAgentDashboardPopout and no experimentalAgentDashboardMode. Existing consumers resolve missing mode to 'in-window', so these users silently move from pop-out behavior to the in-window popover. Add a one-shot backfill in the settings load path that preserves experimentalAgentDashboardMode: 'popout' when the legacy flag is present.
… in-window dialog
The terminalPreview:* handlers gated every channel to the pop-out
renderer, so the in-window overlay's terminal dialog (running in the
main renderer) got { snapshot: null } from connect and falsely showed
"No live terminal — this agent's pane has closed." for live agents.
Accept the trusted UI renderer too — it already has full PTY access
through the regular terminal channels, so this adds no reach.
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/main/ipc/terminal-preview.test.ts (1)
290-310: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winCover all newly authorized IPC operations.
The trusted-renderer test covers only
connectandinput, while the predicate also gatesack,fit, andunsubscribe. Add assertions for those paths so resize and cleanup regressions cannot pass unnoticed.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 154be678-e921-4616-b676-781c78b3d242
📒 Files selected for processing (3)
src/main/ipc/terminal-preview-admission.test.tssrc/main/ipc/terminal-preview.test.tssrc/main/ipc/terminal-preview.ts
verify:localization-catalog (part of lint CI) fails when en.json keys are missing from the other locale catalogs; run sync:localization-catalog so the six new agent-dashboard keys exist everywhere (English fallback text; translated copy remains the documented follow-up).
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: a102c733-097a-4d19-ad4e-40ca5caf605c
📒 Files selected for processing (4)
src/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/zh.json
| "toggleLabel": "Toggle Agent Dashboard", | ||
| "modeLabel": "Open as", | ||
| "modeCopy": "Show the dashboard as an in-window screen popover or a separate pop-out window.", |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Update the adjacent description to mention both presentation modes.
The existing description and copy still describe Agent Dashboard as pop-out-only, while this setting now supports in-window mode too. Update those catalog values to match the mode-aware English source so Korean users are not given misleading instructions.
…shboard-popover-setting # Conflicts: # src/main/ipc/terminal-preview-admission.test.ts # src/main/ipc/terminal-preview.ts
The in-window dashboard now uses the same non-modal left sheet as the workspace kanban board — anchored to the sidebar edge, chrome/status-bar bounds, sidebar stays interactive — instead of a near-fullscreen modal dialog. Both companion boards are mutually exclusive; the sidebar entry toggles the drawer. Removes the modal focus-restore timing coupling on reveal.
…e board Non-modal Radix layers also request dismissal for interactions the drawer's outside guards cannot classify — focus moving outside carries no pointer coordinates, and clicks in the status bar / top chrome fall outside the right-side dismiss band. Forward only open requests from the Sheet, matching WorkspaceKanbanDrawer, so only the drawer's own escape/outside/close paths close it.
CodeRabbit review: revealAgent lacked the ?. HMR-skew guard its sibling ackAgent has (both channels shipped together, so a stale dev preload lacks both). The es/ja/ko/zh catalogs also still described the dashboard as pop-out-only in stale English, contradicting the new in-window default; refreshed to the current English source.
|
Thanks @coderabbitai — went through all four: 1. 2. Stacked Radix overlays — resolved by the presentation rework (4a8c303). The in-window surface is now a non-modal 3. Stale locale copy — good catch, and it was broader than 4. Legacy |
|
Tip For best results, initiate chat on the files or code changes.
Thanks for the detailed follow-up. The HMR guard, non-modal Sheet change, and catalog refresh all address the respective findings. Your explanation of the legacy flag’s semantics also makes the migration concern inapplicable: it represented feature enablement, not a persisted presentation preference, so the intentional experimental default change to in-window is reasonable. 🐇 ✅ ✏️ Learnings added
|
Mirrors the workspace board's settings gear: an Open as segmented control in the board header so the mode is changeable without opening Settings. Switching to pop-out hands the surface over (closes the drawer, opens the window) instead of leaving a board the setting says should be a window. In-window only via an optional headerActions slot - the pop-out renderer has no store to drive it.
…oses The pop-out hand-off closes the sheet while the menu is still open, so the menu unmounts without Radix reporting onOpenChange(false). The stale menuOpen=true then blocked outside-dismiss permanently on the next in-window open. Mirror closeWorkspaceBoard by resetting the flag in close.
Cmd+B sidebar collapse and the workspace-board exclusivity effect close the drawer via setAgentDashboardDrawerOpen directly, bypassing close(); a settings menu open at that moment unmounted without Radix reporting onOpenChange(false), leaving menuOpen stuck true and outside-dismiss disabled on the next open. Sync the flag to the open state so every close path resets it.
…lyai#10243) * feat(agent-dashboard): choose in-window screen popover or pop-out window The experimental Agent Dashboard opened only as a separate pop-out window. Add an "Open as" mode under the experimental toggle so it can open as an in-window screen popover (new default) or a pop-out window (prior behavior). The mode row appears only when the feature is on. - New setting `experimentalAgentDashboardMode: 'in-window' | 'popout'` (default in-window); sidebar entry branches on it. - In-window: AgentDashboardOverlay renders the shared AgentKanbanBoard in a near-fullscreen dialog, snapshot built locally via useLiveDashboardSnapshot (the pop-out relays over IPC; in-window has no relay). Ack/reveal act on the local store — the pop-out IPC handlers are gated to the pop-out renderer. - AgentKanbanBoard gains containerClassName/onAckAgent/onRevealAgent/ onClose props; defaults preserve the pop-out behavior. - Extracted AgentDashboardExperimentalSetting to keep ExperimentalPane under the max-lines cap. * fix(agent-dashboard): admit main renderer to terminal-preview IPC for in-window dialog The terminalPreview:* handlers gated every channel to the pop-out renderer, so the in-window overlay's terminal dialog (running in the main renderer) got { snapshot: null } from connect and falsely showed "No live terminal — this agent's pane has closed." for live agents. Accept the trusted UI renderer too — it already has full PTY access through the regular terminal channels, so this adds no reach. * fix(agent-dashboard): sync locale catalogs for new mode/close keys verify:localization-catalog (part of lint CI) fails when en.json keys are missing from the other locale catalogs; run sync:localization-catalog so the six new agent-dashboard keys exist everywhere (English fallback text; translated copy remains the documented follow-up). * feat(agent-dashboard): present in-window mode as a companion board sheet The in-window dashboard now uses the same non-modal left sheet as the workspace kanban board — anchored to the sidebar edge, chrome/status-bar bounds, sidebar stays interactive — instead of a near-fullscreen modal dialog. Both companion boards are mutually exclusive; the sidebar entry toggles the drawer. Removes the modal focus-restore timing coupling on reveal. * fix(agent-dashboard): ignore Radix dismiss requests like the workspace board Non-modal Radix layers also request dismissal for interactions the drawer's outside guards cannot classify — focus moving outside carries no pointer coordinates, and clicks in the status bar / top chrome fall outside the right-side dismiss band. Forward only open requests from the Sheet, matching WorkspaceKanbanDrawer, so only the drawer's own escape/outside/close paths close it. * fix(agent-dashboard): guard reveal relay and refresh stale mode copy CodeRabbit review: revealAgent lacked the ?. HMR-skew guard its sibling ackAgent has (both channels shipped together, so a stale dev preload lacks both). The es/ja/ko/zh catalogs also still described the dashboard as pop-out-only in stale English, contradicting the new in-window default; refreshed to the current English source. * feat(agent-dashboard): add board settings menu to the in-window header Mirrors the workspace board's settings gear: an Open as segmented control in the board header so the mode is changeable without opening Settings. Switching to pop-out hands the surface over (closes the drawer, opens the window) instead of leaving a board the setting says should be a window. In-window only via an optional headerActions slot - the pop-out renderer has no store to drive it. * fix(agent-dashboard): reset the settings-menu flag when the drawer closes The pop-out hand-off closes the sheet while the menu is still open, so the menu unmounts without Radix reporting onOpenChange(false). The stale menuOpen=true then blocked outside-dismiss permanently on the next in-window open. Mirror closeWorkspaceBoard by resetting the flag in close. * fix(agent-dashboard): reset the menu flag on store-driven drawer closes Cmd+B sidebar collapse and the workspace-board exclusivity effect close the drawer via setAgentDashboardDrawerOpen directly, bypassing close(); a settings menu open at that moment unmounted without Radix reporting onOpenChange(false), leaving menuOpen stuck true and outside-dismiss disabled on the next open. Sync the flag to the open state so every close path resets it.
What
The experimental Agent Dashboard previously opened only as a separate OS pop-out window. This adds an "Open as" mode so you can open it as an in-window board (new default) or a pop-out window (prior behavior). The mode row appears only when the Agent Dashboard feature is toggled on.
Default is in-window — the opposite of today.
How it works
experimentalAgentDashboardMode: 'in-window' | 'popout'(default'in-window'). The sidebar entry branches on it: pop-out →dashboard.openPopout(); in-window → toggles a transient store flag.AgentDashboardDrawer) presents the sameAgentKanbanBoardexactly like the workspace kanban board: a non-modal leftSheetcompanion to the sidebar (same geometry — sidebar live-width anchor, top-chrome offset, status-bar reserve, same slide animation andbg-worktree-sidebarsurface). The sidebar stays interactive while it's open; Escape and click-off dismiss it with the same guards as the workspace board. The two companion boards are mutually exclusive — opening one closes the other.headerActionsslot, and the pop-out renderer has no store to drive it.useLiveDashboardSnapshot) — the pop-out relays a serialized snapshot over IPC, but in-window there's no relay. Ack/reveal act on the local store; the pop-out's IPCackAgent/revealAgenthandlers are gated to the pop-out renderer, soAgentKanbanBoardgainedonAckAgent/onRevealAgent/onClose/containerClassNameprops (defaults preserve the pop-out behavior). TheterminalPreview:*IPC handlers admit the trusted main renderer so the in-window terminal dialog streams live PTYs.workspace-chrome-metrics.ts(used by both companion sheets).AgentDashboardExperimentalSettingextracted to keepExperimentalPaneunder themax-linescap.Verification
Typecheck (web + node) clean, oxlint/oxfmt clean, max-lines ratchet + localization verifiers green, all covering renderer suites pass (the 3 failing sidebar suites fail identically at detached main). Verified live in the running Electron app (isolated dev profile): sidebar entry with bucket counts, drawer opens beside the sidebar via a real click, columns populate, Escape closes, board settings menu opens and the pop-out handoff works end to end (drawer closes, pop-out window opens, and the pop-out header correctly renders no in-window controls).
1. In-window board (default) — companion sheet beside the sidebar
2. Board settings menu — change the mode without leaving the board
3. Setting — "Open as" (In-window default), shown only when the feature is on
4. Pop-out window (opt-in)
Notes / follow-ups
experimentalAgentDashboardPopout: truemove to the in-window default rather than being backfilled topopout: that flag meant "enable the dashboard" (pop-out was the only option), so there is no expressed presentation preference to preserve, and the mode is one click away.