Keep worktree Python commands on repo venv#437
Merged
Conversation
Agent sandboxes already link JavaScript dependency directories from the primary checkout, but Python commands like .venv/bin/python3 still failed inside new worktrees because .venv was absent. Link the root .venv during branch bootstrap so Claude and Codex commands that assume repo-relative Python keep resolving inside the sandbox. Constraint: Claude runs hooks and Bash commands from sandbox worktree cwd. Rejected: Rewrite every Claude command to an absolute recodee path | leaves other repos and direct user commands with the same worktree-layout failure. Confidence: high Scope-risk: narrow Directive: Keep scripts/agent-branch-start.sh and templates/scripts/agent-branch-start.sh in sync for managed setup installs. Tested: bash -n scripts/agent-branch-start.sh templates/scripts/agent-branch-start.sh Tested: node --test test/branch.test.js Co-authored-by: OmX <omx@oh-my-codex.dev>
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).