Repository navigation
fix(orchestration): name the current owner when a reused terminal's old dispatch is released - #67
Merged
Conversation
…ld dispatch is released
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
DoozyX
added a commit
that referenced
this pull request
Nov 23, 2026
Upstream origin/main 0b23e7a (388 commits) into fork main 6f98610. Accepted upstream's test-suite cut (stablyai#46786) and dead card components (stablyai#46833) on all 44 modify/delete conflicts. Fork-feature regression tests removed with it: - #63: federation-worker-brief-agent-in-front, orchestration-structured-worker-retry - #67: federated-release-safety, federated-transport-safety, worker-release - #69: worker-list-pagination - claude accounts: repo-update-host-guard, claude-session-account-move - git graph: hosted-review-creation-gitlab-self-hosted - passkeys: main-process-ready-persistence-cleanup - branch cleanup: remove-worktree-branch-cleanup, worktree-remove-branch-deletion, remove-worktree - test isolation: dependency-security-release Fork-only tests that imported upstream-deleted fixtures were removed too. Code conflicts keep both sides: - Claude background evidence helper now uses upstream's running-task map (stablyai#47081); status payload carries fork monitoredWork + upstream backgroundCommands. - Worker start: upstream bindTerminal/handOver split reads the re-minted pane handle from setupStage (#29/#61); fork deadline brief guard (#63) plus upstream abort checks in preamble delivery. - Status bar: fork per-account usage roster with upstream's unreachable-host gating (stablyai#42644); a null account owner now shows no roster instead of local accounts. - client-ui-params.ts: moved feature-interaction schemas to their own module to stay under max-lines with the fork's omp status-bar fields. Gates: install:release, mobile frozen install, pnpm tc, mobile typecheck and typecheck:tests, conflict-area tests (38 files), independent review (1 finding, fixed), check:changed vs fork parent (only finding: upstream's unchanged bot-run-results.test.ts casts).
Closed
DoozyX
added a commit
that referenced
this pull request
Nov 25, 2026
Merges stablyai/orca 752c757 (277 commits). Conflicts resolved by hand (independently reviewed, no defects): - Gemini CLI removal (stablyai#48447) vs fork omp usage provider: StatusBarItem moved to client-ui-status-bar-params with omp kept; fork-retained status-bar tests repointed from gemini to kimi. - Worker release custody (stablyai#42264) vs fork #67 ownership-transferred receipt fields: fields now spread on upstream's former-owner branch; retainedReason imported from its new presentation module. - Source Control scope menu (stablyai#44229) vs fork Git Graph ref rail, Branches & Tags and redesigned commit pane: upstream panel-content taken, Branches & Tags dock moved to panel-ready, fork use-git-graph-support replaced by upstream's hook, git-history-panel deleted with upstream. - Structured worker setup wait (stablyai#48202), agent row model chip (stablyai#48489), project badges (stablyai#48565/stablyai#48572) vs fork host badge, usage docs. - Open diff button extracted and mobile page package aliases moved into mobile-web-app-aliased-packages to stay under max-lines after the merge. - React Compiler baseline pruned. Claude-Session: https://claude.ai/code/session_01BPjp5xBHHzDpEqwBtKH8Ac
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ELI5
When a coordinator reuses one terminal for a follow-up worker, the terminal now belongs to the newest Dispatch. If the coordinator then releases the old Dispatch, Orca correctly refuses to close the terminal, but the answer just said "retained, ownership transferred" and never said who owns it. Now the answer names the Dispatch that owns the terminal and the exact command to run.
What Changed
Before:
worker-release --dispatch <old>on a reused terminal returnedretained/ownership_transferredwith no recovery text. The coordinator had to dig throughworker-showto find which Dispatch to release, and a retry after the new owner had already closed the terminal looked identical.After: that receipt also carries
currentOwnerDispatchId,terminalReleaseState, and, while the terminal is still open, arecoveryline:release that Dispatch instead: orca orchestration worker-release --dispatch <owner>. Once the owner has released, the fields stay but the recovery line is dropped. The CLI already printsrecoveryasnext, so no CLI change was needed.Mechanism: a new
ownershipTransferredReceiptFieldsinworker-terminal-resource-presentation.tsbuilds the fields from the transferred resource row. The localworkerReleasehandler and the legacy-remote execution-host release both spread it into their retained receipt, and the home-side federated release now parses and forwards the two new fields.retainedReasonis exported fromworker-release-completion.tsso the legacy-remote host reuses it instead of keeping a copy.Why
The receipt already knew the reason (
ownership_transferred) and the resource row already knows the owner, so surfacing both is the smallest fix. Auto-closing the terminal when the old Dispatch is released was rejected: it would close a terminal a live Dispatch still uses.Linked Issue
Fixes #2
Ports
DoozyX/retro-2-release-reused-terminalonto current main. The old branch'sworker-output.tsCLI type change andworker-release-inventory.test.tsare dropped: the CLI file moved and printsrecoveryalready, and that test file no longer exists (the case lives inworker-release.test.tsnow).Visual Proof
N/A: orchestration RPC/CLI receipt text; no UI change.
Testing
pnpm tc:nodeexit 0.pnpm testonfederated-release-safety.test.ts,federated-transport-safety.test.ts,worker-release.test.ts: 3 files, 14 tests passed. With the source change reverted, the 3 new/updated tests fail (3 failed, 11 passed).ORCA_CODE_QUALITY_BASE=fork/main pnpm check:changed: GATE_EXIT=0, 26 of 26 checks passed.Risk
Level: Low
Only adds optional fields to an already-retained receipt and one recovery string. Older hosts that omit the fields still parse. Plain revert backs it out.
Agent skill upstream boundary
Checklist
N/Awith reasonpnpm tc:node, scoped tests andpnpm check:changedpass locally