Repository navigation
Conversation
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Catalog-only store action —
refreshRuntimeEnvironmentCatalogreusescreateRuntimeStatusHydrationwithout the per-host status probe, so opening the host picker re-lists saved environments cheaply. - Optional status probe —
refreshEnvironmentStatusis now optional and the hydration loop skips thePromise.allSettledfan-out when it is absent. - Picker refresh on open —
VaultHostScopeMenucalls the action ononOpenChange(open), andAiVaultPanelalready subscribes toruntimeEnvironments, so newly-listed CLI-paired hosts re-render into the menu. - Tests — factory-level coverage for add/remove, coalescing, concurrent pairing edits, and failed reads; plus a picker interaction test that preserves the existing SSH selection.
ℹ️ Coalescing is per-action, not shared
The two hydration actions have independent inFlight/expectedRevisions/rerunRequested closures, so a picker open during boot hydration issues a second list() and publish rather than joining the first. I traced this and it is redundant, not incorrect — reconcileCatalogRows no-ops equal rows and setRuntimeEnvironments is idempotent for them — but the PR description's "overlapping-request coalescing" applies only within a single action. No change required; flagging so the description isn't read as a cross-action guarantee.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 🧰 Additional context used📚 Code guidelines (1)No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (6)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe runtime status slice adds an action to refresh the runtime environment catalog. The history host picker calls this action when it opens. Hydration skips status refresh when no status reader is provided. Tests cover catalog updates, concurrent refresh behavior, rejected catalog reads, and selection of a newly listed server in the picker. Priority: ➖ Normal Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to No merge-blocking issue is established; the change is ready to merge after normal checks. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The change is narrowly scoped to refreshing saved hosts. Opening the menu does not itself select a host or request connection checks, and existing identity checks protect catalog publication. No introduced security concern was established in the inspected flow; incomplete coverage of interruption and broader host-routing behavior limits confidence. Retained concerns Security review detailsSecurity Blast Radius
Security Findings and Attack Paths
Trust Boundaries and Controls
Resilience and Maintainability Implications
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
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 |
|
Thanks @tianyilt for tracking this down and for the clear repro and before/after captures. Your diagnosis was right: the History picker only ever saw a server list loaded somewhere else. We landed a broader fix: the desktop app now pushes a refresh to every window whenever the saved-server file changes, so |

ELI5
A server paired through the Orca CLI can be missing from the History host menu until another screen refreshes the saved server list. Opening that menu now refreshes the list, so the server appears without opening Settings first.
What Changed
The History host picker refreshes the saved environment catalog when opened. A new catalog-only store action reuses the existing hydration coordinator, including its overlapping-request coalescing and revision checks, without probing every server. Existing selections remain unchanged, and a failed list read preserves the last known hosts.
Why
The menu previously depended on a catalog populated elsewhere in the renderer. Refreshing at the point of use discovers CLI pairing changes while avoiding unnecessary network probes or replacing the current host selection.
Linked Issue
Fixes #25251
Visual Proof
Captured in headless Chromium using the actual controls and application styles, with generic saved-host fixtures. The existing SSH host remains selected in both images.
Before:

After:

Testing
Passed locally on macOS:
pnpm typecheckacross Node, CLI, and renderer projects.git diff --check.New tests cover saved-host additions/removals, concurrent opens, pairing changes during a pending read, failed reads, and preserving an SSH selection while discovering a paired server. Full-suite tests, full lint, packaging, and Linux/Windows checks are left to CI.
AI Disclosure
Implemented and reviewed with OpenAI Codex.
Review
The change lists saved metadata through an existing API and adds no new transport, credential handling, filesystem access, platform shortcuts, or server-status cache. Local, SSH, and paired-runtime host choices retain their current selection behavior. The catalog action is shared across platforms; Linux and Windows were not run locally.
Agent skill upstream boundary
Notes
This fix is scoped to discovering saved hosts in the History picker. It does not change remote transcript reading (already addressed in #20455) or the separate CLI removal/transport issue #20995.
Checklist