Repository navigation
P1: Codex resume dies with "already has an active writer"; R - #1265
Conversation
… 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
… Codex resume uses sessionStartModel
… 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
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: 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".
| const ours = | ||
| holderPid != null && | ||
| (ourPids.has(holderPid) || !lockDirShared); |
There was a problem hiding this comment.
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 👍 / 👎.
| gitTry(project.path, ["worktree", "remove", "--force", dir]); | ||
| gitTry(project.path, ["branch", "-D", branch]); |
There was a problem hiding this comment.
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 👍 / 👎.
| 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); |
There was a problem hiding this comment.
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 👍 / 👎.
| 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"); |
There was a problem hiding this comment.
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.
No description provided.