mirror of
https://github.com/stablyai/orca.git
synced 2026-11-19 04:23:57 +00:00
* fix(github): route runtime repo paths by execution host When a repo path is registered on both SSH and a paired runtime, path-only lookup could send the SSH-side repo ID to the runtime. Prefer the row owned by the target runtime, then retain the original first-path fallback. AI-Assisted: OpenAI Codex Signed-off-by: ethereal49 <hongyeluo49@gmail.com> * fix(github): resolve the runtime repo on the target host by the caller's repo id getRuntimeRepoTarget now takes the caller's repo identity and resolves the row through the repo lookup index, preferring the row on the target runtime with that id, then the row on that runtime for the path. This keeps the refresh sweep's repo reads linear (a per-call list scan broke that ratchet). Legacy rows with no host stamp still fall back to id-or-path lookup. Removes the test that pinned the off-host fallback; it asserted sending another host's repo id to the server. --------- Signed-off-by: ethereal49 <hongyeluo49@gmail.com> Co-authored-by: ethereal49 <hongyeluo49@gmail.com>