feat(desktop): status-grouped workspace sidebar behind a feature flag
What
Adds an opt-in "group by status" mode to the desktop workspace rail, alongside the existing project grouping. Workspaces are bucketed by their derived status so you can see what needs attention at a glance:
| Bucket | Meaning |
|---|---|
| Working | agent running, or blocked on a permission prompt |
| Waiting | agent finished, needs a response (and no PR yet) |
| Open PR | has an open / draft / queued pull request |
| Done | PR merged |
| Idle | no activity (Waiting ages here after 24h) |
Precedence (deriveSidebarStatusBucket): a live/blocked agent (Working) outranks a PR; PR state (Open PR / Done) outranks a finished agent (Waiting); Waiting ages to Idle after 24h of no agent activity. Buckets render with per-bucket counts and colored headers, and empty buckets are hidden.
How it's gated
Production rollout is behind the status-grouped-sidebar-access PostHog feature flag (default off), mirroring the existing CLOUD_ACCESS pattern (useFeatureFlagEnabled) — so it can be rolled out to a cohort / percentage and killed remotely without a new desktop build. Dev builds are always on (same shape as useIsV2CloudEnabled) so contributors see it locally without adding themselves to the flag. When enabled, a compact layout-list control in the sidebar header opens a menu to switch the rail between Status and Project grouping, persisted as a user preference (sidebarGroupMode).
The status-grouped-sidebar-access flag still needs to be created in the PostHog dashboard (default off) before production rollout — nothing in-repo creates it.
Also included
Hardens host-service cold start with a bounded auto-retry (5× / 3s) in LocalHostServiceProvider, recovering from the 10s start-timeout race that could otherwise leave the host-service dead until a manual reload.
Testing
bun run --filter '@superset/desktop' typecheck— passbun run --filter '@superset/shared' typecheck— passbun run lint(biome, warnings treated as errors) — cleanbunx sherif— clean- Unit tests for
deriveSidebarStatusBucketandbuildDashboardSidebarStatusGroups— 12 pass
Notes
- The Status vs Project mode is a pure projection of the same live workspace list used by project grouping, so the two views stay consistent (a workspace present/absent in one is present/absent in the other).
https://claude.ai/code/session_01JPzkGzFZyYxGDgcy5vi2ni
Summary by cubic
Adds an optional “group by status” mode in the desktop workspace sidebar, with Working/Waiting/Open PR/Done/Idle buckets and a compact header toggle, to highlight what needs attention. Status is sourced from a shared bulk feed (5s polling) so off‑screen rows stay fresh; rollout is gated by status-grouped-sidebar-access (dev builds always on).
-
New Features
- Sidebar can group by Status or Project. Buckets: Working, Waiting, Open PR, Done, Idle (empty buckets are hidden). Precedence: live/permission → Working; merged → Done; open/draft/queued → Open PR; finished/no PR → Waiting; else → Idle. Waiting auto-ages to Idle after 24h.
- New header menu to switch grouping; choice is saved in
sidebarGroupMode. Rows in status mode show a small repo chip (GitHub repo name or project) with a consistent color; Working surfaces permission prompts first. - Shared React Query cache keys between the bulk status source and per-row hooks; bulk polling every 5s keeps unmounted rows accurate so rows and buckets never disagree. Prod is behind
status-grouped-sidebar-access(default off); ensure the flag exists before rollout.
-
Bug Fixes
- Active workspace’s real project is resolved correctly in status mode (fixes header context/actions).
- Host-service cold start now auto-retries up to 5 times (3s delay) to recover from the 10s bootstrap race.
Summary by CodeRabbit
- New Features
- Added an opt-in status-grouped workspace sidebar view that clusters workspaces by live activity, pull request state, and completion bucket.
- Introduced a sidebar grouping toggle (Project vs Status) gated by a new feature flag, plus persisted
sidebarGroupModepreference. - Added a dedicated status section UI with bucket-specific styling and animated workspace lists.
- Added deterministic repo chip coloring and repo labels on status-mode rows.
- Bug Fixes
- Improved active workspace project resolution and sidebar status bucketing logic.