Repository navigation
feat(activity): filters, matching header, row right-click menu, and stay in the activity view - #25376
Conversation
Reveals are skipped while the activity view is showing, and activation no longer lifts workspace-list filters there. Only explicit requests (Go to workspace, reveal-current-workspace, Cmd+J project row, agent send target, Cmd+1-9) switch to the workspace list via showSidebarWorkspaceList.
Activity view gains its own persisted Hide automation-created, Hide CLI-created and Hide other-client agents toggles, applied through the existing activity scope filter so the selected-row exemption and identity-preserving return keep working. The options trigger now uses the workspace view's SlidersHorizontal icon and shared numeric badge, counting every active activity filter, and Add project stays visible so no header button shifts between views.
Open, Mark as read/unread, Go to workspace (real workspaces only), Copy (agent title, plus branch and path for real workspaces), and Clear from list for finished threads, reusing the row's existing actions and clearActivityThread.
Go to workspace and Cmd+1-9 switched the sidebar before activating, so a blocked folder activation still left the activity view. Activation now owns the switch via showWorkspaceList, applied after its failure gates. The separate showSidebarWorkspaceList action and the one-line sidebar-body-reveal module go away: setSidebarBody is the single writer, and the census pins its callers.
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 📝 WalkthroughWalkthroughThe activity view adds persisted filters for automation-created, CLI-created, and other-device workspaces. Activity options display active-filter counts, and activity rows gain context-menu actions. Workspace activation can request the workspace list and lift filters hiding a target. Sidebar reveal requests preserve the Agents view, while specified target-selection actions switch to the workspace list. Priority: ➖ Normal Merge Risk: 🔵 Low · up to Copy Branch is missing from the new menu, and a failed copy gives no feedback. These are bounded usability issues; the change remains mergeable with owner follow-up. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The inspected changes preserve client-local preference ownership and reuse existing activity and workspace actions. No material security regression was identified, but broader security and exceptional failure-recovery coverage remains incomplete. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 35.90% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 39 functions across 46 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches 💡 1📝 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: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
8bc4005d-2710-4452-b1cf-bd49d3bced79
📒 Files selected for processing (53)
src/main/runtime/rpc/methods/client-ui-pairing-local-fields.test.tssrc/renderer/src/components/activity/ActivityThreadOptionsMenu.test.tsxsrc/renderer/src/components/activity/activity-scope-filter-controls.tsxsrc/renderer/src/components/activity/activity-scope-filter.test.tssrc/renderer/src/components/activity/activity-scope-filter.tssrc/renderer/src/components/activity/activity-thread-actions.test.tssrc/renderer/src/components/activity/activity-thread-context-menu.test.tsxsrc/renderer/src/components/activity/activity-thread-context-menu.tsxsrc/renderer/src/components/activity/activity-thread-hover-card.test.tsxsrc/renderer/src/components/activity/activity-thread-hover-card.tsxsrc/renderer/src/components/activity/activity-thread-options-menu.tsxsrc/renderer/src/components/activity/activity-thread-row.tsxsrc/renderer/src/components/activity/activity-thread-virtual-row.tsxsrc/renderer/src/components/activity/use-agent-pane-threads.tssrc/renderer/src/components/sidebar/SidebarHeader.test.tsxsrc/renderer/src/components/sidebar/SidebarWorkspaceOptionsMenu.tsxsrc/renderer/src/components/sidebar/options-filter-count-badge.tsxsrc/renderer/src/components/sidebar/sidebar-header-actions.tsxsrc/renderer/src/components/sidebar/workspace-options-menu-items.tsxsrc/renderer/src/components/use-worktree-jump-palette-selection-actions.tssrc/renderer/src/hooks/ipc-events/workspace-shortcut-ipc-bridge.tssrc/renderer/src/hooks/useIpcEvents-cmd-j-digit-chord.test.tssrc/renderer/src/i18n/en-runtime-required.jsonsrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/fr.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/zh.jsonsrc/renderer/src/lib/worktree-activation-automation-filter.test.tssrc/renderer/src/lib/worktree-activation-sidebar-filters.tssrc/renderer/src/lib/worktree-activation-surface-selection.tssrc/renderer/src/lib/worktree-activation.tssrc/renderer/src/lib/worktree-jump-navigation.test.tssrc/renderer/src/lib/worktree-jump-navigation.tssrc/renderer/src/store/slices/ui-agent-send-target.test.tssrc/renderer/src/store/slices/ui-hydration-view-layout.test.tssrc/renderer/src/store/slices/ui-hydration-workspace-preferences.test.tssrc/renderer/src/store/slices/ui/sidebar-body-writers.test.tssrc/renderer/src/store/slices/ui/ui-slice-agent-actions.tssrc/renderer/src/store/slices/ui/ui-slice-agents-view-preference-actions.tssrc/renderer/src/store/slices/ui/ui-slice-contract-preferences.tssrc/renderer/src/store/slices/ui/ui-slice-hydration-actions.tssrc/renderer/src/store/slices/ui/ui-slice-preference-actions.tssrc/renderer/src/store/slices/ui/ui-slice-surface-actions.tssrc/renderer/src/web/preload-api/web-preference-normalization.tssrc/renderer/src/web/web-preload-api-ui-pairing-local-fields.test.tssrc/renderer/src/web/web-preload-api-ui.test.tssrc/shared/constants.tssrc/shared/pairing-local-ui-fields.test.tssrc/shared/pairing-local-ui-fields.tssrc/shared/persisted-ui-state-types.tssrc/shared/rpc-contract/client-ui-params.ts
💤 Files with no reviewable changes (6)
- src/renderer/src/i18n/locales/ko.json
- src/renderer/src/i18n/locales/ja.json
- src/renderer/src/i18n/locales/fr.json
- src/renderer/src/i18n/locales/es.json
- src/renderer/src/i18n/locales/zh.json
- src/renderer/src/web/web-preload-api-ui.test.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.
| {getActivityThreadCopyTargets(thread, canJump).map((target) => ( | ||
| <ContextMenuItem | ||
| key={target.key} | ||
| onSelect={() => void window.api.ui.writeClipboardText(target.value)} |
There was a problem hiding this comment.
🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
sed -n '16,56p' src/renderer/src/components/activity/activity-thread-context-menu.tsx
sed -n '106,129p' src/renderer/src/components/activity/activity-thread-context-menu.tsx
sed -n '152,183p' src/renderer/src/components/activity/activity-thread-hover-card.tsx
rg -n 'copyLinkFailure|writeClipboardText' src/renderer/src/i18n/locales/en.json src/renderer/src/components/activity src/renderer/src/components/sidebarRepository: stablyai/orca
Length of output: 7223
🏁 Script executed:
rg -n -F -- 'writeClipboardText' src/renderer src
rg -n -i 'failed to copy|copy.*failure|clipboard.*fail' src/renderer/src/i18n/locales/en.json src/renderer/src
sed -n '5728,5750p' src/renderer/src/i18n/locales/en.jsonRepository: stablyai/orca
Length of output: 41529
🏁 Script executed:
sed -n '1,145p' src/renderer/src/components/activity/activity-thread-context-menu.tsx
sed -n '85,112p' src/preload/api/ui-bridge-clipboard-and-window-controls.ts
sed -n '1,45p' src/preload/api/ui-window-api.ts
sed -n '185,216p' src/main/window/clipboard-ipc-handlers.ts
sed -n '1,115p' src/renderer/src/hooks/use-clipboard-text-copy-feedback.ts
sed -n '82,122p' src/renderer/src/components/activity/activity-thread-hover-card-summary.tsx
rg -n -F -- 'ActivityThreadContextMenu' src/renderer/src/i18n/locales/en.jsonRepository: stablyai/orca
Length of output: 13958
🏁 Script executed:
nl -ba src/preload/api/ui-bridge-clipboard-and-window-controls.ts | sed -n '1,18p;96,105p'
nl -ba src/main/window/clipboard-ipc-handlers.ts | sed -n '190,214p'
nl -ba src/renderer/src/components/activity/activity-thread-hover-card.tsx | sed -n '1,18p;158,178p'
nl -ba src/renderer/src/i18n/locales/en.json | sed -n '16858,16890p'Repository: stablyai/orca
Length of output: 6442
Handle clipboard failures with a generic message.
When a clipboard write rejects, this handler leaves the rejection unhandled and gives the user no feedback. These menu items copy titles, branches, and paths, so use a generic message rather than “Failed to copy link.”
🐛 Suggested fix
import React from 'react'
import { Bell, CheckCheck, Copy, ExternalLink, PanelRight, X } from 'lucide-react'
+import { toast } from 'sonner'
...
<ContextMenuItem
key={target.key}
- onSelect={() => void window.api.ui.writeClipboardText(target.value)}
+ onSelect={() => {
+ void window.api.ui.writeClipboardText(target.value).catch(() => {
+ toast.error(
+ translate(
+ 'auto.components.activity.ActivityThreadContextMenu.copyFailure',
+ 'Failed to copy to clipboard'
+ )
+ )
+ })
+ }}
> "ActivityThreadContextMenu": {
"copyTitle": "Agent title",
"copyBranch": "Branch",
"copyPath": "Path",
+ "copyFailure": "Failed to copy to clipboard",
"open": "Open",There was a problem hiding this comment.
ℹ️ Minor suggestions only.
Reviewed changes — the full 7-commit PR at fe0ed47.
- Activity-view workspace-origin filters: adds
Hide other-client agents(shown only when paired runtimes exist),Hide automation-created, andHide CLI-createdtoggles, persisted asagentsHide*separately from the workspace-navhide*flags and applied inthreadMatchesActivityScope; floating/repo-less agents and the open row stay visible. - Matching header: both views use
SlidersHorizontalplus the new sharedOptionsFilterCountBadge, the activity badge counts every active filter (scope + origin + unread-only), andAdd projectis rendered in the activity view so no header button shifts. - Stay in the activity view:
revealWorktreeInSidebar/revealSidebarRownow no-op whilesidebarBody === 'agents'; explicit list requests opt back in via the newshowWorkspaceListactivation option, and a census test pins the allowedsetSidebarBodywriters. - Row right-click menu:
ActivityThreadContextMenu(Open / Mark as read / Mark as unread / Go to workspace / Copy / Clear from list) with the hover preview suppressed while open. - Persistence/wire: fields added to the persisted UI types, zod
UiUpdateFields,PAIRING_LOCAL_UI_FIELDS(stripped onui.set, pinned local onui.get), web normalization, and the pairing-local census tests.
I verified the changed suites (17 files / 285 tests) and oxlint on the core files, and traced the reveal callers: every incidental reveal that now no-ops is intended, and the explicit "reveal current workspace"/rename path still switches via useWorkspaceRevealBodyRedirect before the store guard runs. The new origin filter reads provenance fields that survive the activity event pipeline, so it operates on real worktrees.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
| (state) => state.agentsVisibleHostIds !== null || state.agentsFilterRepoIds.length > 0 | ||
| (state) => | ||
| (state.agentsVisibleHostIds !== null ? 1 : 0) + | ||
| state.agentsFilterRepoIds.length + |
There was a problem hiding this comment.
The badge counts raw agentsFilterRepoIds.length, so a persisted id whose repo no longer exists shows an active-filter badge while resolveActivityScopeRepoIds drops it and nothing is actually hidden. useWorkspaceOptionsFilterBadge avoids this by counting only ids that still resolve against repos.
Technical details
# Stale agents repo ids inflate the activity filter badge
## Affected sites
- `src/renderer/src/components/activity/activity-scope-filter-controls.tsx:119` — `useActivityScopeFilterCount` adds `state.agentsFilterRepoIds.length` verbatim.
- `src/renderer/src/components/activity/use-agent-pane-threads.ts:207` — the actual filter resolves ids via `resolveActivityScopeRepoIds(agentsFilterRepoIds, storeData.repoMap)`, so stale ids filter nothing.
- `src/renderer/src/components/sidebar/workspace-options-menu-items.tsx:42-50` — the workspace-menu equivalent counts only repos that still exist (`selectedCount`).
## Required outcome
- The activity filter count should reflect filters that actually narrow the list, matching the workspace header's behavior.
## Suggested approach (optional)
- Resolve the ids here the same way the filter does (subscribe to `repoMap`/`repos` in the selector) before counting, or document why the badge intentionally overcounts.
## Open questions for the human (optional)
- The existing comment says stale ids are counted "so they stay resettable"; is the count actually meant as a is-a-selection-persisted signal rather than an is-filtering signal?There was a problem hiding this comment.
✅ No new issues found in the incremental delta.
Reviewed changes — the delta since the prior pullfrog review (fb9c625..0c6e51c, commit 0c6e51c), presentational/menu-structure only.
- Reworked the agent row context menu to mirror the workspace row menu: replaced the two-item Mark as read / Mark as unread pair with a single read/unread toggle (
BellOff/Bell,disabled={!thread.unread && disableMarkUnread}), and flattened the "Copy" submenu into directCopy Title/Copy Branch/Copy Pathitems withCopyicons. - Standardized the menu chrome: icons at
size-3.5, Title-Cased labels (Open,Go to Workspace,Clear from List), and updated English values for the existingActivityThreadContextMenu.*keys; the now-unusedcopykey was dropped.
The single toggle preserves the old enable/disable semantics (unread → enabled Mark Read; read → Mark Unread disabled only when disableMarkUnread). The ActivityThreadContextMenu.* keys exist only in en.json, so non-English catalogs fall back to English — no stale-translation mismatch. Focused suites pass: activity-thread-context-menu.test.tsx + activity-thread-hover-card.test.tsx = 17/17.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
ℹ️ No functional issues — one description nit.
Reviewed changes — the delta since the prior pullfrog review (0c6e51c..5e64ed4, commit 5e64ed4).
- Aligned the agent row's copy items with the workspace row menu: dropped the
Copy Branchitem, reordered toCopy PaththenCopy Title, gated onhasWorkspace && thread.worktree.path, and removed the now-unusedgetWorktreeGitIdentityDisplayimport andActivityThreadContextMenu.copyBranchcatalog key. - Updated the context-menu tests:
Copy Branchis asserted absent, and the copy-target test asserts the[path, title]order.
The reordering matches the workspace menu's Path-then-name layout, and the gating keeps the title-only case for floating/synthetic rows. Focused suite passes (10/10).
ℹ️ Nitpicks
- The PR description's "What Changed" §4 still says the menu offers "Copy Title, plus Copy Branch and Copy Path", but
5e64ed4removedCopy Branchand putsCopy Pathfirst. Update the description so it matches the shipped menu.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
f3941da2-b766-4427-b57c-dd7d41917e62
📒 Files selected for processing (3)
src/renderer/src/components/activity/activity-thread-context-menu.test.tsxsrc/renderer/src/components/activity/activity-thread-context-menu.tsxsrc/renderer/src/i18n/locales/en.json
💤 Files with no reviewable changes (1)
- src/renderer/src/i18n/locales/en.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.
| // Same order as the workspace menu: Copy Path, then the name. | ||
| return [path, title] |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Add the documented Copy Branch action.
When thread.worktree.branch is available, this helper still returns only path and title targets. The activity-row menu therefore cannot show “Copy Branch,” although the PR description shows that action. Add a branch target and update the menu tests to check its value and visibility.

ELI5
The left sidebar has an "activity view" (the bell button) that lists individual agents instead of workspaces. It was missing filters the workspace list has, its header looked different, it had no right-click menu, and lots of ordinary actions silently threw you back to the workspace list. This fixes all four.
What Changed
1. Filters for the activity view. The activity options menu gets three new toggles: Hide other-client agents (only shown when shared remote servers exist, same as the workspace menu), Hide automation-created and Hide CLI-created. On a shared host you no longer have to scroll past everyone else's agents. They are saved separately from the workspace-list filters, like the existing host/project filter, and reuse the same checks the workspace list uses. An agent you have open stays visible even if a filter would hide it. Floating-terminal and repo-less agents are never hidden by these toggles.
2. One header for both views.
3. Staying in the activity view.
4. Right-click menu on agent rows, laid out like the workspace row menu (same wording style, icons and grouping): Open and Go to Workspace (when the agent has a real workspace); Copy Path (for real workspaces) and Copy Title, the same two copy items as the workspace menu; one read toggle, Mark Read or Mark Unread, with the same bell icons as the workspace menu (Mark Unread is disabled for the agent you have open); and Clear from List at the bottom (finished agents, using the existing clear). The row's hover preview stays closed while the menu is open. Right-click menus across Orca now use the same solid surface as dropdown menus (before, they were nearly transparent), so this menu matches the workspace menu, including its header label and width.
Why
Linked Issue
N/A (internal).
Visual Proof
Screenshots are from a background-launched dev build with sample agents loaded.
Testing
pnpm tc, oxlint,check:code-quality:changed, localization checks, and vitest over the touched areas (1,538 files / 14,103 tests) pass.SSH/remote: the other-client filter uses the same paired-device check as the workspace list. The new settings are optional and stay on each client; they are never sent to the remote host, so mixed versions are unaffected.
Review
Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
New strings are in English. Other languages fall back to English until the next translation pass.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)