Skip to content

Copy gitignored config files (.env) into new worktrees (.wor - #1563

Merged
currentbits merged 1 commit into
mainfrom
coder/copy-gitignored-config-files-env-into-ne-48eb38
Oct 10, 2026
Merged

currentbits merged 1 commit into
mainfrom
coder/copy-gitignored-config-files-env-into-ne-48eb38

Conversation

@currentbits

Copy link
Copy Markdown
Owner

No description provided.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-10T07:20:40.524837Z 2e54df5 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread electron/orchServer.js Outdated
Comment on lines +95 to +97
"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, " +

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

Comment thread electron/worktrees.js Outdated
Comment on lines +1766 to +1768
const ignoredSet = new Set(
gitTry(repoPath, ["-c", "core.quotePath=false", "check-ignore", "--", ...candidates])
.stdout.split("\n"),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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]>
@currentbits
currentbits force-pushed the coder/copy-gitignored-config-files-env-into-ne-48eb38 branch from 2e54df5 to b71a665 Compare October 10, 2026 07:25
@currentbits
currentbits merged commit 08c1d5a into main Oct 10, 2026
6 checks passed
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