Repository navigation
feat(sidebar): needs-attention view and sort orders (multi-host PR 5a) - #311
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Extend the Organize sidebar menu with a View group (Workspaces, Recent, Needs attention), a chat sort (last activity or created) and a workspace sort (last activity, created or manual). Manual order is keyed by host-qualified project keys and can be changed by drag or by Move up / Move down in the workspace actions menu. The projection lives in a pure, host-agnostic module that later remote rows can feed. Chat shortcuts now follow the displayed row order. Preferences stay client-local and migrate the legacy organization field. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Hermes Review BotConfidence: 5 Engine: SummaryAdds the local sidebar organization foundation for multi-host control, introducing three distinct sidebar views (Workspaces, Recent time buckets, and a Needs attention triage view) alongside configurable chat and workspace sort orders. A pure, generic projection in Confidence Score: 5/5Fully traced and verified the complete diff across projection logic, local workspace adapters, dropdown radio menus, preference persistence and migrations, and existing/new test suites. 📁 Important Files Changed
FindingsNo findings. 📊 Sequence DiagramsequenceDiagram
autonumber
actor User
participant Menu as SidebarOrganizeMenu
participant Sidebar as ChatSidebar
participant Projection as sidebar-organization
participant Shortcuts as sidebar-chat-shortcuts
participant Storage as localStorage
User->>Menu: Select view or sort option
Menu->>Sidebar: onViewChange / onSortChange
Sidebar->>Projection: organizeSidebar(projects, chats, search, view, sorts, order)
Projection-->>Sidebar: SidebarOrganization (projectGroups, chatSections, projectOrder)
Sidebar->>Projection: displayedSidebarChats(organized, view, displayOptions)
Projection-->>Sidebar: Displayed chat rows in visual order
Sidebar->>Shortcuts: createSidebarChatShortcutAssignments(shortcutGroups)
Shortcuts-->>Sidebar: Register ⌘1–9 bindings to active rows
Sidebar->>Storage: serializeSidebarPreferences(sanitized)
Machine-Readable Findings[]
|
There was a problem hiding this comment.
Important
The new Created sort changes the target of “Open latest chat,” so that action can open an inactive conversation instead of the workspace’s most recently active one.
Reviewed changes: Reviewed the complete local sidebar organization implementation, its preference migration, navigation integration, and test coverage.
- Views and ordering: Adds Needs attention tiers, configurable chat/workspace sorts, and a pure host-qualified projection with a local workspace adapter.
- Manual organization: Adds workspace header drag/drop and keyboard-accessible Move up/down actions, with search and boundary restrictions.
- Preferences and navigation: Migrates existing sidebar preferences, persists bounded manual order, and makes chat shortcuts follow displayed rows.
- Menu and coverage: Adds labelled radio menu primitives, behavioral projection/adapter/menu tests, two Electron interaction specs, CI registration, and plan documentation.
Local validation passed: test:sidebar (58 tests), test:ci-policy (47 tests), application type-check, and E2E type-check. Playwright collected both new specs; Electron interactions were not executed locally during this review, and hosted CI was still pending when inspected.
gpt-6.1-sol | 𝕏
"Open latest chat" took the first displayed row, so the Created sort sent it to the newest-created chat instead of the most recently active one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes: Reviewed 54093f7d since the prior review at ab4c76fa, with the full PR diff as context.
- Decoupled latest-chat selection: Changed “Open latest chat” to select the most recently active conversation independently of the sidebar display sort, without changing row order.
- Added behavioral coverage: Verified differing creation/activity orders under both chat sorts, an undated conversation, and an empty workspace.
Local validation passed: npm run test:sidebar (59 tests) and npm run type-check. The earlier review thread is resolved. Electron interaction tests were not run locally in this Linux environment; the hosted verify check reports success on the current head.
gpt-6.1-sol | 𝕏
…ar-organize Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Summary
This is the local half of §6 ("Sidebar organization") of the desktop multi-host control plan. The plan for this PR is
docs/plans/desktop-multi-host-pr5a-sidebar-organize.md.The Organize sidebar menu now has three labelled radio groups:
Manual order:
Other changes:
renderer/lib/sidebar-organization.ts. Local workspaces and chats reach it through an adapter,renderer/lib/sidebar-workspace-groups.ts. The next PR (5b) adds a remote adapter that feeds the same inputs.projectOrderKey(hostId, projectId). The local host is"local".aiden-agent.sidebar.v1:organizationvalue is migrated on read, and still written so a downgraded build keeps the user's view.local:keys are pruned against the workspace registry.ui.tsxgainsDropdownMenuRadioGroupandDropdownMenuRadioItem.Out of scope (5b): remote rows, the machine filter, the globe marker, cross-machine grouping, and offline/stale state. There is no onboarding change, because this is an organizational preference.
Screens/behaviour notes
bg-accentandrounded-pilltokens. It is a functional indicator, not a decorative border, and focus rings are unchanged.Test plan
npm run type-checkandnpm run type-check:e2enpm run test:ci-policy. The new test files are registered intest:sidebarandscripts/ci-test-registry.json.npm run test:sidebar: 58 pass. This includes:renderer/lib/sidebar-organization.test.ts:renderer/lib/sidebar-workspace-groups.test.ts: the local adapter's admission rulesrenderer/components/sidebar-organize-menu.test.tsx: the rendered radio semantics, and which groups show in each viewrenderer/components/chat-sidebar.test.tsxis a legacy source-grep suite. Its organization assertions were removed and replaced by the behavioural tests above. No assertions were added to it.tests/e2e/chat-shell-interactions.spec.ts, two new specs:chats:activity-changedsnapshot. The view persists across a reload.chat-shell-interactions,draft-agent-chatsandchat-message-queueall pass: 42/42.Flaky test record
None so far.
🤖 Generated with Claude Code