-
Notifications
You must be signed in to change notification settings - Fork 2k
fix(ce-setup): detect leftover Codex tool-map sentinels #1570
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
saurabhkagent-lab
wants to merge
9
commits into
EveryInc:main
from
saurabhkagent-lab:fix/ce-setup-detect-legacy-codex-tool-map
Closed
Changes from 4 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
8a630c1
fix(ce-setup): detect leftover Codex tool-map sentinels
saurabhkagent-lab 8fc537d
fix(ce-setup): scan ~/.codex named profiles independently of CODEX_HOME
saurabhkagent-lab 79b222f
fix(ce-setup): skip inactive ~/.codex/AGENTS.md when CODEX_HOME is set
saurabhkagent-lab 46d051f
fix(ce-setup): ship Codex tool-map removal inside the skill
saurabhkagent-lab aef3b39
fix(ce-setup): require ordered BEGIN/END tool-map sentinels
saurabhkagent-lab 95826d0
fix(ce-setup): give CODEX_HOME a HOME/.codex fallback in skill prose
saurabhkagent-lab 63105ee
fix(ce-setup): detect a later ordered tool-map pair after a stray END
saurabhkagent-lab 2d03f74
fix(ce-setup): require standalone tool-map sentinel lines
saurabhkagent-lab fd94987
fix(ce-setup): align public tool-map removal with sentinel contract
saurabhkagent-lab File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| # Remove the retired Compound Codex tool map | ||
|
|
||
| The Bun-era convert/install path could insert a managed block into | ||
| global Codex instructions: | ||
|
|
||
| `<!-- BEGIN COMPOUND CODEX TOOL MAP -->` … `<!-- END COMPOUND CODEX TOOL MAP -->` | ||
|
|
||
| in `$CODEX_HOME/AGENTS.md` (default `~/.codex/AGENTS.md`) and in named | ||
| profile copies under `~/.codex/profiles/*/AGENTS.md`. | ||
|
|
||
| That Claude-compat map is obsolete — CE skills name Codex tools inline — | ||
| and one line incorrectly told Codex to collapse subagent dispatch onto | ||
| the main thread. Native plugin install does **not** add this block. | ||
|
|
||
| ## Safe removal | ||
|
|
||
| 1. Check `$CODEX_HOME/AGENTS.md` if `CODEX_HOME` is set, otherwise | ||
| `~/.codex/AGENTS.md`. Also check `~/.codex/profiles/*/AGENTS.md`. | ||
| 2. Look for the exact sentinels `<!-- BEGIN COMPOUND CODEX TOOL MAP -->` | ||
| and `<!-- END COMPOUND CODEX TOOL MAP -->`. | ||
| 3. If both are present, delete only the span from the BEGIN line through | ||
| the END line (inclusive). Leave any other user content untouched. Do | ||
| not edit project/repo `AGENTS.md` unless those exact sentinels are | ||
| present there. | ||
| 4. If the file is empty after the removal, delete the file. | ||
| 5. Show a short before/after of what changed (or say the block was | ||
| already absent). Do not add a replacement tool map. | ||
|
|
||
| This file ships with the `ce-setup` skill so marketplace/converted | ||
| installs still have the procedure without the repo `docs/` tree. |
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.