Repository navigation
feat(threads): fail-closed isolate:true on forkThread (#1223) - #1271
Merged
currentbits merged 2 commits intoSep 20, 2026
Merged
Conversation
Require a worktree and record the source committed HEAD before creating the candidate. Reuse a caller-supplied SHA so a race shares one start. Ask, remote, non-git, and unsupported scm throw instead of sharing the checkout. Ordinary Fork, worktree:true chips, and worktree:false workers are unchanged.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
) (#1272) Preflight before any fork, pass isolate:true with a shared start snapshot through useCoder.forkThread, and start runs only after every candidate is forked. Ordinary Fork and Hand off still omit isolate. Co-authored-by: Willem <[email protected]>
currentbits
merged commit Sep 20, 2026
8584025
into
coder/1223-bon-isolate-contract
0 of 6 checks passed
currentbits
added a commit
that referenced
this pull request
Oct 19, 2026
* feat(threads): fail-closed isolate:true on forkThread (#1223) Require a worktree and record the source committed HEAD before creating the candidate. Reuse a caller-supplied SHA so a race shares one start. Ask, remote, non-git, and unsupported scm throw instead of sharing the checkout. Ordinary Fork, worktree:true chips, and worktree:false workers are unchanged. * feat(threads): launch Best of N into isolated candidate worktrees (#1223) (#1272) Preflight before any fork, pass isolate:true with a shared start snapshot through useCoder.forkThread, and start runs only after every candidate is forked. Ordinary Fork and Hand off still omit isolate. Co-authored-by: Willem <[email protected]> --------- Co-authored-by: Willem <[email protected]>
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.
Stack 2/3, based on #1270.
forkThread({ isolate: true })now fail-closes: it records the source committed HEAD (or a caller-supplied SHA) beforecreateThread, armspendingWorktreein the same patch, and copiesbaseBranchonly as the merge/PR destination. Ask, remote, non-git, and unsupported scm throw instead of sharing the checkout.Ordinary Fork,
worktree: truechips, andworktree: falseresearch/orchestration workers keep their previous semantics. Best of N UI still does not passisolateuntil stack 3.Why
A two-provider race must not edit the main checkout. The start SHA is captured once so both candidates share it even if the source advances while the race is launching. Uncommitted source edits are flagged, not copied.
Tests
electron/test/best-of-n-isolate.test.js— two real git worktrees, independent edits, dirty source not copied, partial launch keeps the first candidate, sibling forks unchanged.Follow-up
Stack 3: Best of N launch path
PR created by the Grok agent