feat: Codex App worktree and sandbox compatibility#901
Open
Conversation
Collaborator
Author
|
This change is part of the following stack: Change managed by git-spice. |
0e5b633 to
c24dc43
Compare
71a04cd to
1830941
Compare
c24dc43 to
3feeb2e
Compare
This was referenced Mar 24, 2026
457abac to
0cc80b1
Compare
3feeb2e to
c498704
Compare
Skip worktree creation when already in a linked worktree. Includes sandbox fallback for permission errors on git worktree add.
Clarify that skill ensures a workspace exists, not that it always creates one.
…ion (PRI-823) Detect externally managed worktrees with detached HEAD and emit handoff payload instead of 4-option menu. Includes commit SHA and data loss warning. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Re-detect externally managed worktree at cleanup time and skip removal. Also fixes pre-existing inconsistency: cleanup now correctly says Options 1 and 4 only, matching Quick Reference and Common Mistakes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…(PRI-823) Clarify that using-git-worktrees ensures a workspace exists rather than always creating one. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…PRI-823) Document the git-dir vs git-common-dir detection pattern and the Codex App's native finishing flow for skills that need to adapt. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Tests git-dir vs git-common-dir comparison in normal repo, linked worktree, detached HEAD, and cleanup guard scenarios. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Defers $TEMP_DIR expansion to execution time and quotes the variable inside the trap, protecting against paths with spaces. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…tion (PRI-823) Path A (detached HEAD in externally managed worktree) was unreachable because Step 1 halted on test failure before Step 1.5 could detect the restricted environment. Reorder so detection runs first — Path A now skips test verification entirely since the toolchain may not be available in sandbox environments. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Update codex-tools.md to reference Step 1 (was Step 1.5) after the finishing skill reorder. Add manual Codex App test results table to the design spec — 4/5 passed, 1 N/A (sandbox doesn't block git writes in Local threads). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
c498704 to
20fabcd
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Makes superpowers skills work correctly in Codex App's sandbox environment, where the agent runs in an externally-managed worktree with detached HEAD.
Key changes:
using-git-worktrees(Step 0) andfinishing-a-development-branch(Step 1.5) — detects linked worktrees and detached HEAD via read-only git commandsTest plan
🤖 Generated with Claude Code