Skip to content

Add durable project-based conversation navigation - #33361

Open
gentslava wants to merge 87 commits into
stablyai:mainfrom
gentslava:gentslava/upstream-conversation-navigation
Open

gentslava wants to merge 87 commits into
stablyai:mainfrom
gentslava:gentslava/upstream-conversation-navigation

Conversation

@gentslava

@gentslava gentslava commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Adds an optional Sessions view to the left sidebar. It lists your agent sessions (Claude, Codex, Gemini and others), grouped by project. It includes saved provider transcripts and record-only chats, and opens each one on the host that owns it. Upstream's Projects list of workspaces and branches stays the default. You switch views from the sidebar title menu, or from a new setting at Settings → Appearance → Window & sidebar → Sidebar view.

What Changed

  • Sessions view. Rows are agent sessions with their agent icon, grouped by project. Projects keep their icons and actions, and the view has search, Archived, pin and archive actions, hidden projects, and "New chat in ". It reuses the existing history scan, structured records, catalogs and activation paths. It never lists worktrees or branches. While a scan is pending it shows one loading status, and project placeholders are not labelled empty until the scan finishes.
  • One name per view. The sidebar title menu offers upstream's list under upstream's own title (Projects when grouped by project, otherwise Workspaces), then Sessions, then Activity. The sessions view is never called Projects. Russian strings are included (Сессии, Вид боковой панели).
  • Appearance setting. A new Sidebar view control (Projects | Sessions) sits at the top of Window & sidebar. Its description is "What the left sidebar lists: projects and their workspaces, or agent sessions by project." The control is in settings search under sidebar, sessions, chats, conversations, projects and workspaces.
  • One source of truth. The control and the title menu read and write the same optional UI field, sidebarView ('workspaces' | 'conversations'). Changing either one updates the other immediately. If the field is absent or unknown, Orca uses upstream's list, so the default for new and existing profiles is unchanged.
  • Activity is still temporary, as in upstream. Turning Activity on or off is not saved. Turning it off returns to the chosen view, including after a restart. Automatic switches, such as revealing a workspace from the jump palette, leave the saved choice alone. A choice made in one window does not switch another open window. The saved view is restored at the next start.
  • Fits the reworked sidebar.
    • The title menu now opens when the header can fold beside Bots. Before, the full-width fold button covered it.
    • The Sessions list sits in the same Projects list slot, so it folds with the section and keeps the Bots split's sizing.
    • It uses the left sidebar's own surface, tint included, instead of the right panel's background.
  • Remote and mobile. sidebarView is local to each paired client, like sidebarOpen. Web clients keep it in their own storage and never send it to a host. Older hosts therefore never see the new key, and no protocol version change is needed. The mobile app has its own conversation list and is unaffected.

This PR does not change any other first-run default. New profiles keep upstream's Projects list, right sidebar, worktree card density and toolbar buttons.

Why

People who navigate by agent session need a stable list of sessions per project, with the correct host owner, so recoverable chats stay visible and actions reach the host that owns them. Upstream keeps its worktree list, so the sessions view is an explicit, discoverable choice, not a replacement.

Linked Issue

Fixes #39515, the desktop project-based conversation navigation request. It absorbs #35983 and #35932, which were found while testing this PR. The unlimited-forwarding subset was accepted separately in #36507.

Visual Proof

Component fixtures in the dark theme with synthetic projects (Acme, Example). The title menu captures press the title where a pointer lands, with the header foldable as it is beside Bots.

Title menu in upstream's view (sidebar/SidebarHeader:ProjectsViewMenu) sidebar-SidebarHeader-ProjectsViewMenu
Title menu in the Sessions view (sidebar/SidebarHeader:SessionsViewMenu) sidebar-SidebarHeader-SessionsViewMenu
Sidebar, upstream Projects view (sidebar/SidebarViews:projects) sidebar-SidebarViews-projects
Sidebar, Sessions view (sidebar/SidebarViews:sessions) sidebar-SidebarViews-sessions
Settings → Appearance (settings/appearance/SidebarViewSetting:sessionsPicked) settings-appearance-SidebarViewSetting-sessionsPicked
Russian title menu and setting sidebar-SidebarHeader-SessionsViewMenuRussian settings-appearance-SidebarViewSetting-sessionsPickedRussian

Earlier loading-state captures (6927b42ddfd) still describe the pending-scan behaviour. They predate the Sessions name.

Pending scan incorrectly reports empty projects

Pending scan shows loading instead of empty

Testing

Head 7d0f620fc8e42b480b81c9f8ecc16752128f0e4e includes an ordinary forward merge of upstream main 75339dcf434f37145016d938209dc5741d14bc78. That merge keeps the Sessions view inside upstream's reorderable Projects section, and keys the first-render cached scan by structured sessions.

  • Tests written first, failing before the change: SidebarViewSetting.test.tsx covers Appearance → sidebar, title menu → Appearance, and an Activity round trip that persists nothing. ui-slice-sidebar-view-hydration.test.ts covers restore at startup and that a sync does not switch this window.
  • pnpm tc passes.
  • ORCA_CODE_QUALITY_BASE=upstream/main pnpm lint: all 49 steps pass.
  • Localization checks pass: verify:localization-catalogs, -catalog, -runtime-catalog, -protected-copy, -extraction and -coverage.
  • Focused suites: 36 files, 163 tests. pnpm test:changed --maxWorkers=2: 761 files and 3214 tests pass, 6 files skipped.
  • The fixtures above render without page errors.

No installed-app, SSH, authenticated-provider or physical-device acceptance is claimed.

Risk

Level: Medium

If a session is attributed to the wrong project, a chat could be hidden or opened on the wrong host. The existing ownership checks, selected-host routing, generation fences and additive capabilities remain in place. The view choice is a client-local UI field. Reverting returns to upstream's sidebar, and provider transcripts and structured records are kept.

AI Disclosure

Implemented and checked with OpenAI Codex and Claude Code assistance. The contributor owns the change and its validation.

🤖 Generated with Claude Code

@gentslava
gentslava marked this pull request as ready for review October 25, 2026 03:22
@coderabbitai

coderabbitai Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review.

Walkthrough

The change adds durable structured conversations to AI Vault and an RPC for inspecting orchestration child sessions. Native chat can navigate child transcripts and display worker state, metadata, history, and results. The sidebar adds a Conversations view with chat-launch controls and conversation history. The change also updates session refresh and project attribution, paste and context-menu handling, worktree activation, background-task display, and UI defaults.

Merge Risk: Minimal · previous review 69683

No concrete issue remains that should block merging. Complete the normal repository and platform checks before release.

Pre-merge checks: Passed 4

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 "Add durable project-based conversation navigation" matches the main change. The changeset adds durable conversation records to AI Vault, a conversations sidebar view, and project-based attr…
Description check Passed The description follows the template with all main sections present: ELI5, What Changed, Why, Linked Issue (Fixes #39515), Visual Proof (fixture screenshots), Testing (commands, results, and platform …
Full details: Title check

Explanation

The title "Add durable project-based conversation navigation" matches the main change. The changeset adds durable conversation records to AI Vault, a conversations sidebar view, and project-based attribution of structured sessions. The PR objectives also describe conversation/activity navigation as the primary feature. The title omits child-history inspection and the RPC, but it still names the primary change.

Full details: Description check

Explanation

The description follows the template with all main sections present: ELI5, What Changed, Why, Linked Issue (Fixes #39515), Visual Proof (fixture screenshots), Testing (commands, results, and platform limits), Risk (Medium, with the revert path), AI Disclosure, and Review. The author also states that no installed-app, SSH, authenticated-provider, or physical-device acceptance was performed. Some items remain unchecked in the template checklist. Two gaps: the Testing checklist boxes are not ticked, and the Notes/cross-platform coverage is only implicit. The description is detailed and mostly complete, and it has a clear purpose.

  • 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

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 40695326-cd0f-4365-8b49-1cd7f6f084d4
Commits

Reviewing files that changed from the base of the PR and between 1da5ffc and 6968305.

Files ignored due to path filters: 1

  • src/shared/rpc-contract/rpc-params-catalog.generated.ts is excluded by !**/*.generated.*
Files selected for processing: 14

  • src/main/ai-vault/structured-session-ownership.test-support.ts
  • src/main/ai-vault/structured-session-ownership.test.ts
  • src/main/ai-vault/structured-session-ownership.ts
  • src/main/ipc/ai-vault-local-scan.ts
  • src/main/ipc/ai-vault.ts
  • src/main/ipc/register-core-handlers/register-core-handlers.ts
  • src/main/native-chat/agent-session-wire/structured-agent-session-claude-subagent-row.test.ts
  • src/renderer/src/components/right-sidebar/ai-vault-conversation-refresh.test.tsx
  • src/renderer/src/components/right-sidebar/ai-vault-session-refresh.ts
  • src/renderer/src/components/sidebar/SidebarHeader.tsx
  • src/renderer/src/components/sidebar/sidebar-header-actions.tsx
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/store/slices/ui/ui-slice-contract-preferences.ts
  • src/renderer/src/store/slices/ui/ui-slice-hydration-actions.ts
Files skipped from review as they are similar to previous 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; 8 remain after this review.

@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: 4

🧹 Nitpick comments: 1
src/renderer/src/components/native-chat/use-native-chat-session-children.ts: 1

84-89: Trivial · Performance & Scalability

Consider bounding the 3-second orchestration.sessionChildren poll.

NativeChatStructuredSession mounts NativeChatSessionChildren for every visible structured chat. Each instance polls every 3 seconds until it unmounts. Polling continues when the session has no workers and when every worker has settled.

NativeChatChildTranscriptFrame passes isVisible and not isVisible && active to its nested NativeChatSessionChildren. As a result, hidden ancestor frames in the child stack also keep polling. Their WorkerTranscript instances also keep polling for the same parent while a child is open.

For remote environment targets, each poll is a network round trip. Many open chats multiply this cost.

Options:

  • Slow down or stop polling when the last snapshot is empty or has no working/starting children. Resume polling on host contact or a session feed event.
  • Gate the frame-level NativeChatSessionChildren on isVisible && active. Keep WorkerTranscript enabled, because disabling it would unmount the retained JournalTranscript.

Review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 793ef4e9-a3e4-4920-8fce-890de134f35a
Commits

Reviewing files that changed from the base of the PR and between 76f0f35 and 07166ff.

Files ignored due to path filters: 1
  • src/shared/rpc-contract/rpc-params-catalog.generated.ts is excluded by !**/*.generated.*
Files selected for processing: 103
  • src/main/ai-vault/runtime-session-scanner.ts
  • src/main/ai-vault/session-list-result-validation.ts
  • src/main/ai-vault/structured-conversation-navigation.test.ts
  • src/main/ai-vault/structured-conversation-navigation.ts
  • src/main/ai-vault/structured-session-ownership.ts
  • src/main/ipc/ai-vault-runtime-scan.ts
  • src/main/ipc/ai-vault.test.ts
  • src/main/ipc/ai-vault.ts
  • src/main/ipc/register-core-handlers/register-core-handlers.ts
  • src/main/native-chat/agent-session-wire/structured-agent-session-background-task-channel.test.ts
  • src/main/native-chat/agent-session-wire/structured-agent-session-background-task-channel.ts
  • src/main/persistence/applying-settings/persistence-settings-ui-defaults.test.ts
  • src/main/persistence/applying-settings/persistence-settings-update.test.ts
  • src/main/persistence/applying-settings/persistence-source-control-ai-migration.test.ts
  • src/main/runtime/orchestration/orchestration-party.ts
  • src/main/runtime/orchestration/structured-session-child-metadata.test.ts
  • src/main/runtime/orchestration/structured-session-child-metadata.ts
  • src/main/runtime/orchestration/structured-session-child-workers.test.ts
  • src/main/runtime/orchestration/structured-session-child-workers.ts
  • src/main/runtime/rpc/methods/ai-vault.ts
  • src/main/runtime/rpc/methods/orchestration.ts
  • src/main/runtime/rpc/methods/orchestration/session-children.test.ts
  • src/main/runtime/rpc/methods/orchestration/session-children.ts
  • src/main/runtime/rpc/orchestration-session-caller.test.ts
  • src/renderer/src/components/native-chat/NativeChatBackgroundTasksStatus.tsx
  • src/renderer/src/components/native-chat/NativeChatChildMetadata.tsx
  • src/renderer/src/components/native-chat/NativeChatChildTranscript.tsx
  • src/renderer/src/components/native-chat/NativeChatChildTranscriptFrame.tsx
  • src/renderer/src/components/native-chat/NativeChatMessageList.tsx
  • src/renderer/src/components/native-chat/NativeChatResolvedView.tsx
  • src/renderer/src/components/native-chat/NativeChatSessionChildren.tsx
  • src/renderer/src/components/native-chat/NativeChatStructuredChildTranscript.tsx
  • src/renderer/src/components/native-chat/NativeChatStructuredPromptSlot.tsx
  • src/renderer/src/components/native-chat/NativeChatStructuredSession.children.test.tsx
  • src/renderer/src/components/native-chat/NativeChatStructuredSession.tsx
  • src/renderer/src/components/native-chat/NativeChatStructuredTranscript.tsx
  • src/renderer/src/components/native-chat/NativeChatSubagentRun.test.tsx
  • src/renderer/src/components/native-chat/NativeChatSubagentRun.tsx
  • src/renderer/src/components/native-chat/NativeChatSubagentSectionHead.tsx
  • src/renderer/src/components/native-chat/native-chat-child-agent-id.ts
  • src/renderer/src/components/native-chat/native-chat-child-navigation.test.tsx
  • src/renderer/src/components/native-chat/native-chat-child-navigation.ts
  • src/renderer/src/components/native-chat/native-chat-child-transcript.test.ts
  • src/renderer/src/components/native-chat/native-chat-child-transcript.ts
  • src/renderer/src/components/native-chat/native-chat-context-menu-target.ts
  • src/renderer/src/components/native-chat/native-chat-paste-routing.test.tsx
  • src/renderer/src/components/native-chat/use-native-chat-context-menu.targets.test.tsx
  • src/renderer/src/components/native-chat/use-native-chat-paste-bridge.ts
  • src/renderer/src/components/native-chat/use-native-chat-session-children.ts
  • src/renderer/src/components/native-chat/use-native-chat-terminal-transcript.ts
  • src/renderer/src/components/right-sidebar/AiVaultPanel.tsx
  • src/renderer/src/components/right-sidebar/AiVaultPanelHeader.tsx
  • src/renderer/src/components/right-sidebar/AiVaultSessionRow.tsx
  • src/renderer/src/components/right-sidebar/AiVaultSessionUnsavedNotice.tsx
  • src/renderer/src/components/right-sidebar/AiVaultSessionVirtualList.keyboard.test.tsx
  • src/renderer/src/components/right-sidebar/AiVaultSessionVirtualList.tsx
  • src/renderer/src/components/right-sidebar/AiVaultVirtualRow.test.tsx
  • src/renderer/src/components/right-sidebar/AiVaultVirtualRow.tsx
  • src/renderer/src/components/right-sidebar/ai-vault-agent-session-refresh-key.ts
  • src/renderer/src/components/right-sidebar/ai-vault-conversation-refresh.test.tsx
  • src/renderer/src/components/right-sidebar/ai-vault-conversation-refresh.ts
  • src/renderer/src/components/right-sidebar/ai-vault-panel-handle.ts
  • src/renderer/src/components/right-sidebar/ai-vault-session-filters.ts
  • src/renderer/src/components/right-sidebar/ai-vault-session-list-request.ts
  • src/renderer/src/components/right-sidebar/ai-vault-session-projects.test.ts
  • src/renderer/src/components/right-sidebar/ai-vault-session-projects.ts
  • src/renderer/src/components/right-sidebar/ai-vault-session-refresh.ts
  • src/renderer/src/components/right-sidebar/ai-vault-session-result-cache.ts
  • src/renderer/src/components/right-sidebar/ai-vault-session-worktree.test.ts
  • src/renderer/src/components/right-sidebar/ai-vault-session-worktree.ts
  • src/renderer/src/components/right-sidebar/ai-vault-structured-session-project.ts
  • src/renderer/src/components/sidebar/SidebarConversationStart.tsx
  • src/renderer/src/components/sidebar/SidebarHeader.test.tsx
  • src/renderer/src/components/sidebar/SidebarHeader.tsx
  • src/renderer/src/components/sidebar/index.tsx
  • src/renderer/src/components/sidebar/project-added-default-checkout.test.ts
  • src/renderer/src/components/sidebar/project-added-default-checkout.ts
  • src/renderer/src/components/sidebar/sidebar-header-actions.tsx
  • src/renderer/src/components/sidebar/useCreateRepo.default-checkout.test.ts
  • src/renderer/src/components/sidebar/useCreateRepo.ts
  • src/renderer/src/components/tab-bar/tab-bar-surface.tsx
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/lib/activate-ai-vault-structured-session.test.ts
  • src/renderer/src/lib/activate-ai-vault-structured-session.ts
  • src/renderer/src/lib/onboarding-folder-agent-launch.ts
  • src/renderer/src/store/slices/repos-onboarding-folder-startup.test.ts
  • src/renderer/src/store/slices/ui-hydration-view-layout.test.ts
  • src/renderer/src/store/slices/ui/ui-slice-contract-preferences.ts
  • src/renderer/src/store/slices/ui/ui-slice-hydration-actions.ts
  • src/renderer/src/store/slices/ui/ui-slice-preference-actions.ts
  • src/renderer/src/store/slices/ui/ui-slice-surface-actions.ts
  • src/renderer/src/web/preload-api/web-ai-vault-api.ts
  • src/shared/agent-child-work-listing.ts
  • src/shared/ai-vault-session-filters.ts
  • src/shared/ai-vault-types.ts
  • src/shared/constants.ts
  • src/shared/default-global-settings.ts
  • src/shared/orchestration-runtime-capabilities.ts
  • src/shared/orchestration-session-children.ts
  • src/shared/rpc-contract/ai-vault-params.ts
  • src/shared/rpc-contract/orchestration-params.ts
  • src/shared/structured-session-background-tasks-view.test.ts
  • src/shared/structured-session-background-tasks-view.ts
Files with no reviewable changes: 1
  • src/main/runtime/rpc/orchestration-session-caller.test.ts

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

@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
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 49c109a6-b0ef-4193-a909-d3bd1dad9044
Commits

Reviewing files that changed from the base of the PR and between 07166ff and 9414296.

Files selected for processing: 8
  • src/main/ai-vault/structured-conversation-navigation.test.ts
  • src/main/ai-vault/structured-conversation-navigation.ts
  • src/main/ai-vault/structured-session-ownership.test-support.ts
  • src/main/ai-vault/structured-session-ownership.test.ts
  • src/main/ai-vault/structured-session-ownership.ts
  • src/renderer/src/components/sidebar/SidebarHeader.test.tsx
  • src/renderer/src/components/sidebar/SidebarHeader.tsx
  • src/renderer/src/components/tab-bar/tab-bar-surface.tsx
Files skipped from review as they are similar to previous changes: 4
  • src/renderer/src/components/sidebar/SidebarHeader.test.tsx
  • src/renderer/src/components/tab-bar/tab-bar-surface.tsx
  • src/main/ai-vault/structured-conversation-navigation.test.ts
  • src/renderer/src/components/sidebar/SidebarHeader.tsx

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

@gentslava

Copy link
Copy Markdown
Contributor Author

Response to the optional polling note in review 5641364725: addressed the hidden-ancestor part in 0f6c95c. The nested NativeChatSessionChildren now receives isVisible && active; the existing navigation test advances the poll clock while a native descendant is open, verifies no further ancestor child-list reads, and verifies that Back refreshes the roster while retaining the same journal DOM, scroll position, and parent draft. WorkerTranscript remains enabled so its retained JournalTranscript is not unmounted.

The visible-view fallback remains a 3-second, single-in-flight, capability-gated snapshot read against the selected execution host. orchestration.session-children.v1 advertises the paginated orchestration.sessionChildren RPC, not a child-history subscription. The existing session status feed projects journals and optional running provider child-work views; it does not promise invalidation for every persisted Dispatch/custody/result or continued-session identity change, including terminal and federated workers. Stopping after an empty or settled snapshot and resuming only on that feed/contact would therefore miss later history updates, particularly across mixed-version remote hosts. No new stream or host fallback was introduced.

Local validation with ORCA_BACKGROUND_LAUNCH=1: 23 tests passed across the existing structured-child and child-navigation suites; pnpm tc:web and the changed-line quality gate against fcd66a1 passed; normal commit hooks passed. No app/GUI, provider, or remote integration run was performed, and this does not assert CI or review approval.

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

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (1)

Minor · Gate the parent roster on child selection. · NativeChatStructuredSession.tsx:295-299

src/renderer/src/components/native-chat/NativeChatStructuredSession.tsx:295-299
🚀 Performance & Scalability | 🟡 Minor | ⚡ Quick win

Gate the parent roster on child selection.

When childNavigator.child !== null, the parent content is hidden, but NativeChatSessionChildren remains enabled because it receives only props.isVisible. It can continue calling orchestration.sessionChildren every three seconds. Each call runs the dispatch query and per-row lookups in structuredSessionChildWorkers, wasting RPC and database resources while the parent is unavailable.

Suggested fix
             sessionId={props.sessionId}
             target={props.target}
-            isVisible={props.isVisible}
+            isVisible={props.isVisible && childNavigator.child === null}

Review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2270c110-155f-4d1c-b17b-586968a4e79f
Commits

Reviewing files that changed from the base of the PR and between 0f6c95c and cd33cbe.

Files selected for processing: 1
  • src/renderer/src/components/right-sidebar/AiVaultPanel.tsx

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

@gentslava

Copy link
Copy Markdown
Contributor Author

Addressed the outside-diff parent-roster polling note from review 5642158141 in c26c4da. The parent roster now pauses while its child transcript is selected and refreshes when returning to the parent. The visible worker's identity lookup remains active.

Validation: all 21 existing child-navigation tests pass, including the extended fake-timer case for pausing the parent roster and refreshing on Back. This follow-up changes polling ownership only; the rendered layout is unchanged.

gentslava added a commit to gentslava/orca that referenced this pull request Oct 25, 2026
Apply the exact authorized PR stablyai#33361 followup diff from c26c4da, whose parent is cd33cbe.

Preserve the visible worker identity refresh and existing hidden child-frame behavior, and refresh the parent roster again when returning to its conversation.
@gentslava

Copy link
Copy Markdown
Contributor Author

@coderabbitai resume

Please resume incremental review of the current head b0ecc59. The previously reported inline findings are addressed; current full upstream validation is still pending maintainer workflow approval.

@coderabbitai

coderabbitai Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

@gentslava I’ll resume automatic reviews and request an incremental review of head b0ecc5914c8920294951c82e1c08ed87bbfd8360.

Full upstream validation remains pending maintainer workflow approval, as you noted. This request does not change the PR’s approval status.

✅ Action performed

Reviews resumed.


Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@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/runtime/structured-child-records-switch.test.ts: 1

98-104: Trivial · Functional Correctness · Quick win

Assert that settled children are absent from both summary fields.

The settlement assertions only reject summary.children. The renderer uses children ?? summary.backgroundTasks, so a regression that serializes the settled agent into legacy backgroundTasks would pass these assertions while still exposing it in the session summary.

Suggested fix
     expect(summaries.at(-1)).not.toHaveProperty('children')
+    expect(summaries.at(-1)).not.toHaveProperty('backgroundTasks')
...
     expect(summaries.at(-1)).not.toHaveProperty('children')
+    expect(summaries.at(-1)).not.toHaveProperty('backgroundTasks')

Review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b873fbbd-d370-4889-a2f0-b778c68b7016
Commits

Reviewing files that changed from the base of the PR and between c26c4da and b0ecc59.

Files selected for processing: 2
  • src/main/native-chat/agent-session-wire/structured-agent-session-claude-subagent-row.test.ts
  • src/main/runtime/structured-child-records-switch.test.ts

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

@gentslava

Copy link
Copy Markdown
Contributor Author

Addressed the legacy-field test gap from review 5642883824 in 904f6d4: both command settlement and scripted provider exit now assert that neither children nor legacy backgroundTasks remains in the session summary. The full navigation/host selection passed 2,997 tests with one existing skip; actual four-project Bun CI typechecking, scoped quality and normal hooks passed. The branch also includes an ordinary merge of pinned upstream 7d6603a; full upstream workflow execution still requires maintainer approval.

@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: 2

🧹 Nitpick comments: 1
src/renderer/src/components/native-chat/native-chat-paste-routing.test.tsx: 1

468-468: Trivial · Maintainability & Code Quality · Quick win

Assert that the paste reached the answer input before hiding the parent.

The test passes if the paste never starts. For example, requestNativeChatCoverPaste could route the request elsewhere. In that case, answer.value stays '' and mocks.terminalClipboard stays uncalled for the wrong reason.

Assert that the clipboard read started. Add the assertion after pasteTerminalPaneMenuClipboard and before the hidden or inert attribute is set. Then the test proves that the post-read canContinue check blocks the write.

Proposed change
       await pasteTerminalPaneMenuClipboard(menuContext(), menuPane(f.pane), 'context-menu')
+      expect(mocks.readClipboardText).toHaveBeenCalledTimes(1)
       const parentContent = document.createElement('section')

Review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5b1f2ac2-7f87-4beb-b33c-c0fc3e399b8a
Commits

Reviewing files that changed from the base of the PR and between b0ecc59 and 904f6d4.

Files ignored due to path filters: 1
  • src/shared/rpc-contract/rpc-params-catalog.generated.ts is excluded by !**/*.generated.*
Files selected for processing: 46
  • src/main/runtime/orchestration/orchestration-party.ts
  • src/main/runtime/rpc/methods/ai-vault.ts
  • src/main/runtime/structured-child-records-switch.test.ts
  • src/renderer/src/components/native-chat/NativeChatBackgroundTasksStatus.tsx
  • src/renderer/src/components/native-chat/NativeChatMessageList.tsx
  • src/renderer/src/components/native-chat/NativeChatResolvedView.tsx
  • src/renderer/src/components/native-chat/NativeChatStructuredSession.tsx
  • src/renderer/src/components/native-chat/NativeChatSubagentRun.tsx
  • src/renderer/src/components/native-chat/NativeChatSubagentSectionHead.tsx
  • src/renderer/src/components/native-chat/native-chat-context-menu-target.ts
  • src/renderer/src/components/native-chat/native-chat-paste-routing.test.tsx
  • src/renderer/src/components/native-chat/use-native-chat-context-menu.targets.test.tsx
  • src/renderer/src/components/native-chat/use-native-chat-paste-bridge.ts
  • src/renderer/src/components/right-sidebar/AiVaultPanel.tsx
  • src/renderer/src/components/right-sidebar/AiVaultSessionRow.tsx
  • src/renderer/src/components/right-sidebar/AiVaultSessionUnsavedNotice.tsx
  • src/renderer/src/components/right-sidebar/AiVaultSessionVirtualList.keyboard.test.tsx
  • src/renderer/src/components/right-sidebar/AiVaultSessionVirtualList.tsx
  • src/renderer/src/components/right-sidebar/AiVaultVirtualRow.tsx
  • src/renderer/src/components/right-sidebar/ai-vault-agent-session-refresh-key.ts
  • src/renderer/src/components/right-sidebar/ai-vault-panel-handle.ts
  • src/renderer/src/components/right-sidebar/ai-vault-session-filters.ts
  • src/renderer/src/components/right-sidebar/ai-vault-session-list-request.ts
  • src/renderer/src/components/right-sidebar/ai-vault-session-projects.ts
  • src/renderer/src/components/right-sidebar/ai-vault-session-refresh.ts
  • src/renderer/src/components/right-sidebar/ai-vault-session-worktree.ts
  • src/renderer/src/components/sidebar/SidebarHeader.tsx
  • src/renderer/src/components/sidebar/index.tsx
  • src/renderer/src/components/sidebar/project-added-default-checkout.ts
  • src/renderer/src/components/sidebar/sidebar-header-actions.tsx
  • src/renderer/src/components/sidebar/useCreateRepo.ts
  • src/renderer/src/components/tab-bar/tab-bar-surface.tsx
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/lib/activate-ai-vault-structured-session.ts
  • src/renderer/src/lib/onboarding-folder-agent-launch.ts
  • src/renderer/src/store/slices/ui/ui-slice-surface-actions.ts
  • src/renderer/src/web/preload-api/web-ai-vault-api.ts
  • src/shared/agent-child-work-listing.ts
  • src/shared/ai-vault-session-filters.ts
  • src/shared/ai-vault-types.ts
  • src/shared/constants.ts
  • src/shared/default-global-settings.ts
  • src/shared/rpc-contract/ai-vault-params.ts
  • src/shared/rpc-contract/orchestration-params.ts
  • src/shared/structured-session-background-tasks-view.test.ts
  • src/shared/structured-session-background-tasks-view.ts
Files skipped from review as they are similar to previous 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; 7 remain after this review.

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

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (1)

Minor · Preserve executionHostId when reopening structured… · ai-vault-session-resume-here.ts:161-177

src/renderer/src/components/right-sidebar/ai-vault-session-resume-here.ts:161-177
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Preserve executionHostId when reopening structured sessions.

/resume can select a structured row from a remote runtime, but the current calls omit its executionHostId. Activation then targets the current worktree owner instead. This can reopen the wrong session or fail to open the selected session. Pass session.executionHostId through both the normal and owner-recovery paths.

Suggested fix
-    replace = () => revealInPlaceOf(here, structured)
+    replace = () => revealInPlaceOf(here, structured, session.executionHostId)
...
           ownerShown = elsewhere
-            ? activateAiVaultStructuredSession({ structuredSession: owner })
-            : revealInPlaceOf(here, owner)
+            ? activateAiVaultStructuredSession({
+                structuredSession: owner,
+                executionHostId: session.executionHostId
+              })
+            : revealInPlaceOf(here, owner, session.executionHostId)
...
 function revealInPlaceOf(
   here: AiVaultResumeHere,
-  structured: NonNullable<AiVaultSession['structuredSession']>
+  structured: NonNullable<AiVaultSession['structuredSession']>,
+  executionHostId: AiVaultSession['executionHostId']
 ): Promise<void> {
-  return activateAiVaultStructuredSession({ structuredSession: structured }).then(() => {
+  return activateAiVaultStructuredSession({ structuredSession: structured, executionHostId }).then(() => {

Review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8b5e0b7a-6cf4-4790-8153-a5beb9661155
Commits

Reviewing files that changed from the base of the PR and between 904f6d4 and 0e254e6.

Files selected for processing: 5
  • src/main/ai-vault/structured-conversation-navigation.test.ts
  • src/main/ai-vault/structured-conversation-navigation.ts
  • src/renderer/src/components/native-chat/native-chat-paste-routing.test.tsx
  • src/renderer/src/components/sidebar/SidebarHeader.test.tsx
  • src/renderer/src/components/sidebar/SidebarHeader.tsx
Files with no reviewable changes: 1
  • src/main/ai-vault/structured-conversation-navigation.ts
Files skipped from review as they are similar to previous changes: 3
  • src/renderer/src/components/sidebar/SidebarHeader.tsx
  • src/renderer/src/components/sidebar/SidebarHeader.test.tsx
  • src/main/ai-vault/structured-conversation-navigation.test.ts

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

@gentslava

Copy link
Copy Markdown
Contributor Author

Fixed the outside-diff finding from review 5643194884 in 1da5ffc. /resume now retains the selected row's executionHostId for direct structured reopen and both adopted-owner recovery paths. The refusal owner tuple supplies session/workspace IDs only, so the selected host remains the authority rather than being reconstructed or replaced by the current workspace owner.

Three remote-owner keyboard cases failed before the correction. All 41 whole affected resume/activation/owner suites then passed 396 tests with zero unhandled/teardown errors; the four Bun CI typechecks, scoped quality, formatting, catalogs and normal hooks passed. The actual host-scoped activation test also covers a selected-session host. A separate test-only commit settles the pending rename import before teardown and resets launch fixtures before every case; no production lifecycle or assertion was weakened. The sibling #33383 is receiving a narrow adaptation to its existing explicit-target activation API. Full upstream CI remains pending maintainer approval.

@gentslava
gentslava requested a review from Jinwoo-H as a code owner October 26, 2026 00:33
gentslava added a commit to gentslava/orca that referenced this pull request Oct 26, 2026
gentslava added a commit to gentslava/orca that referenced this pull request Oct 26, 2026
gentslava added a commit to gentslava/orca that referenced this pull request Oct 26, 2026
gentslava added a commit to gentslava/orca that referenced this pull request Oct 26, 2026
gentslava added a commit to gentslava/orca that referenced this pull request Oct 26, 2026
gentslava added a commit to gentslava/orca that referenced this pull request Oct 27, 2026
gentslava added a commit to gentslava/orca that referenced this pull request Oct 27, 2026
gentslava added a commit to gentslava/orca that referenced this pull request Oct 27, 2026
gentslava added a commit to gentslava/orca that referenced this pull request Oct 27, 2026
gentslava added a commit to gentslava/orca that referenced this pull request Oct 28, 2026
gentslava and others added 27 commits November 12, 2026 04:16
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Projects replaced Workspaces as the first-run sidebar list, so upstream
specs that wait for worktree cards in paired web and desktop clients
timed out. Workspaces is the default again. A pick from the sidebar
title menu or the Activity toggle is saved as the pairing-local UI field
sidebarBody and restored at startup only, so redirects such as revealing
a workspace do not overwrite it and another window's pick does not
switch this one. Older hosts never receive the key, and old builds
ignore it in the profile.

The e2e fixtures that pinned the Workspaces view are no longer needed
and return to their upstream form.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conversation navigation does not need new profiles to start with compact
worktree cards or with the Tasks, Automations and Mobile buttons hidden.
Compact cards hide inline agent rows, which the Pi EOF agent-row spec
reads, and the hidden buttons change the sidebar geometry that the
folder keyboard-navigation spec scrolls against. Existing profiles keep
whatever they saved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conversation navigation does not need new profiles to start with the
right sidebar closed. New profiles open it again, as upstream, and the
two upstream specs that opened Explorer only to cope with the closed
default return to their upstream form. Profiles that saved a choice
keep it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Creation seeds a default terminal on this branch, as upstream does. The
explicit New tab path looked for a New Terminal menu item that the current
create row no longer renders, so the packaged serve-switch check timed out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ions module

Conversation navigation took AiVaultSessionVirtualList.tsx to 416 lines on current main, over the 400-line limit. The row chat-action resolution, which the open repeated verbatim from the resume-here pick, and the direct conversation open now live in ai-vault-session-row-chat.ts. Both callers use the same resolver, so behavior is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keep the Conversations view inside upstream's reorderable Projects
section, and key the first-render cached scan by structured sessions so
the conversation list does not reuse the right panel's cached list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The sidebar's session list was titled Projects, the word upstream now
uses for its worktree list, so it was easy to miss. Title it Sessions
and keep upstream's own Projects or Workspaces title for the worktree
list.

Settings > Appearance > Window & sidebar gains a Sidebar view control.
It and the title menu read and write one remembered field, sidebarView,
which defaults to upstream's list. Activity stays a temporary overlay,
as upstream, and turning it off returns to the chosen view. The title
menu now opens when the header can fold beside Bots, and the session
list sits in the Projects list slot with the left sidebar's surface.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

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]: Browse and reopen chats by project in the desktop sidebar

1 participant