Repository navigation
Conversation
…sion history Session search showed sessions from SSH hosts without saying which machine they came from, and SSH-only projects could disappear when the local catalog refreshed. Sessions from other machines are now badged with the host's name, which is kept while the host is disconnected. The "Not searched" footer names unavailable hosts, and SSH-only projects follow the same ownership rule on refresh and prune. Session search also suggests adding git repositories where agents were run, grouped with their session counts. Claude-Session: https://claude.ai/code/session_018pGUpQCvtxZqFiLfJqyX6k
There was a problem hiding this comment.
ℹ️ One minor suggestion inline.
Reviewed changes
- SSH host naming —
buildSshAiVaultHostScopeOptions/useAiVaultRemoteHostOptionslist connected SSH targets by their saved label, andbuildAiVaultHostScopeOptionskeeps the active host named while it is disconnected or after its target was removed.aiVaultSessionHostLabel/useAiVaultHostLabelerpower the new session-row badge and the search "Not searched" footer, so raw target ids no longer reach the UI. - Project suggestions — a new
aiVault:suggestProjectsIPC validates renderer input, then folds session folders to their main repo (--git-common-dir), excludes home/root/temp/cache roots, skips registered and dismissed paths, and returns checked-project candidates.AiVaultProjectSuggestionsrenders the list and pins adds to the local runtime. - SSH-only project regression fix —
mergeFetchedProjectCompatibilityForHostnow applies the same ownership rule to projects as to their setups, so a project living only on a direct-SSH host survives a local catalog refresh and is pruned with its setup. I traced the two producing callers; the local fetch'sfetchedcatalog does include SSH-owned projects, so the fix holds. - i18n —
remoteHostTitleand the project-suggestion keys added toen.json; the other locales intentionally fall back to English for the new keys.
Tests look like real coverage, not theatre: the main-process suite uses real git init/worktree add fixtures, and the component suite asserts the exact addRepoPath(path, 'git', { runtimeEnvironmentId: null }) call. I ran the touched suites (52 tests) and verify-localization-catalog — all pass.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Warning Review limit reachedNext included review available in 4 minutes. View limit detailsLimit details: You’ve used all 10 included reviews currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughThe change adds project suggestions based on local agent session history and exposes them through the AI Vault panel. It adds SSH host labels to session rows, host scopes, and skipped-host descriptions. It also updates project catalog refresh handling so local catalogs include direct-SSH-owned projects and setups. Priority: ➖ Normal Severity of issue fixed: Medium Merge Risk: 🔵 Low · up to Added projects may briefly remain in the suggestions card, and a project with both SSH and runtime ownership may retain an obsolete repository reference after refresh. These bounded issues warrant owner follow-up but do not appear to block merging. Security Architecture ReviewSecurity architecture risk: 🟡 Moderate · up to Project suggestions are limited to local folders and require a user action to add a project. However, the new desktop request can inspect caller-supplied folders without verifying that they came from session history. Retained concerns
Security review detailsSecurity Blast Radius
Security Findings and Attack Paths
Trust Boundaries and Controls
Resilience and Maintainability Implications
Hardening Proposals
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 39 functions across 24 files. (6 skipped: 6 unsupported.) 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: 2
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 6a533934-926c-43dc-96f5-408ccfe2d245
📒 Files selected for processing (30)
src/main/ai-vault/session-project-suggestions.test.tssrc/main/ai-vault/session-project-suggestions.tssrc/main/ipc/ai-vault-project-suggestions.tssrc/main/ipc/register-core-handlers/register-core-handlers.test.tssrc/main/ipc/register-core-handlers/register-core-handlers.tssrc/preload/api/ai-vault-api.tssrc/preload/api/ai-vault-bridge.tssrc/renderer/src/components/right-sidebar/AiVaultPanel.tsxsrc/renderer/src/components/right-sidebar/AiVaultPanelSearch.test.tsxsrc/renderer/src/components/right-sidebar/AiVaultPanelSearch.tsxsrc/renderer/src/components/right-sidebar/AiVaultProjectSuggestions.test.tsxsrc/renderer/src/components/right-sidebar/AiVaultProjectSuggestions.tsxsrc/renderer/src/components/right-sidebar/AiVaultSessionRow.test.tsxsrc/renderer/src/components/right-sidebar/ai-vault-host-scope.test.tssrc/renderer/src/components/right-sidebar/ai-vault-host-scope.tssrc/renderer/src/components/right-sidebar/ai-vault-project-suggestions-copy.tssrc/renderer/src/components/right-sidebar/ai-vault-session-host-label.test.tssrc/renderer/src/components/right-sidebar/ai-vault-session-host-label.tssrc/renderer/src/components/right-sidebar/ai-vault-session-row-display.tsxsrc/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/store/projects/project-compatibility-host-merge.test.tssrc/renderer/src/store/projects/project-compatibility-host-merge.tssrc/renderer/src/web/preload-api/web-ai-vault-api.tssrc/shared/ai-vault-project-suggestions.tssrc/shared/global-settings-types.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.
Keep sourceRepoIds consistent with the setup ownership rule on a local refresh, hide SSH targets owned by a paired Orca server from the host scope, and hide a suggestion as soon as it is added until a refresh stops suggesting it. Claude-Session: https://claude.ai/code/session_018pGUpQCvtxZqFiLfJqyX6k
|
Thanks. Addressed in 9a344eb:
Linux runner: |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Added-project hiding —
AiVaultProjectSuggestionstracks added paths inaddedPaths, hides them immediately so a repeat click cannot re-add a project, and prunes that set against each refresh so a project that stops being suggested (and later returns) reappears. Two component tests cover the immediate drop and the re-suggest. - Runtime-owned SSH scope filtering —
buildSshAiVaultHostScopeOptionsskipsruntime-ssh-*targets viaisRuntimeOwnedSshTargetId, with a test asserting a runtime-owned target is excluded while a real SSH target is kept. - Source-repo ownership prune — the preserved-project cleanup in
mergeFetchedProjectCompatibilityForHostnow filterssourceRepoIdswithhostBelongsToFetchedCatalograther thangetSourceRepoIdsOutsideHost, matching the setup/project ownership rule so a direct-SSH repo dropped by a local refresh no longer lingers in the project's identity. The mixed-owner test now assertssourceRepoIdsdirectly.
This delta addresses the prior Pullfrog thread (runtime-owned SSH targets) and both CodeRabbit threads. I traced the source-repo filter: for non-local refreshes hostBelongsToFetchedCatalog(h) === (h === hostId), so only the local-refresh semantics change (the intended fix). Ran the three touched suites (project-compatibility-host-merge, ai-vault-host-scope, AiVaultProjectSuggestions) — 25 tests pass.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

ELI5
Before: remote sessions are anonymous, and SSH-only projects can vanish. After: each remote session shows its host, and the project list stays stable.
What Changed
Host labels resolved from SSH target labels, including removed targets; footer naming; a shared ownership rule for refresh and prune; project suggestions from session history with review fixes.
Why
Reusing the existing target labels keeps names consistent everywhere, with no new state.
Linked Issue
Fixes #23448
Visual Proof
Before:
(the SSH host shows as a raw target id). After:
(the host by its name) and
(project suggestions from agent history).
Host details, project names and the saved server name are replaced with generic values in these images; the UI is otherwise as rendered.
Testing
Linux x64 (Ubuntu runner):
pnpm tcclean; 54 tests in the touched test files pass; the four localization verify scripts pass; the changed-code quality gate passes againstmain. macOS and Windows were not run locally; CI covers them.AI Disclosure
Written with Claude (Opus 5.5) and DeepSeek coding agents running in sandboxes, then reviewed, tested and verified by me, including an independent security review for the security-sensitive parts.
Review
Independent correctness review: PASS WITH FIXES, fix applied (a removed SSH host keeps its name in the scope picker, with a test).
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.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)https://claude.ai/code/session_018pGUpQCvtxZqFiLfJqyX6k