Repository navigation
Copy gitignored config files (.env) into new worktrees (.wor - #1563
Conversation
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2e54df5082
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| "its last assistant reply. Runs are asynchronous. After thread_fork or " + | ||
| "thread_send, end your turn: each worker's finish (done or failed) wakes you " + | ||
| "with a notice quoting its last reply. Do not poll thread_status, sleep, " + |
There was a problem hiding this comment.
Handle thread_send outcomes before ending the turn
When thread_send returns refused or undeliverable, no run starts and therefore no completion notice can wake the sender; even a delivered send to an ordinary thread will not wake it because queueOrchNotice only notifies for an orchWorker with handoffFrom. The unconditional instruction to end the turn can therefore strand the orchestrator without reporting the failed send or ever receiving the target's result. Restrict this guidance to forks and sends whose target/outcome guarantees a notice, and require other outcomes to be handled immediately.
Useful? React with 👍 / 👎.
| const ignoredSet = new Set( | ||
| gitTry(repoPath, ["-c", "core.quotePath=false", "check-ignore", "--", ...candidates]) | ||
| .stdout.split("\n"), |
There was a problem hiding this comment.
Validate copied secrets against target ignore rules
When a worktree starts from a leadSnapshotSha or base branch whose .gitignore differs from the project checkout, this checks ignore status using repoPath rather than the newly created worktree. A source .env can consequently be copied into a target where it is not ignored, making credentials visible to git status and stageable by a routine git add .; the .worktreeinclude selection can likewise come from the wrong revision. Evaluate the include file and ignore rules from dir before copying source files.
Useful? React with 👍 / 👎.
…#185) On worktree creation, copy untracked + gitignored files matching a checked-in .worktreeinclude (gitignore patterns) into the new worktree, or root-level .env* files when there is none. Runs before the #153 setup script, never overwrites, and never fails setup. Co-Authored-By: Claude Opus 5.5 <[email protected]>
2e54df5 to
b71a665
Compare
No description provided.