Skip to content

refactor(git): git calls route by the worktree's owner - #27291

Merged
OrcaWin merged 3 commits into
mainfrom
OrcaWin/d4-g1-git
Oct 10, 2026
Merged

OrcaWin merged 3 commits into
mainfrom
OrcaWin/d4-g1-git

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 10, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 45 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​408 $\color{#cf222e}{\Huge{\mathbf{−}}}$​175 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​233
Prod 99 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​848 $\color{#cf222e}{\Huge{\mathbf{−}}}$​660 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​188

ELI5

Git actions in Orca (status, stage, commit, push, pull, diffs, AI commit messages, fork sync, review notes) used to ask the app-wide "Active Server" setting which machine to talk to, unless the caller happened to override it. Now every git call is told which machine owns the repository or worktree it is about, so it can't drift to whatever server happens to be selected.

What Changed

  • Before (user): for a repo or worktree with no owner stamp, and for a few call sites that passed raw settings, git work went to the focused server. This covered Copy Remote URL in the editor gutter, stale-conflict polling, fork sync on unstamped repos, editor-slice push/pull/sync/fetch without an explicit owner, and lineage writes. If the rows named no owner at all, the work quietly ran on this computer.
  • After (user): git work goes to the repo's or worktree's owner, using the same rows Orca already stamps when it fetches them. When no row names an owner, a user action is refused with "The workspace host is unresolved. Refresh the workspace and retry." Background polls skip quietly instead. Users with only this computer see no change.
  • Mechanism:
    • RuntimeGitContext now carries target: RuntimeClientTarget (the owner's connection) instead of a settings object, so code that passes raw focus settings no longer compiles. AI preferences ride a separate prefs field whose type has no activeRuntimeEnvironmentId. getRuntimeGitScope takes the target; its scope and cache key strings are unchanged.
    • Callers get the target from the owner:
      • The source-control panel uses the repo row (runtimeTargetForOwnerHostId(getRepoExecutionHostId(repo))).
      • The checks panel, git polling, editor diffs, worktree metadata, lineage, review push targets and diff-comment persistence use the worktree rows (resolveOwner → runtimeTargetForWorkspaceOwner).
      • Diff tabs use main's getRuntimeTargetForFileOwner / requireRuntimeTargetForFileOwner: the owner stamped on the tab, otherwise the worktree's owner. These are the same helpers file reads use.
    • Editor-slice remote actions (pushBranch, pullBranch, syncBranch, fetchBranch, rebaseFromBase, fastForwardBranch, fetchUpstreamStatus) take an optional runtimeTarget in place of runtimeTargetSettings. Without it they resolve the worktree's owner. An unresolved owner is refused before the busy flag is set.
    • Commit-message and PR-generation records capture runtimeTarget when the request starts, so Stop and the follow-up refresh reach the same host.
    • Direct work-item launches now pick a single owner row up front, through the exported resolveDirectLaunchOwnerRow. Setup preflight, the PR start point and createWorktree (given that row's executionHostId) all run on that host. If two hosts share the repo id, the launch opens the create modal instead of breaking the tie by focus.
    • persistWorktreeMeta, lineage reads and writes, and the GitHub PR start-point resolver now take a target instead of settings.
    • Removed the settings-fabrication uses of getRightSidebarWorktreeRuntimeSettings, getRepoOwnerRoutedSettings, settingsForWorktreeOwner and trySettingsForWorktreeOwner in these paths. The private settingsForWorktreeOwner in diff-comment persistence is deleted.
    • Ratchets: owner-routing drops by 46 (102 → 56 on main), and focus-read drops from 1448 to 1268. No file grew.

Why

The design calls for routing by the resource's owner, never by focus. Changing the context type is the honest version of that. Swapping in a renamed helper that still reads settings would leave every caller able to pass focus. With the type change, the compiler found every git caller.

Alternatives considered:

  • Resolving the owner inside each git client from worktreeId. Worktree ids can repeat across hosts, and the clients would need the store.
  • Keeping settings alongside target. That would leave two routing inputs.

Some cases now refuse instead of falling back to this computer:

  • A worktree that no row places on a host.
  • A repo whose only row carries the unresolved-owner placeholder.

The old fallback could act on the wrong machine.

Kept as-is on purpose, for later stack PRs:

  • fetchWorktreeLineage() called without a host still refreshes the focused server's lineage. It is a host-scoped refresh, not a resource.
  • The PR base-ref discovery still calls the repo client with a settings-shaped { activeRuntimeEnvironmentId }. That value is now built from the owner target, and the repo-client area replaces it.

Linked Issue

None. This is part of the host-ownership routing stack (D4 G1, area B).

Visual Proof

N/A. There is no UI change, only which host git calls go to. Unit tests cover the routing, and the machine is load-capped, so the app wasn't launched.

Testing

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

New or changed tests prove that the owner wins over focus:

  • SourceControl.preview-open.test.tsx: the repo is owned by runtime-remote while runtime-other is focused, and the discard goes to runtime-remote.
  • worktrees-lineage-state.test.ts, worktrees-metadata-persistence.test.ts, worktrees-activity-persistence.test.ts and worktrees-linked-review-push-target.test.ts now stamp server rows the way ingest does.
  • launch-work-item-direct-owner-row.test.ts (new):
    • A server-owned repo, with a different server focused, runs the hooks probe, resolves the PR base and runs createWorktree all on its owner.
    • Duplicate rows on two hosts open the modal and make no calls.
  • editor-remote-branch-actions.test.ts (new case): a push for a worktree that no row places is refused, makes no IPC call, and leaves the busy flag clear even with a focused server set.
  • Ran: pnpm tc:web, focused pnpm test (right-sidebar, runtime, store, editor, native-chat, lib, composer-state, settings, sidebar and status-bar suites), oxlint/oxfmt, pnpm run check:code-quality:changed, and pnpm check:owner-routing-ratchet.

Review

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

No wire change: RPC methods and params are unchanged. SSH: direct SSH keeps going through this app's IPC with its connectionId. Folder workspaces keep their existing guards, and diff comments on folders still go to the folder's own host.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@coderabbitai

coderabbitai Bot commented Oct 10, 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. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e87b6c79-1e98-4c91-9b63-ad445da9027d


📥 Commits

Reviewing files that changed from the base of the PR and between 8c9ddd4e0d7ea978794b6bc4f0b2d1ba0b1d3d17 and 92a0383.



📒 Files selected for processing (5)
  • config/focus-setting-read-baseline.txt
  • config/owner-routing-baseline.txt
  • src/renderer/src/store/repos/all-host-repo-catalog-actions.ts
  • src/renderer/src/store/repos/repo-catalog-actions.ts
  • src/renderer/src/store/repos/runtime-repo-catalog-actions.ts


💤 Files with no reviewable changes (1)
  • config/owner-routing-baseline.txt


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




📝 Walkthrough
📝 Walkthrough

Walkthrough

Git and repository workflows now pass explicit runtime targets instead of deriving routing from active-runtime settings. Targets come from the relevant file, worktree, workspace, or repository owner. Runtime Git contexts separate routing targets from generation preferences. The changes also update source-control, review-generation, worktree metadata, lineage, and repository-sync flows, along with their tests and routing baselines.



Priority: ➖ Normal

Merge Risk: 🔵 Low · up to 92a03

Copy Remote URL silently does nothing when file ownership cannot be resolved. This affects a narrow workflow, and refreshing the workspace and retrying is a bounded workaround; the remaining risk is low.

Pre-merge checks | Passed 3 | Failed 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check Warning The description is detailed and covers the change, rationale, testing, visual proof, compatibility notes, and checklist. It does not provide the required linked issue and leaves some required checklis… Add an actual issue link under “Fixes #”, or confirm that the author is a maintainer covered by the template exception. Update the remaining checklist items or explain why they do not apply.
Docstring Coverage Warning Docstring coverage is 24.56% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 57 functions across 57 files. (1 skipped:… Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check Passed The title clearly and concisely describes the primary change: Git calls now route by the worktree owner.
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.


Full details: Description check

Explanation

The description is detailed and covers the change, rationale, testing, visual proof, compatibility notes, and checklist. It does not provide the required linked issue and leaves some required checklist items unchecked.



Full details: Docstring Coverage

Explanation

Docstring coverage is 24.56% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 57 functions across 57 files. (1 skipped: 1 unsupported.)




✨ Finishing Touches 💡 2
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR










🛠️ Fix failing CI checks 💡
  • Commit to this branch
  • Create a new PR

  • 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

Comment @coderabbitai help to get the list of available commands.

@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/renderer/src/store/slices/worktrees/metadata/update-worktree-meta.ts (1)

275-275: 🎯 Functional Correctness | 🔵 Trivial | 💤 Low value

runtimeTargetForWorktreeOwner throws outside the { ok, error } contract.

Line 275 evaluates runtimeTargetForWorktreeOwner(get(), worktreeId, executionHostId) inside the try. The catch handles it, so the function still returns { ok: false, error }. The failure is only reported after the optimistic set has been applied. The catch then refetches worktrees to revert it. This is acceptable. However, the catch logs the ambiguity error with console.error('Failed to update worktree meta:'). Consider resolving the owner target before the optimistic set. The update would then fail fast without a write or revert flicker.


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2dc434da-0f8d-469e-bf3d-a145be2b6e5a
📥 Commits

Reviewing files that changed from the base of the PR and between 7de3710 and 2f8b06523186d2868cec817eae978d5e20792eb3.

📒 Files selected for processing (145)
  • config/focus-setting-read-baseline.txt
  • config/owner-routing-baseline.txt
  • src/renderer/src/components/editor/MonacoGutterContextMenu.tsx
  • src/renderer/src/components/editor/combined-diff/load-sections/fetch-combined-diff-section.ts
  • src/renderer/src/components/editor/editor-file-git-target.ts
  • src/renderer/src/components/editor/useEditorPanelContentState.test.tsx
  • src/renderer/src/components/editor/useEditorPanelDiffContentLoader.ts
  • src/renderer/src/components/editor/useEditorPanelVisibilityContentState.test.tsx
  • src/renderer/src/components/native-chat/native-chat-session-option-discovery.test.ts
  • src/renderer/src/components/native-chat/native-chat-session-option-discovery.ts
  • src/renderer/src/components/native-chat/native-chat-session-option-enrichment.test.ts
  • src/renderer/src/components/right-sidebar/SourceControl.commit-generation-records.test.ts
  • src/renderer/src/components/right-sidebar/SourceControl.pr-generation-records.test.ts
  • src/renderer/src/components/right-sidebar/SourceControl.preview-open.test.tsx
  • src/renderer/src/components/right-sidebar/checks-panel/manual-refresh-dependencies.ts
  • src/renderer/src/components/right-sidebar/checks-panel/review-state-dependencies.ts
  • src/renderer/src/components/right-sidebar/checks-panel/use-checks-panel-branch-actions.tsx
  • src/renderer/src/components/right-sidebar/checks-panel/use-checks-panel-composer-state.tsx
  • src/renderer/src/components/right-sidebar/checks-panel/use-checks-panel-controller-state.tsx
  • src/renderer/src/components/right-sidebar/checks-panel/use-checks-panel-generation.test.tsx
  • src/renderer/src/components/right-sidebar/checks-panel/use-checks-panel-generation.tsx
  • src/renderer/src/components/right-sidebar/checks-panel/use-checks-panel-git-status-effects.test.tsx
  • src/renderer/src/components/right-sidebar/checks-panel/use-checks-panel-git-status-effects.tsx
  • src/renderer/src/components/right-sidebar/checks-panel/use-checks-panel-manual-refresh.test.tsx
  • src/renderer/src/components/right-sidebar/checks-panel/use-checks-panel-manual-refresh.tsx
  • src/renderer/src/components/right-sidebar/checks-panel/use-checks-panel-review-state.tsx
  • src/renderer/src/components/right-sidebar/create-pull-request-dialog-field-model.ts
  • src/renderer/src/components/right-sidebar/git-status-refresh-branch-line-total.test.ts
  • src/renderer/src/components/right-sidebar/git-status-refresh.test.ts
  • src/renderer/src/components/right-sidebar/git-status-refresh.ts
  • src/renderer/src/components/right-sidebar/push-target-upstream-refresh-cache.test.ts
  • src/renderer/src/components/right-sidebar/push-target-upstream-refresh-cache.ts
  • src/renderer/src/components/right-sidebar/source-control/ai/controller-types.ts
  • src/renderer/src/components/right-sidebar/source-control/ai/use-ai.ts
  • src/renderer/src/components/right-sidebar/source-control/commit/discard-all-failure-description.test.tsx
  • src/renderer/src/components/right-sidebar/source-control/commit/source-control-discard-editor-owner.test.tsx
  • src/renderer/src/components/right-sidebar/source-control/commit/source-control-entry-mutation-failures.test.tsx
  • src/renderer/src/components/right-sidebar/source-control/commit/use-bulk-actions-capped-stage.test.tsx
  • src/renderer/src/components/right-sidebar/source-control/commit/use-bulk-actions.ts
  • src/renderer/src/components/right-sidebar/source-control/commit/use-commit-action.ts
  • src/renderer/src/components/right-sidebar/source-control/commit/use-commit-flows.ts
  • src/renderer/src/components/right-sidebar/source-control/commit/use-commit-message-generation.ts
  • src/renderer/src/components/right-sidebar/source-control/commit/use-discard-confirmation.ts
  • src/renderer/src/components/right-sidebar/source-control/commit/use-entry-mutations.ts
  • src/renderer/src/components/right-sidebar/source-control/listing/operation-target.ts
  • src/renderer/src/components/right-sidebar/source-control/listing/use-file-listing.ts
  • src/renderer/src/components/right-sidebar/source-control/listing/use-submodule-status.ts
  • src/renderer/src/components/right-sidebar/source-control/listing/use-worktree-context.ts
  • src/renderer/src/components/right-sidebar/source-control/panel/use-panel-foundation.ts
  • src/renderer/src/components/right-sidebar/source-control/panel/use-panel-model.ts
  • src/renderer/src/components/right-sidebar/source-control/panel/use-panel-state.ts
  • src/renderer/src/components/right-sidebar/source-control/review/create-pr-intent-run-snapshot.ts
  • src/renderer/src/components/right-sidebar/source-control/review/use-create-pr-intent-commit-message.ts
  • src/renderer/src/components/right-sidebar/source-control/review/use-create-pr-intent-flows.ts
  • src/renderer/src/components/right-sidebar/source-control/review/use-create-pr-intent-probes.ts
  • src/renderer/src/components/right-sidebar/source-control/review/use-create-pr-intent-review.ts
  • src/renderer/src/components/right-sidebar/source-control/review/use-create-pr-intent-target.ts
  • src/renderer/src/components/right-sidebar/source-control/review/use-create-review-composer.ts
  • src/renderer/src/components/right-sidebar/source-control/review/use-hosted-review-creation.test.tsx
  • src/renderer/src/components/right-sidebar/source-control/review/use-pull-request-generation.test.tsx
  • src/renderer/src/components/right-sidebar/source-control/review/use-pull-request-generation.ts
  • src/renderer/src/components/right-sidebar/source-control/review/use-review-context.ts
  • src/renderer/src/components/right-sidebar/source-control/review/use-review-flows.ts
  • src/renderer/src/components/right-sidebar/source-control/sync/use-branch-compare.ts
  • src/renderer/src/components/right-sidebar/source-control/sync/use-conflict-abort.ts
  • src/renderer/src/components/right-sidebar/source-control/sync/use-git-history-commit-actions.ts
  • src/renderer/src/components/right-sidebar/source-control/sync/use-git-history.ts
  • src/renderer/src/components/right-sidebar/source-control/sync/use-remote-action-runner.ts
  • src/renderer/src/components/right-sidebar/source-control/sync/use-status-refresh.local-ignore.test.tsx
  • src/renderer/src/components/right-sidebar/source-control/sync/use-status-refresh.ts
  • src/renderer/src/components/right-sidebar/source-control/sync/use-upstream-status-fetch.ts
  • src/renderer/src/components/right-sidebar/stale-conflict-operation-poll.ts
  • src/renderer/src/components/right-sidebar/use-create-pull-request-base-ref-discovery.ts
  • src/renderer/src/components/right-sidebar/use-create-pull-request-field-generation.ts
  • src/renderer/src/components/right-sidebar/use-file-explorer-ignored-paths.ts
  • src/renderer/src/components/right-sidebar/use-git-status-upstream-ref-watch.test.ts
  • src/renderer/src/components/right-sidebar/use-git-status-upstream-ref-watch.ts
  • src/renderer/src/components/right-sidebar/use-source-control-ai.test.ts
  • src/renderer/src/components/right-sidebar/use-source-control-branch-compare.test.tsx
  • src/renderer/src/components/right-sidebar/use-source-control-git-history.test.tsx
  • src/renderer/src/components/right-sidebar/useCreatePullRequestDialogFields.repo-default.test.ts
  • src/renderer/src/components/right-sidebar/useCreatePullRequestDialogFields.test.ts
  • src/renderer/src/components/right-sidebar/useCreatePullRequestDialogFields.ts
  • src/renderer/src/components/right-sidebar/useFileExplorerVisibleRowProjection.debounce.test.tsx
  • src/renderer/src/components/right-sidebar/useGitStatusPolling.test.ts
  • src/renderer/src/components/right-sidebar/useGitStatusPolling.ts
  • src/renderer/src/components/right-sidebar/useSourceControlSubmoduleStatus.test.tsx
  • src/renderer/src/components/right-sidebar/worktree-git-owner-target.ts
  • src/renderer/src/components/settings/CommitMessageAiPane.test.tsx
  • src/renderer/src/components/settings/CommitMessageAiPane.tsx
  • src/renderer/src/components/settings/RepositoryForkSyncSection.tsx
  • src/renderer/src/components/sidebar/use-delete-worktree-status-hydration.ts
  • src/renderer/src/components/status-bar/use-workspace-space-git-refresh-action.ts
  • src/renderer/src/hooks/composer-state/github-provider-selection.ts
  • src/renderer/src/hooks/composer-state/github-submit-resolution.ts
  • src/renderer/src/lib/github-pr-start-point.test.ts
  • src/renderer/src/lib/github-pr-start-point.ts
  • src/renderer/src/lib/launch-work-item-direct-preflight.ts
  • src/renderer/src/lib/launch-work-item-direct.ts
  • src/renderer/src/runtime/antigravity-generation-compatibility.test.ts
  • src/renderer/src/runtime/antigravity-generation-compatibility.ts
  • src/renderer/src/runtime/runtime-git-client-branch-line-total.test.ts
  • src/renderer/src/runtime/runtime-git-client-context.ts
  • src/renderer/src/runtime/runtime-git-client-merge.test.ts
  • src/renderer/src/runtime/runtime-git-client.test.ts
  • src/renderer/src/runtime/runtime-git-diff-client.ts
  • src/renderer/src/runtime/runtime-git-generation-client.ts
  • src/renderer/src/runtime/runtime-git-status-client.ts
  • src/renderer/src/runtime/runtime-git-sync-client.ts
  • src/renderer/src/runtime/runtime-git-working-tree-client.ts
  • src/renderer/src/runtime/runtime-git-worktree-scope-client.test.ts
  • src/renderer/src/store/repos/all-host-repo-catalog-actions.ts
  • src/renderer/src/store/repos/repo-catalog-actions.ts
  • src/renderer/src/store/repos/runtime-repo-catalog-actions.ts
  • src/renderer/src/store/repos/safe-auto-fork-sync.test.ts
  • src/renderer/src/store/repos/safe-auto-fork-sync.ts
  • src/renderer/src/store/slices/commit-message-generation.ts
  • src/renderer/src/store/slices/diff-comment-persistence.ts
  • src/renderer/src/store/slices/diffComments.test.ts
  • src/renderer/src/store/slices/editor-remote-branch-actions.test.ts
  • src/renderer/src/store/slices/editor/actions/git-operation-target.ts
  • src/renderer/src/store/slices/editor/actions/git-remote-push-pull.ts
  • src/renderer/src/store/slices/editor/actions/git-remote-status.ts
  • src/renderer/src/store/slices/editor/actions/git-remote-sync.ts
  • src/renderer/src/store/slices/editor/types/git-runtime-operation.ts
  • src/renderer/src/store/slices/generation-records-worktree-removal-leak.test.ts
  • src/renderer/src/store/slices/pull-request-generation.ts
  • src/renderer/src/store/slices/worktrees-activity-persistence.test.ts
  • src/renderer/src/store/slices/worktrees-lineage-state.test.ts
  • src/renderer/src/store/slices/worktrees-linked-review-push-target.test.ts
  • src/renderer/src/store/slices/worktrees-metadata-persistence.test.ts
  • src/renderer/src/store/slices/worktrees/listing/fetch-worktrees.ts
  • src/renderer/src/store/slices/worktrees/listing/worktree-owner-settings.ts
  • src/renderer/src/store/slices/worktrees/listing/worktree-owner-target.ts
  • src/renderer/src/store/slices/worktrees/listing/worktree-slice-types.ts
  • src/renderer/src/store/slices/worktrees/metadata/hosted-review-push-target-ensure.ts
  • src/renderer/src/store/slices/worktrees/metadata/hosted-review-push-target.ts
  • src/renderer/src/store/slices/worktrees/metadata/update-worktree-meta.ts
  • src/renderer/src/store/slices/worktrees/metadata/update-worktrees-meta.ts
  • src/renderer/src/store/slices/worktrees/metadata/worktree-git-identity-update.ts
  • src/renderer/src/store/slices/worktrees/metadata/worktree-lineage-actions.ts
  • src/renderer/src/store/slices/worktrees/metadata/worktree-lineage-refresh.ts
  • src/renderer/src/store/slices/worktrees/metadata/worktree-meta-persist.test.ts
  • src/renderer/src/store/slices/worktrees/metadata/worktree-meta-persist.ts
  • src/renderer/src/store/slices/worktrees/session/worktree-unread-activity.ts
💤 Files with no reviewable changes (1)
  • config/owner-routing-baseline.txt

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 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
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 92d34304-2371-4560-8c53-9c208e1e32f9
📥 Commits

Reviewing files that changed from the base of the PR and between 2f8b06523186d2868cec817eae978d5e20792eb3 and 1326f68ef641aa2308da373c679f309119b4812c.

📒 Files selected for processing (5)
  • config/focus-setting-read-baseline.txt
  • config/owner-routing-baseline.txt
  • src/renderer/src/components/editor/MonacoGutterContextMenu.tsx
  • src/renderer/src/components/editor/combined-diff/load-sections/fetch-combined-diff-section.ts
  • src/renderer/src/components/editor/useEditorPanelDiffContentLoader.ts
💤 Files with no reviewable changes (1)
  • config/owner-routing-baseline.txt
🚧 Files skipped from review as they are similar to previous changes (1)
  • config/focus-setting-read-baseline.txt

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

Comment on lines +82 to +84
if (!target) {
return
}

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.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Show the unresolved-owner message for Copy Remote URL.

If target is null, this action returns without feedback. The user cannot tell why the URL was not copied. Show “The workspace host is unresolved. Refresh the workspace and retry.” before returning. This also satisfies the PR’s stated behavior for unresolved-owner user actions.

@OrcaWin
OrcaWin force-pushed the OrcaWin/d4-g1-git branch 2 times, most recently from a19e73a to 8c9ddd4 Compare October 10, 2026 19:45
m4air added 2 commits October 10, 2026 12:58
RuntimeGitContext carries the owner's transport (target) instead of a
settings object, so raw focus settings no longer compile at a git call.
Source control, the checks panel, diff loaders, fork sync, lineage,
worktree metadata, review push targets and diff-comment persistence derive
it from the repo or worktree rows (resolveOwner) or a captured owner.
Editor-slice remote actions take an explicit runtimeTarget and otherwise
resolve the worktree owner; an unresolved owner is refused, never sent to
the focused server. Generation preferences ride a separate prefs field.
A fresh target literal per render re-ran base-ref discovery forever and ran the
test worker out of memory.
@OrcaWin
OrcaWin merged commit 853c25d into main Oct 10, 2026
49 of 51 checks passed
ggbdpq added a commit to ggbdpq/orca that referenced this pull request Oct 25, 2026
Rebase adaptation for stablyai#27291: the runtime settings payload was replaced by
worktree git owner targets, and file-explorer-runtime-owner was removed.
The lane identity now keys on the resolved owner target (local vs env id)
instead of activeRuntimeEnvironmentId, and the query guard from upstream
(unresolved target skips the request) is preserved inside the coalescing
request. Test mocks follow the new module.
ggbdpq added a commit to ggbdpq/orca that referenced this pull request Nov 5, 2026
Rebase adaptation for stablyai#27291: the runtime settings payload was replaced by
worktree git owner targets, and file-explorer-runtime-owner was removed.
The lane identity now keys on the resolved owner target (local vs env id)
instead of activeRuntimeEnvironmentId, and the query guard from upstream
(unresolved target skips the request) is preserved inside the coalescing
request. Test mocks follow the new module.
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.

1 participant