Skip to content

P1: Codex resume dies with "already has an active writer"; R - #1265

Merged
currentbits merged 165 commits into
mainfrom
coder/p1-codex-resume-dies-with-already-has-an-346caa
Sep 10, 2026
Merged

currentbits merged 165 commits into
mainfrom
coder/p1-codex-resume-dies-with-already-has-an-346caa

Conversation

@currentbits

Copy link
Copy Markdown
Owner

No description provided.

Willem added 30 commits September 6, 2026 09:29
… Show Codex writer-lock recovery copy and keep Retry from loo
… Fork: take a look at everything we did and fix the planboard
… Fork: take a look at everything we did and fix the planboard
… Fork: Fork: Retry turn after a failed machine-delivered noti
… Retry turn after a failed machine-delivered notice re-sends
… Fork: Fork: Fork: Fork: Fork: Fork: Fork: Fork: Fork: Do not
… Fork: Fork: Fork: Fork: Fork: Fork: Fork: Fork: Do not auto-
… Fork: Fork: Fork: Fork: Fork: Fork: Fork: Fork: Do not auto-
… Fork: Fork: Fork: Fork: Fork: Fork: Do not auto-continue a C
… Fork: Fork: Fork: Fork: Fork: Do not auto-continue a Codex l
… Fork: Fork: Fork: Fork: Fork: Fork: Fork: Fork: Fork: Do not
… Fork: Fork: Fork: Fork: Fork: Fork: Fork: Fork: Do not auto-
… Fork: Fork: Fork: Fork: Fork: Fork: Fork: Do not auto-contin
… Fork: Fork: Fork: Fork: Fork: Fork: Do not auto-continue a C
… Fork: Fork: Fork: Fork: Fork: Fork: Fork: Fork: Do not auto-
… Fork: Fork: Fork: Fork: Fork: Fork: Fork: Do not auto-contin
… Fork: Fork: Fork: Fork: Fork: Do not auto-continue a Codex l
… Fork: Fork: Do not auto-continue a Codex lead while another
… Fork: Fork: Fork: Do not auto-continue a Codex lead while an
… Fork: Fork: Do not auto-continue a Codex lead while another
… Fork: Do not auto-continue a Codex lead while another proces
… Do not auto-continue a Codex lead while another process hold
… Fork: Import existing CLI agent sessions as Solenta threads,
… Lead Integration view: explicit destinations, worker readine
… Agents tab Integration section + destination-named header Me
… Fork: Fork: Fork: Fork: Import existing CLI agent sessions a
… Fork: Fork: Fork: Fork: Import existing CLI agent sessions a
… Fork: Fork: Fork: Fork: Import Codex and Cursor plugin slash
… Fork: Import Codex and Cursor plugin slash commands
Willem and others added 22 commits September 10, 2026 11:14
… Fork: Fork: Fork: Fork: Switch Codex interactive runner to a
… Fork: Switch Codex interactive runner to app-server for real
… Fork: Fork: Fork: Fork: Fork: Fork: Fork: Focus-trap nested
… Fork: Fork: Fork: Fork: Fork: Fork: Focus-trap nested confir
… Fork: Fork: Fork: Fork: Fork: Focus-trap nested confirm dial
… Fork: Fork: Fork: Fork: Focus-trap nested confirm dialogs
… Fork: Fork: Fork: Focus-trap nested confirm dialogs
… Fork: Fork: Fork: Fork: Fork: Fork: Fork: Fork: Focus-trap n
… Fork: Fork: Fork: Fork: Fork: Fork: Fork: Focus-trap nested
… Fork: Fork: Fork: Fork: Fork: Fork: Fork: Fork: Focus-trap n
… Fork: Fork: Fork: Fork: Fork: Fork: Fork: Focus-trap nested
… Fork: Fork: Fork: Fork: Fork: Fork: Focus-trap nested confir
… Fork: Fork: Fork: Fork: Fork: Fork: Focus-trap nested confir
… Fork: Fork: Fork: Fork: Fork: Focus-trap nested confirm dial
… Fork: Fork: Fork: Fork: Fork: Focus-trap nested confirm dial
… Fork: Fork: Fork: Fork: Fork: Fork: Fork: Focus-trap nested
… Fork: Fork: Fork: Fork: Fork: Fork: Focus-trap nested confir
… Fork: Fork: Fork: Fork: Fork: Fork: Focus-trap nested confir
… Fork: Fork: Fork: Fork: Focus-trap nested confirm dialogs
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 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-09-10T16:06:26.702749Z ada25fd 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: ada25fd6b6

ℹ️ 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 on lines +135 to +137
const ours =
holderPid != null &&
(ourPids.has(holderPid) || !lockDirShared);

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 Restrict writer-lock termination to known child processes

When guardrails are disabled or overlay creation fails, markRunFailed inspects the real ~/.codex home. Its lock directory is normally a real directory rather than a symlink, so this condition classifies every holder as ours, even when lsof found Codex Desktop or another independently launched CLI; releaseWriterLockHolder then terminates that external process. Only ourPids should establish ownership unless the caller explicitly proves this is a private overlay.

Useful? React with 👍 / 👎.

Comment thread electron/mergeQueue.js
Comment on lines +393 to +394
gitTry(project.path, ["worktree", "remove", "--force", dir]);
gitTry(project.path, ["branch", "-D", branch]);

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 Preserve existing worktrees and branches when claiming a lane

If the store does not record a pre-existing lane/1—for example after reinstalling, restoring an older store, or when the repository already uses that branch name—claiming the first lane blindly force-removes the fixed worktree path and force-deletes the branch before creating a replacement. Locally, git worktree remove -h says --force removes dirty or locked worktrees, and git branch -h says -D deletes even unmerged branches, so this can discard unrelated uncommitted work and the only ref to unmerged commits. Treat Git/filesystem collisions as occupied or refuse the claim instead.

Useful? React with 👍 / 👎.

Comment thread electron/mergeQueue.js
Comment on lines +507 to +511
const files = listMirrorFiles(row.path, skip);
for (const rel of files) {
const dest = path.join(project.path, rel);
fs.mkdirSync(path.dirname(dest), { recursive: true });
fs.copyFileSync(path.join(row.path, rel), dest);

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 Remove files deleted from a refreshed lane preview

When the same lane is previewed again, files copied by its previous preview are never compared with the new file list. If the lane deleted or renamed a previously copied untracked file, that stale file remains in the project checkout, and replacing mergePreview.files with the new list means restorePreview no longer knows to remove it, leaving main dirty even after Restore. Restore the prior preview or explicitly delete the old-minus-new paths before copying and replacing the manifest.

Useful? React with 👍 / 👎.

Comment thread electron/ipc.js
Comment on lines +1933 to 1936
const startRoot = spotlightOn && project.path ? project.path : root;
const allowed = devservers.detectScripts(startRoot);
if (!script || !allowed.includes(script)) {
throw new Error(script ? `Unknown script: ${script}` : "Unknown script");

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Mirror the Spotlight lane before validating its scripts

When a lane adds a package.json script that does not exist on main, devserver:scripts discovers it from the lane worktree, but devserver:start validates against the project checkout before spotlightLane copies the lane there. The UI therefore offers the script and starting it deterministically fails with Unknown script. Mirror first, or validate against the lane and then launch from the mirrored checkout.

Useful? React with 👍 / 👎.

Keep this branch's focus-trap Escape restore. Keep main's first-task
onboarding and skip-the-gate in Vite browser-dev.
@currentbits
currentbits merged commit f6c9323 into main Sep 10, 2026
0 of 6 checks passed
@currentbits
currentbits deleted the coder/p1-codex-resume-dies-with-already-has-an-346caa branch October 3, 2026 16:07
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