Skip to content

Keep worktree Python commands on repo venv#437

Merged
NagyVikt merged 1 commit intomainfrom
agent/codex/link-venv-into-agent-worktrees-2026-04-27-12-27
Apr 27, 2026
Merged

Keep worktree Python commands on repo venv#437
NagyVikt merged 1 commit intomainfrom
agent/codex/link-venv-into-agent-worktrees-2026-04-27-12-27

Conversation

@NagyVikt
Copy link
Copy Markdown
Collaborator

Automated by gx branch finish (PR flow).

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>
@NagyVikt NagyVikt merged commit 24cf015 into main Apr 27, 2026
@NagyVikt NagyVikt deleted the agent/codex/link-venv-into-agent-worktrees-2026-04-27-12-27 branch April 27, 2026 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant