Skip to content

feat(dashboard): custom lanes you can drag agents into - #29953

Open
kmizzi wants to merge 1 commit into
stablyai:mainfrom
kmizzi:feat/dashboard-waiting-lane
Open

kmizzi wants to merge 1 commit into
stablyai:mainfrom
kmizzi:feat/dashboard-waiting-lane

Conversation

@kmizzi

@kmizzi kmizzi commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

ELI5

The Agent Dashboard sorts agents into Needs You, Working and Done by itself. This lets you add your own lanes, such as "Waiting", and drag agents into them. That separates the agents you're deliberately waiting on from the ones that need a nudge.

What Changed

  • Before: three status columns (four with "Show idle agents"), filled automatically. Cards can't be moved.
  • After: a slim + slot at the end of the board adds a lane. A lane is renamed by double-clicking its title and removed with its ×. Dragging a card into a lane parks it there until you drag it back onto any status column.
  • Needs You still wins. If a parked agent asks a question, its card shows in Needs You until answered, then returns to its lane. Cards waiting on you can't be dragged, so parking never hides a question.
  • A parked card stays visible even when its status column is hidden (an idle agent with "Show idle agents" off), because you parked it on purpose.
  • Removing a lane sends its cards back to their status columns. With no lanes, the board looks as it does today apart from the + slot.

Mechanism:

  • src/shared/dashboard-lanes.ts is a pure module. It holds the lane types, applyDashboardLaneAction (add / rename / remove / place) and resolveDashboardCardLaneId, which applies the Needs You rule.
  • State lives in global settings: agentDashboardCustomLanes and agentDashboardLaneByPaneKey (paneKey → lane id). buildDashboardSnapshot adds customLanes to the snapshot and an optional laneId to each card. Both fields are optional, so a pop-out running older code ignores them.
  • The in-window board writes settings directly. The pop-out has no store, so it sends a lane action over a new dashboardPopout:laneAction IPC channel. Main validates the shape (dashboard-lane-payload-validation.ts) and relays it to the main renderer, the same way the existing sleep and spawn actions are relayed.
  • When a placement is written, entries for panes whose tab no longer exists are pruned, and the map is capped at 500. Tabs of sleeping workspaces still exist, so their placements survive a sleep.
  • The board uses native HTML5 drag-and-drop. A dropped card is held locally until the next snapshot reflects the write, so it doesn't snap back for a frame. The column and lane-name input moved into their own components (AgentKanbanColumn, AgentKanbanLaneNameInput, AgentKanbanAddLane), and column grouping moved into agent-board-columns.ts.

Why

  • With many agents running, "done, waiting on CI or a teammate on purpose" and "done, stalled, needs me" look identical in Done. Status alone can't tell them apart; only the user knows.
  • Lanes are manual and sit on top of the status columns, not in place of them. Status stays owned by the hook server's store, as the agent-status rule requires; a lane only overrides where the card is drawn. The one exception (Needs You wins) keeps the board's main job intact.
  • Global settings, not session state: placements must survive restarts and be shared by both board hosts. Settings already republish the snapshot (dashboardSnapshotInputsChanged watches settings), so no new subscription is needed.
  • Alternatives considered:
    • Reusing workspace statuses: those are per workspace, and one workspace often has several agents in different states.
    • Letting a drop onto a status column force a status: that would fake agent state the hook server owns.
    • Auto-unparking on any state change: that defeats parking a long-running agent you're waiting on.

Linked Issue

Fixes #29951

Visual Proof

In-window board, from the e2e run below (Linux, xvfb). A "Waiting" lane was added, and the "Open the PR and wait for CI" agent was dragged out of Done into it.

Before (no lanes; the new + slot at the right) After
board-before board-after

Testing

  • pnpm tc:web and pnpm tc:node pass.

  • pnpm test on src/main/ipc plus the dashboard and dashboard-popout folders: 574 files and 5,645 tests pass. New tests:

    • dashboard-lanes.test.ts: add, rename, remove, place, no-ops, the Needs You rule, pruning and the cap.
    • dashboard-lane-payload-validation.test.ts.
    • apply-dashboard-lane-action.test.ts: closed-pane pruning, including sleeping workspaces.
    • AgentKanbanBoard.lanes.test.tsx: lane rendering, drag to park and unpark, ignored drops, Needs You cards not draggable, add/rename/remove, Escape.
  • New e2e tests/e2e/agent-dashboard-custom-lanes.spec.ts. In the real app it:

    • adds a lane through the UI and drags a card into it;
    • checks the placement is saved to settings;
    • has the parked agent ask a question and checks the card moves to Needs You and back to the lane once answered;
    • drags the card back onto a status column.

    It passes under electron-headless. agent-dashboard-status-burst.spec.ts also still passes.

  • check:code-quality:changed, verify:localization-extraction, verify:localization-catalog, check:max-lines-ratchet, oxlint and oxfmt --check on the changed files pass.

  • Platforms: Linux (unit tests and e2e). The change is renderer + IPC only, with no platform-specific code. Not run on Windows or macOS.

  • I manually tested these changes locally (exercised in the real app via the e2e above, not by hand)

  • Automated tests added/updated, or explained why not below

AI Disclosure

Written with Claude Code (Claude Opus 5.5), reviewed and directed by me.

🤖 Generated with Claude Code

https://claude.ai/code/session_014z3JQmFH1E9rdP6cTUdhFM

Adds user-defined lanes (e.g. "Waiting") after the status columns. Dragging
a card into a lane parks it there until it is dragged back to a status
column; an agent that asks a question still surfaces in Needs You. Lanes and
placements live in global settings, so the in-window board, the pop-out and
a restarted app agree. Pop-out edits relay to the main renderer, which prunes
placements for closed panes.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_014z3JQmFH1E9rdP6cTUdhFM
@kmizzi
kmizzi requested a review from brennanb2025 as a code owner October 17, 2026 02:59
@coderabbitai

coderabbitai Bot commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: af340c9e-10cc-445a-9f52-6f71ce43d04f
📥 Commits

Reviewing files that changed from the base of the PR and between 7bf3e15 and 1540696.

📒 Files selected for processing: 23
  • src/main/ipc/dashboard-lane-payload-validation.test.ts
  • src/main/ipc/dashboard-lane-payload-validation.ts
  • src/main/ipc/dashboard-payload-validation.ts
  • src/main/ipc/dashboard-popout.ts
  • src/preload/api/dashboard-api.ts
  • src/preload/api/dashboard-bridge.ts
  • src/renderer/src/components/dashboard-popout/AgentKanbanAddLane.tsx
  • src/renderer/src/components/dashboard-popout/AgentKanbanBoard.lanes.test.tsx
  • src/renderer/src/components/dashboard-popout/AgentKanbanBoard.tsx
  • src/renderer/src/components/dashboard-popout/AgentKanbanColumn.tsx
  • src/renderer/src/components/dashboard-popout/AgentKanbanLaneNameInput.tsx
  • src/renderer/src/components/dashboard-popout/agent-board-columns.ts
  • src/renderer/src/components/dashboard/AgentDashboardDrawer.tsx
  • src/renderer/src/components/dashboard/apply-dashboard-lane-action.test.ts
  • src/renderer/src/components/dashboard/apply-dashboard-lane-action.ts
  • src/renderer/src/components/dashboard/build-dashboard-snapshot.ts
  • src/renderer/src/components/dashboard/useDashboardPopoutBridge.ts
  • src/renderer/src/i18n/locales/en.json
  • src/shared/dashboard-lanes.test.ts
  • src/shared/dashboard-lanes.ts
  • src/shared/dashboard-snapshot.ts
  • src/shared/global-settings-types.ts
  • tests/e2e/agent-dashboard-custom-lanes.spec.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

📝 Walkthrough

The dashboard now supports custom lanes with persisted pane placements. Cards can be moved between custom lanes and status columns, while cards in the attention bucket remain in their status column. The board adds controls to create, rename, and remove lanes. Snapshot and lane-action payload validation, pop-out IPC forwarding, and tests for shared logic, board interactions, and end-to-end behavior are also added.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to 15406

No merge-blocking issue is established for custom lanes. The investigated stale display resolves when the pending snapshot arrives.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 36 functions across 22 files. (1 skipped:… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the primary change: adding draggable custom dashboard lanes for agents.
Description check Passed The description is mostly complete. It explains the user-facing behavior, implementation, rationale, linked issue, visual proof, testing, AI use, and Linux-only test coverage. The template sections fo…
Linked Issues check Passed The changes implement the coding requirements in #29951. src/shared/dashboard-lanes.ts adds add, rename, remove, and place actions. It keeps parked cards in custom lanes and resolves attention car…
Out of Scope Changes check Passed The changes stay within #29951. Shared lane logic, settings and snapshot fields, IPC validation and relay code, board components, localization strings, and automated tests directly support custom Agen…
Full details: Description check

Explanation

The description is mostly complete. It explains the user-facing behavior, implementation, rationale, linked issue, visual proof, testing, AI use, and Linux-only test coverage. The template sections for Review, Agent skill upstream boundary, Notes, and Checklist are omitted, but the available evidence covers the main requirements.

Full details: Linked Issues check

Explanation

The changes implement the coding requirements in #29951. src/shared/dashboard-lanes.ts adds add, rename, remove, and place actions. It keeps parked cards in custom lanes and resolves attention cards to Needs You. Removing a lane removes its placements. Global settings store lanes and pane placements. The snapshot, in-window store handler, pop-out IPC bridge, and validation share this state across board hosts and restarts. The board column utilities keep parked cards visible when idle status columns are hidden. Unit, component, IPC, and end-to-end tests cover these behaviors.

Full details: Out of Scope Changes check

Explanation

The changes stay within #29951. Shared lane logic, settings and snapshot fields, IPC validation and relay code, board components, localization strings, and automated tests directly support custom Agent Dashboard lanes. No unrelated feature or unrelated behavior is demonstrated.

Full details: Docstring Coverage

Explanation

Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 36 functions across 22 files. (1 skipped: 1 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

  • Fix all pre-merge checks with AI
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

This branch has not been deployed

No deployments
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.

[Feature]: Custom Agent Dashboard lanes you can drag agents into (e.g. "Waiting")

1 participant