Skip to content

[P1] fix(routing): keep the paired-HUB owner for the active workspace selection - #11818

Merged
nwparker merged 2 commits into
mainfrom
nwparker/fix-paired-hub-active-workspace-routing
Jul 31, 2026
Merged

nwparker merged 2 commits into
mainfrom
nwparker/fix-paired-hub-active-workspace-routing

Conversation

@nwparker

@nwparker nwparker commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Both P1s from the v1.4.163-rc.1..v1.4.163-rc.3 production release scan. Both are regressions introduced by #11346 (60d2493bbb), both live in the same topology, and neither is survivable alone — so they ship together.

The topology. A project reached through a paired runtime HUB has two owners at once. withRepoHostOwnership says so in as many words (src/renderer/src/store/slices/worktrees.ts:423):

// Why: an SSH worktree reached through a paired HUB has two owners; retain the SSH execution host and stamp the HUB transport separately.
const nextHostId =
  hostId === LOCAL_EXECUTION_HOST_ID ||
  (runtimeOwnerEnvironmentId !== undefined && worktreeHost?.kind === 'ssh')
    ? worktree.hostId
    : hostId

So the worktree carries hostId: ssh:<target> and runtimeOwnerEnvironmentId: <hub>, while its repo row stays runtime:<hub>. And activation stamps the worktree's host onto the store (src/renderer/src/components/sidebar/WorktreeCard.tsx:876):

void activateWorktreeFromSidebar(
  worktree.id,
  worktree.hostId ?? (repo ? getRepoExecutionHostId(repo) : undefined)
)

which lands in activeWorkspaceExecutionHostId at worktrees.ts:5412. So for this one topology, activeWorkspaceExecutionHostId is ssh:<target> while the repo is runtime:<hub> — by design. #11346 added two short-circuits that both assume they can't diverge.

Local-only and runtime-only topologies are unaffected by either bug.

P1-1 — the active workspace loses its HUB transport

resolveWorktreeOperationRouteResult short-circuits on the active host selection before any owner lookup happens (worktree-operation-route.ts:137-149 on origin/main):

const activeHost =
  state.activeWorktreeId === worktreeId
    ? parseExecutionHostId(state.activeWorkspaceExecutionHostId)
    : null
if (activeHost) {
  return {
    kind: 'resolved',
    route: {
      executionHostId: activeHost.id,
      runtimeEnvironmentId: activeHost.kind === 'runtime' ? activeHost.environmentId : null
    }
  }
}

The branch has no access to the owner record at all — only the parsed host id — so runtimeOwnerEnvironmentId is structurally unreachable from it. An ssh: selection therefore always yields runtimeEnvironmentId: null, and the whole HUB-recovery path in resolveExactWorktreeRoute (which exists precisely to recover it) is skipped. Every owner-routed terminal, git, and filesystem operation on the active workspace loses the HUB that proxies the SSH target. The same short-circuit is duplicated in getRuntimeEnvironmentIdForWorktree and getExplicitRuntimeEnvironmentIdForWorktree.

P1-2 — the active repo reads as null, and git status polling stops

selectRepoByIdForActiveWorkspace filters state.repos by the selected host with no fallback (selectors.ts:181-193 on origin/main):

if (repoId === state.activeRepoId && state.activeWorkspaceExecutionHostId) {
  return (
    state.repos.find(
      (repo) =>
        repo.id === repoId &&
        getRepoExecutionHostId(repo) === state.activeWorkspaceExecutionHostId
    ) ?? null                        // ← no fallback
  )
}

For the paired-hub topology the selected host is ssh:<target> and the repo row is runtime:<hub>, so the find misses and the active repo is null. That this is a regression is not an inference — git show 60d2493bbb -- src/renderer/src/store/selectors.ts shows both selectors were unconditional lookups before:

export const useActiveRepo = () =>
  useAppStore(useShallow((s) => s.repos.find((r) => r.id === s.activeRepoId) ?? null))
export const useRepoById = (repoId: string | null) =>
  useAppStore((s) => (repoId ? (getCachedRepoMap(s.repos).get(repoId) ?? null) : null))

useRepoById is what useGitStatusPolling gates on (useGitStatusPolling.ts:61-82):

const activeRepo = useRepoById(activeRepoId)
const activeRepoSupportsGit = activeRepo ? isGitRepoKind(activeRepo) : false
...
const canFetchActiveWorktreeGitStatus =
  enabled && !!activeWorktreeId && !!worktreePath && activeRepoSupportsGit && ...

A null repo silently switches off git status polling for the entire workspace. Fourteen non-test modules read useRepoById/useActiveRepo.

Fix

  • worktree-operation-route.ts — the active-host branch becomes resolveActiveWorkspaceRoute. The host selection stays authoritative for identity; the HUB owner is recovered from the owner rows sitting on that host, via the existing resolveExactWorktreeRoute. Where rival HUBs project the same SSH host, the transport is dropped to null rather than guessed — the host selection genuinely cannot disambiguate them.
  • worktree-runtime-owner.ts — both duplicated short-circuits now call resolveActiveWorkspaceRoute, so the three entry points cannot drift apart again.
  • selectors.ts — host-exact match still wins. On a miss, exactly one hole opens in fix: route server project adds to selected runtime #11346's fail-closed rule: an ssh: selection over a runtime: repo row, which is the paired-hub shape and nothing else. Every other host mismatch still returns null.
  • worktree-owner-route.ts — a pure extraction of routeForOwner / addRoute / resolveExactWorktreeRoute / resolveRepoRouteForSshOwner. No behavior moved with it; the functions are byte-identical to their previous bodies.

ELI5

Some projects live on a machine you can't reach directly. Orca gets there by going through a second machine — a "hub" — the way you'd SSH through a bastion. So the project has two addresses at once: where it is (the target) and how you get there (the hub).

A recent change taught Orca to remember which host the workspace you're looking at is on, so that two projects with the same ID on two different machines don't get confused. Good idea. But it only remembered the first of those two addresses — where the project is — and threw away the second — how to get there.

Two things broke, both only for hub-routed projects:

  1. Orca knew where your files were but not how to reach them. Every terminal, every git command, every file read on the workspace you were actually looking at went out without the hub. As soon as you clicked away to another workspace, the same operations worked again — because the "remember the active host" shortcut only applies to the active one.
  2. Orca decided your project didn't exist. It looked for a project registered at the target address, but the project is registered at the hub's address, so it found nothing and returned "no project". Everything downstream that asks "is there a repo here?" got told no — including the thing that refreshes your git status, which just quietly stopped.

This PR keeps the "remember the active host" idea intact and adds back the second address, by looking it up from the workspace's own record instead of trying to read it out of the host name — where it was never stored. When two different hubs both claim the same target and Orca genuinely can't tell which one you meant, it says so by returning nothing rather than picking one.

Screenshots

None. Neither defect renders. P1-1 is a routing argument on IPC calls; P1-2 is a selector returning null, whose visible effect is the absence of a git-status refresh. Reproducing either on screen needs a live paired-HUB runtime plus an SSH target behind it, which is not something this workstation can stand up — and a screenshot of a sidebar that looks normal but has stopped polling would be evidence of nothing.

The behavior is pinned by assertions on the literal resolved routes instead, reproduced below.

Proof of fix

With only the four production files reverted to origin/main and every test kept, npx vitest run --config config/vitest.config.ts over the five affected suites:

       × keeps the HUB transport when the paired SSH worktree is the active workspace 3ms
       × recovers the HUB transport from the repo for an active mixed-version SSH publication 1ms
     × keeps the HUB transport for the active paired SSH worktree 2ms
     × keeps the repo when a paired-hub worktree reports a different execution host 2ms

AssertionError: expected { kind: 'resolved', route: { …(2) } } to deeply equal { kind: 'resolved', route: { …(2) } }
AssertionError: expected { kind: 'resolved', route: { …(2) } } to deeply equal { kind: 'resolved', route: { …(2) } }
AssertionError: expected null to be 'hub-a' // Object.is equality
AssertionError: expected null to be { badgeColor: '#737373', …(6) } // Object.is equality

 Test Files  3 failed | 2 passed (5)
      Tests  4 failed | 75 passed (79)

Each defect reproduces as a distinct assertion: the two route resolutions and expected null to be 'hub-a' are P1-1 across its three entry points; expected null to be { badgeColor … } is P1-2 — the selector returning null where the repo object belongs.

With the fix restored: 5 files / 79 tests passed.

New coverage:

Test Pins
keeps the HUB transport when the paired SSH worktree is the active workspace P1-1, owner row carries runtimeOwnerEnvironmentId
recovers the HUB transport from the repo for an active mixed-version SSH publication P1-1 via the repo-setup recovery path, for runtimes that publish no owner field
keeps the selected host authoritative when the same ID exists on two hosts #11346's actual purpose — not weakened
drops the HUB transport when two HUBs project the active SSH worktree the deliberate ambiguity bail-out
keeps an unknown active worktree on its selected host no owner rows at all still resolves
keeps the HUB transport for the active paired SSH worktree P1-1 through worktree-runtime-owner's two entry points
keeps the repo when a paired-hub worktree reports a different execution host P1-2, including the exact useGitStatusPolling gate expression
still prefers the host-matching row when one repo ID spans hosts host-exact match still wins
keeps every non-paired-hub host mismatch failing closed the new hole is only ssh-over-runtime

Proof of no regression

  • fix: route server project adds to selected runtime #11346's own test suites are unmodified and still pass. selected-host-active-workspace-identity.test.ts and repos-selected-owner-routing.test.ts are untouched by this PR.
  • The one test that asserts the old null — does not fall back to a same-ID local repo when the active runtime row is absent (selectors.test.ts:266) — is unmodified and still passes. It is the reason the selector fix is a narrow exemption rather than a revert: a local row shadowing an absent runtime row must still fail closed.
  • Full desktop suite on this branch: 4013 files / 42515 tests passed (12 files / 77 tests skipped, exit 0).
  • pnpm typecheck — clean (tsc: node + cli + web).
  • oxfmt --check and oxlint clean; no max-lines disable added, and worktree-operation-route.ts is net −7 lines after the extraction.

Behavior changes beyond the two bugs — disclosed

  1. A local active selection is now an explicit early return rather than falling into the owner scan. It resolves identically ({ executionHostId: 'local', runtimeEnvironmentId: null }), and this keeps the hot path O(1) — only an ssh: selection can hide a paired HUB owner, so only ssh: pays for the lookup.
  2. Rival HUBs projecting the same SSH host now resolve to runtimeEnvironmentId: null instead of picking one. Previously the active-host branch also produced null here, so this is not a change in outcome — but it is now a deliberate, tested decision rather than a side effect of never looking.
  3. WorktreeOperationOwnerRecord and WorktreeOperationRouteState are now exported so the extracted module can type against them. Type-only; no runtime surface.

Testing

  • pnpm lint — clean (oxlint, native + type-aware code-quality audits, reliability-gate manifest, max-lines ratchet, bundled skill guides, skill-bundle manifest, localization catalog/extraction/coverage); oxfmt clean via lint-staged
  • pnpm typecheck — clean (tsc: node + cli + web)
  • pnpm test — five affected suites at tip (79 passed) plus the full desktop suite
  • fix: route server project adds to selected runtime #11346's own reliability gate — run, both projects, both pass. pnpm run ensure:electron-runtime && npx playwright test tests/e2e/pr11346-selected-runtime-add.spec.ts --config tests/playwright.config.ts --project <p> --workers=1 --reporter=line:
    • electron-headless → routes … in hidden-window desktop parity — 1 passed (22.3s)
    • electron-headful → routes every Add Project path to a selected non-default headed runtime @headful — 1 passed (21.1s)
  • pnpm build — not run; no build-graph, packaging, or dependency change
  • Added or updated high-quality tests that would catch regressions

AI Review Report

Reviewed by Claude Opus 5 as part of a 45-agent release scan with adversarial refutation, then re-verified against origin/main before any code was written. Risks checked:

  • Is fix: route server project adds to selected runtime #11346 weakened? No. Its purpose — the same repo/worktree ID existing on two hosts must not resolve to the wrong one — is preserved and newly tested from both directions (keeps the selected host authoritative when the same ID exists on two hosts, still prefers the host-matching row when one repo ID spans hosts). The selected host still decides identity; only the transport is recovered separately, and only for the one shape where identity provably cannot carry it.
  • Symmetry with the worktree side — checked, and it cut against the first draft of this argument. findKnownWorktreeById (worktrees.ts:826-873) also fails closed on host mismatch rather than falling back host-agnostically. So the repo selector was consistent with the worktree lookup, not an outlier; the fix is justified by the paired-hub topology being real, not by an inconsistency. Stating that plainly because the opposite would have been a stronger-sounding and wrong argument.
  • Reliability gate. fix: route server project adds to selected runtime #11346 registered a blocking Playwright gate (config/reliability-gates.jsonc:2244-2449, headful + headless) over exactly this behavior, and it reads activeWorkspaceExecutionHostId directly at three points. pnpm run check:reliability-gates is only a manifest schema validator, so pnpm lint does not re-run it. Both gate projects were therefore run deliberately for this PR, and both pass — see the testing checklist.
  • SSH: this PR is about the SSH case. The bug does not exist for local or runtime-only topologies.
  • Folder workspaces: the folder branch sits after the active-host short-circuit and is unchanged. Folder workspaces set activeRepoId: null on activation (worktrees.ts:5592), so the selector's active branch never applies to them.
  • Provider neutrality / Git version / cross-platform: no git command, provider API, path, or keyboard handling is touched. This is store-level routing resolution.
  • Perf: the added owner scan is gated to ssh: selections; local and runtime: return in constant time as before. The non-active path already did a full-catalog scan (worktree-operation-route.ts:133-139), so the scan shape is not new to this module.

Security Audit

  • No new dependencies, no lockfile change, no install hooks.
  • No shell execution, no eval, no path construction, no auth, no secrets, no IPC surface added.
  • The change widens which host a routed operation can target, so that was checked directly. It cannot broaden the execution host: executionHostId is still taken verbatim from the active selection in every branch. Only runtimeEnvironmentId — the HUB transport — is added, and only from an owner row whose own hostId already parses to the selected host. A row on a different host cannot contribute one.
  • The ambiguity bail-out is the security-relevant case, and it fails closed: when two HUBs claim the same SSH host, the transport is dropped rather than resolved to whichever row was scanned first. Picking one would mean routing a user's terminal through a HUB they did not select.
  • The selector fix returns an existing Repo object from the store or null; it constructs nothing and grants no capability the store did not already hold.

Notes

  • These ship together on purpose. Fixing only P1-1 leaves the workspace with no repo, so git status stays dead; fixing only P1-2 leaves every operation on that repo missing its HUB. A reviewer needs both to judge whether the topology is handled.
  • Both are P1 rather than P0 because they are confined to the paired-HUB-over-SSH topology and are escapable by switching to another workspace and back — the short-circuits only apply to the active one, so the non-active paths still resolve correctly today.

Made with Orca 🐋

… selection

#11346 made `activeWorkspaceExecutionHostId` authoritative for the active
workspace, but the short-circuits that read it never see the owner record, so a
project reached through a paired runtime HUB (`hostId: ssh:<target>` plus
`runtimeOwnerEnvironmentId: <hub>`) loses its transport and its repo:

- `resolveWorktreeOperationRouteResult` returned `runtimeEnvironmentId: null`
  for any non-`runtime:` selection, bypassing the HUB recovery in
  `resolveExactWorktreeRoute` — every owner-routed terminal/git/filesystem
  operation on the active workspace lost the HUB that proxies the SSH target.
- `selectRepoByIdForActiveWorkspace` filtered `state.repos` by the selected host
  with no fallback, but `withRepoHostOwnership` deliberately keeps the SSH host
  on the worktree while the repo row stays HUB-owned — so the active repo read
  as `null` and `useGitStatusPolling` stopped polling the whole workspace.

Route resolution now recovers the HUB owner from the owner rows on the selected
host, and drops it only when rival HUBs project the same host. The repo selector
opens exactly one hole in #11346's fail-closed rule — an `ssh:` selection over a
`runtime:` repo row — and every other host mismatch still returns `null`.

`worktree-owner-route.ts` is a pure extraction of the existing owner-route
helpers; no behavior moved with it.
@greptile-apps

greptile-apps Bot commented Jul 31, 2026 •

Copy link
Copy Markdown

Greptile Summary

Fixes two regressions from #11346 that affect projects reached through a paired-HUB (SSH target proxied via a runtime HUB). The active-workspace short-circuit introduced by #11346 never had access to the runtimeOwnerEnvironmentId on the worktree owner record, causing every IPC operation on the active workspace to lose its HUB transport and causing the active repo selector to return null (silently stopping git-status polling).

  • P1-1 (worktree-operation-route.ts, worktree-runtime-owner.ts): Replaces the bare parseExecutionHostId short-circuit with resolveActiveWorkspaceRoute, which keeps the selected host authoritative for identity but recovers the HUB transport from matching owner rows for ssh: selections. Rival-HUB ambiguity fails closed (runtimeEnvironmentId: null) rather than picking one.
  • P1-2 (selectors.ts): selectRepoByIdForActiveWorkspace retains the host-exact match as the primary path, then opens a single narrow exemption — ssh: active host over a runtime: repo row — which is precisely the paired-hub shape; all other mismatches still return null.
  • worktree-owner-route.ts: Pure extraction of routeForOwner / addRoute / resolveExactWorktreeRoute / resolveRepoRouteForSshOwner to break the import cycle and avoid duplicating resolveExactWorktreeRoute in both callers.

Confidence Score: 5/5

Safe to merge — the changes are narrowly targeted to the paired-HUB topology and leave local and runtime-only paths untouched.

Both routing fixes are tightly scoped: the active-workspace route now recovers the HUB environment ID from owner records rather than discarding it, and the repo selector opens exactly one new fallback path (ssh-selection over a runtime repo row) while keeping every other mismatch closed. New test coverage pins the two regressions, the rival-HUB ambiguity bail-out, and the non-regression cases from #11346. The full desktop suite passes with no IPC surface, no new dependencies, and no auth or path construction touched.

Files Needing Attention: No files require special attention. The selector change in selectors.ts is the most subtle (a new fallback branch inside a hot React selector), but it is directly tested and the exemption condition is narrow enough to be auditable by inspection.

Important Files Changed

Filename Overview
src/renderer/src/lib/worktree-operation-route.ts Core fix: new resolveActiveWorkspaceRoute correctly handles local/runtime/ssh host kinds — ssh: scans owner records to recover the HUB environment ID, deduplicates with a Set, and fails closed when multiple HUBs project the same SSH host.
src/renderer/src/lib/worktree-owner-route.ts New file; byte-identical extraction of routeForOwner, addRoute, resolveExactWorktreeRoute, and resolveRepoRouteForSshOwner from worktree-operation-route.ts. Type-only circular import is safe at runtime.
src/renderer/src/lib/worktree-runtime-owner.ts Both getRuntimeEnvironmentIdForWorktree and getExplicitRuntimeEnvironmentIdForWorktree now call resolveActiveWorkspaceRoute instead of bare parseExecutionHostId; the three entry points can no longer drift apart.
src/renderer/src/store/selectors.ts Host-exact match preserved as primary path; narrow paired-hub exemption (ssh: active host + exactly one runtime: repo candidate) correctly handles the topology without widening any other mismatch.
src/renderer/src/lib/worktree-operation-route.test.ts Five new tests cover the active-workspace branch: HUB transport recovery, mixed-version repo recovery, selected-host authority, rival-HUB ambiguity bail-out, and unknown-worktree passthrough.
src/renderer/src/lib/worktree-runtime-owner.test.ts Two new tests verify both runtime-environment-id functions return hub-a for the paired-hub topology, and that getExecutionHostIdForWorktree still returns the SSH host.
src/renderer/src/store/selectors.test.ts Four new selector tests: paired-hub repo recovery, rival-HUB ambiguity closes the selector, host-exact match still wins when one ID spans hosts, and non-paired-hub mismatches all return null.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A["resolveWorktreeOperationRouteResult(state, worktreeId)"] --> B["resolveActiveWorkspaceRoute(state, worktreeId)"]
    B --> C{activeWorktreeId === worktreeId?}
    C -- No --> D["return null (fall through to regular path)"]
    C -- Yes --> E["parseExecutionHostId(activeWorkspaceExecutionHostId)"]
    E --> F{host kind?}
    F -- runtime --> G["return executionHostId + runtimeEnvironmentId"]
    F -- local/other --> H["return executionHostId + null"]
    F -- ssh --> I["ownerRecordsOnHost(state, worktreeId, activeHost.id)"]
    I --> J["for each owner: resolveExactWorktreeRoute"]
    J --> K{collect unique environmentIds}
    K -- exactly 1 --> L["return ssh host + hubId"]
    K -- 0 or more than 1 --> M["return ssh host + null (fail closed)"]
    D --> N["folder workspace or resolveExplicitWorktreeOperationRouteResult"]
    style G fill:#c8f7c5
    style L fill:#c8f7c5
    style H fill:#c8f7c5
    style M fill:#f7e6c5
    style D fill:#e8e8e8
Loading

Reviews (2): Last reviewed commit: "fix(routing): fail ambiguous paired-HUB ..." | Re-trigger Greptile

@coderabbitai

coderabbitai Bot commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: f61b8861-4656-4652-908f-181fdb29e113

📥 Commits

Reviewing files that changed from the base of the PR and between de009e0 and 1242f33.

📒 Files selected for processing (2)
  • src/renderer/src/store/selectors.test.ts
  • src/renderer/src/store/selectors.ts
🚧 Files skipped from review as they are similar to previous changes (2)
  • src/renderer/src/store/selectors.ts
  • src/renderer/src/store/selectors.test.ts

📝 Walkthrough

Walkthrough

Worktree routing now uses shared owner-route utilities for direct and SSH repository resolution. Active workspace routing preserves the selected execution host and recovers a unique HUB runtime environment when available. Runtime-owner lookups use the resolved active route. Repository selection prefers matching hosts, permits paired HUB SSH/runtime mismatches, and rejects unrelated mismatches. Tests cover these routing, ambiguity, fallback, runtime-owner, and repository-selection cases.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the paired-HUB routing fix for active workspace selection.
Description check ✅ Passed The description covers the summary, testing, AI review, security audit, screenshots, and platform notes with detailed evidence.
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.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch

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.

@nwparker
nwparker merged commit 90963f8 into main Jul 31, 2026
42 checks passed
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
… selection (stablyai#11818)

* [P1] fix(routing): keep the paired-HUB owner for the active workspace selection

stablyai#11346 made `activeWorkspaceExecutionHostId` authoritative for the active
workspace, but the short-circuits that read it never see the owner record, so a
project reached through a paired runtime HUB (`hostId: ssh:<target>` plus
`runtimeOwnerEnvironmentId: <hub>`) loses its transport and its repo:

- `resolveWorktreeOperationRouteResult` returned `runtimeEnvironmentId: null`
  for any non-`runtime:` selection, bypassing the HUB recovery in
  `resolveExactWorktreeRoute` — every owner-routed terminal/git/filesystem
  operation on the active workspace lost the HUB that proxies the SSH target.
- `selectRepoByIdForActiveWorkspace` filtered `state.repos` by the selected host
  with no fallback, but `withRepoHostOwnership` deliberately keeps the SSH host
  on the worktree while the repo row stays HUB-owned — so the active repo read
  as `null` and `useGitStatusPolling` stopped polling the whole workspace.

Route resolution now recovers the HUB owner from the owner rows on the selected
host, and drops it only when rival HUBs project the same host. The repo selector
opens exactly one hole in stablyai#11346's fail-closed rule — an `ssh:` selection over a
`runtime:` repo row — and every other host mismatch still returns `null`.

`worktree-owner-route.ts` is a pure extraction of the existing owner-route
helpers; no behavior moved with it.

* fix(routing): fail ambiguous paired-HUB repo selection closed
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