Conversation
A continuation prompt can refer to an interrupted dirty sandbox that is no longer present in live handoff state. Branch start now scans managed dirty same-agent worktrees before allocating a fresh branch, so takeover-style follow-ups can attach to the preserved sandbox instead of duplicating copied changes. Constraint: Matching must work without relying on .omx/notepad.md or active-session files.\nRejected: Always reuse any dirty same-agent worktree | too likely to steal unrelated stalled lanes\nRejected: Require exact branch-task text match | misses broader continuation wording like billing replacement versus billing sections\nConfidence: high\nScope-risk: moderate\nDirective: Keep matching conservative and dirty-worktree scoped; do not widen to clean branches without merge-state proof.\nTested: bash -n scripts/agent-branch-start.sh\nTested: bash -n templates/scripts/agent-branch-start.sh\nTested: node --test test/branch.test.js\nTested: node --test --test-name-pattern "critical runtime helper scripts" test/metadata.test.js\nTested: openspec validate agent-codex-reuse-dirty-matching-worktree-on-branch-2026-04-28-00-56 --type change --strict\nTested: openspec validate --specs\nNot-tested: Full node --test test/*.test.js; existing README about_description link assertion fails in metadata.test.js outside this change
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.
Automated by gx branch finish (PR flow).