Skip to content

feat(agent-dashboard): choose in-window board or pop-out window - #10243

Merged
brennanb2025 merged 10 commits into
mainfrom
brennanb2025/agent-dashboard-popover-setting
Jul 24, 2026
Merged

brennanb2025 merged 10 commits into
mainfrom
brennanb2025/agent-dashboard-popover-setting

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

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

  • New setting experimentalAgentDashboardMode: 'in-window' | 'popout' (default 'in-window'). The sidebar entry branches on it: pop-out → dashboard.openPopout(); in-window → toggles a transient store flag.
  • In-window (AgentDashboardDrawer) presents the same AgentKanbanBoard exactly like the workspace kanban board: a non-modal left Sheet companion to the sidebar (same geometry — sidebar live-width anchor, top-chrome offset, status-bar reserve, same slide animation and bg-worktree-sidebar surface). 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.
  • Board settings menu in the header, mirroring the workspace board's gear: an "Open as" control so the mode is changeable without a trip to Settings. Switching to pop-out hands the surface over (closes the drawer, opens the window). In-window only — it rides an optional headerActions slot, and the pop-out renderer has no store to drive it.
  • The in-window snapshot is built locally (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 IPC ackAgent/revealAgent handlers are gated to the pop-out renderer, so AgentKanbanBoard gained onAckAgent/onRevealAgent/onClose/containerClassName props (defaults preserve the pop-out behavior). The terminalPreview:* IPC handlers admit the trusted main renderer so the in-window terminal dialog streams live PTYs.
  • Shared chrome bounds extracted to workspace-chrome-metrics.ts (used by both companion sheets). AgentDashboardExperimentalSetting extracted to keep ExperimentalPane under the max-lines cap.

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

in-window

2. Board settings menu — change the mode without leaving the board

board-settings

3. Setting — "Open as" (In-window default), shown only when the feature is on

settings

4. Pop-out window (opt-in)

popout

Agents in the screenshots are synthetic status entries injected into an isolated dev profile to exercise the board surface.

Notes / follow-ups

  • Non-English locale JSON holds the English copy for the new strings; owned by the translation pipeline. (Stale pop-out-only descriptions in those catalogs were refreshed, since they contradicted the new default.)
  • The in-window open state is a transient store flag, so disabling then re-enabling the experimental feature within a session re-shows the board if it was open — harmless, left as-is.
  • Existing profiles with experimentalAgentDashboardPopout: true move to the in-window default rather than being backfilled to popout: 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.

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.
@coderabbitai

coderabbitai Bot commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The 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)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 28.57% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly describes the main change: choosing between the in-window Agent Dashboard and the pop-out window.
Description check ✅ Passed The description covers the summary, screenshots, testing, and notes, with only the template's AI review and security audit sections missing.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

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

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

📥 Commits

Reviewing files that changed from the base of the PR and between ee87bb3 and 8308e74.

📒 Files selected for processing (13)
  • src/renderer/src/App.tsx
  • src/renderer/src/components/dashboard-popout/AgentKanbanBoard.tsx
  • src/renderer/src/components/dashboard-popout/AgentTerminalDialog.tsx
  • src/renderer/src/components/dashboard/AgentDashboardOverlay.tsx
  • src/renderer/src/components/dashboard/useLiveDashboardSnapshot.ts
  • src/renderer/src/components/settings/AgentDashboardExperimentalSetting.tsx
  • src/renderer/src/components/settings/ExperimentalPane.tsx
  • src/renderer/src/components/settings/experimental-search.ts
  • src/renderer/src/components/sidebar/SidebarNav.tsx
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/store/slices/ui.ts
  • src/shared/constants.ts
  • src/shared/types.ts

Comment on lines +16 to +27
/** 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)
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🩺 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=ts

Repository: 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 -300

Repository: 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 -220

Repository: 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)
 }

Comment on lines +29 to +38
return (
<AgentKanbanBoard
snapshot={snapshot}
containerClassName="h-full w-full"
onAckAgent={handleAckAgent}
onRevealAgent={handleRevealAgent}
onClose={onClose}
/>
)
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 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 || true

Repository: 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.tsx

Repository: 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.tsx

Repository: 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.

Comment thread src/shared/constants.ts
Comment on lines 341 to +343
experimentalAgentDashboardPopout: false,
// Why: in-window screen popover is the default surface; users opt into a separate pop-out window.
experimentalAgentDashboardMode: 'in-window',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗄️ 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 -200

Repository: 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]}")

PY

Repository: 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 -250

Repository: 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 80

Repository: 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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
src/main/ipc/terminal-preview.test.ts (1)

290-310: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Cover all newly authorized IPC operations.

The trusted-renderer test covers only connect and input, while the predicate also gates ack, fit, and unsubscribe. 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

📥 Commits

Reviewing files that changed from the base of the PR and between 8308e74 and 4efbbbe.

📒 Files selected for processing (3)
  • src/main/ipc/terminal-preview-admission.test.ts
  • src/main/ipc/terminal-preview.test.ts
  • src/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).

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

📥 Commits

Reviewing files that changed from the base of the PR and between 4efbbbe and 871b918.

📒 Files selected for processing (4)
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json

Comment thread src/renderer/src/i18n/locales/ko.json Outdated
Comment on lines +5529 to +5531
"toggleLabel": "Toggle Agent Dashboard",
"modeLabel": "Open as",
"modeCopy": "Show the dashboard as an in-window screen popover or a separate pop-out window.",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 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.
@brennanb2025 brennanb2025 changed the title feat(agent-dashboard): choose in-window screen popover or pop-out window feat(agent-dashboard): choose in-window board or pop-out window Jul 24, 2026
…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.
@brennanb2025

Copy link
Copy Markdown
Contributor Author

Thanks @coderabbitai — went through all four:

1. revealAgent HMR guard — fixed in b369097. Confirmed ackAgent and revealAgent were added in the same commit (3468b43), so a stale dev preload lacks both; the asymmetry was arbitrary.

2. Stacked Radix overlays — resolved by the presentation rework (4a8c303). The in-window surface is now a non-modal Sheet (modal={false}), and Radix doesn't render Dialog.Overlay in that mode, so the terminal preview's scrim is the only one. No second scrim to suppress.

3. Stale locale copy — good catch, and it was broader than ko.json: the description and copy keys in all four non-English catalogs still read "Pop-out Kanban board…" / "…in a separate window", which now contradicts the in-window default. Refreshed all four to the current English source in b369097. (These catalogs carry English placeholders pending the translation pipeline; the point was that the placeholders were stale, not merely untranslated.)

4. Legacy experimentalAgentDashboardPopout: true → popout backfill — intentionally not doing this. That flag meant "enable the Agent Dashboard", not "prefer the pop-out presentation" — pop-out was the only option at the time, so there's no expressed user preference to preserve. The default flip to in-window is the deliberate product change this PR makes, the feature is still experimental, and anyone who wants the old surface can switch in one click via the new "Open as" row.

@coderabbitai

coderabbitai Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Tip

For best results, initiate chat on the files or code changes.

@brennanb2025 The first Comment image shows the non-modal in-window Agents dashboard presented as a broad right-side sheet over a dimmed Orca workspace. It has Agents 6 total and three columns—NEEDS YOU, WORKING, and IDLE—with two cards each. The second Comment image shows the Experimental settings page with Agent Dashboard enabled and the Open as segmented control set to In-window rather than Pop-out. The third Comment image shows the dashboard board with one card per column; the NEEDS YOU card is highlighted in gold and includes the GitHub-versus-Google auth question.

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
Learnt from: brennanb2025
URL: https://github.com/stablyai/orca/pull/10243

Timestamp: 2026-07-24T18:19:47.345Z
Learning: For the experimental Agent Dashboard, `experimentalAgentDashboardPopout` is a legacy feature-enablement flag, not a user preference for the historical pop-out presentation. Existing enabled users intentionally default to the new `experimentalAgentDashboardMode: 'in-window'` behavior; no backfill to `'popout'` is required.

Learnt from: brennanb2025
URL: https://github.com/stablyai/orca/pull/10243

Timestamp: 2026-07-24T18:19:47.345Z
Learning: The non-English Agent Dashboard locale catalogs currently intentionally use current English fallback placeholders pending the translation pipeline. Their `description` and `copy` values must nevertheless remain synchronized with the English source, including the in-window and pop-out presentation wording.

Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.

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.
@brennanb2025
brennanb2025 merged commit d56e2fb into main Jul 24, 2026
1 check failed
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
…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.
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