Repository navigation
hotfix: remove [permissions.airc.filesystem] block that breaks Codex startup (regression from #364) - #366
Merged
joelteply merged 1 commit intoApr 30, 2026
Conversation
…startup (regression from #364) The filesystem-permission block added in the second commit of #364 broke Codex on startup with: Error loading configuration: permissions profile requests filesystem writes outside the workspace root, which is not supported until the runtime enforces FileSystemSandboxPolicy directly Codex 0.125's runtime can't honor home-dir-scoped filesystem grants in named profiles yet. Even the :project_roots-only variant didn't help (the block was rejected as a whole). On every machine that ran the merged #364, the next codex invocation fails to start until the block is removed from ~/.codex/config.toml manually. Surfaced live during the codex first-encounter QA: after Joel restarted Codex post-#364 merge, Codex hard-failed at config load with the above error. Two-part hotfix: 1. Stop writing the [permissions.airc.filesystem] block. Replace the write code with a comment explaining why the block is omitted and pointing at git history for the prior version. Living with Codex's harmless 'does not define any recognized filesystem entries' warning is preferable to a hard-fail-on-startup that takes Codex offline entirely. 2. Add a cleanup step that DETECTS the broken block in existing ~/.codex/config.toml files and strips it. Without this, every user who already ran #364 has a permanently broken Codex until they hand-edit. Cleanup uses Python with the existing venv (we have it from cryptography) to do a section-aware strip; handles the leading '# airc filesystem permissions' comment and any [permissions.airc.filesystem.<sub>] children in one pass. Runs every install.sh invocation; idempotent (no-op when the block is already absent). Collapses runs of >2 blank lines that the strip might have left. Tested on this Mac: - simulated stale block → install.sh detects + strips - Codex (codex exec) starts cleanly after cleanup - re-runs of install.sh on cleaned config: no-op, no spurious changes Network profile + skill symlinks from #364 stay intact and continue working — only the filesystem block is removed. Open question / followup: Codex's docs claim filesystem profiles are supported per the config-reference, but the runtime rejects them. Possibly a 0.125-vs-newer-version gap. When/if Codex's runtime adds support, restore the block (history at git log -- install.sh). Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
This was referenced Apr 30, 2026
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.
🚨 Hotfix — regression from #364 takes Codex offline.
The filesystem-permission block added in #364's second commit broke Codex on startup with:
Codex 0.125's runtime can't honor home-dir-scoped filesystem grants in named profiles yet. Even the
:project_roots-only variant didn't help. On every machine that ran the merged #364, the next codex invocation fails to start until the block is removed from~/.codex/config.tomlmanually.Surfaced live during Joel's codex first-encounter QA — Codex hard-failed at config load right after the post-#364 restart.
Two-part hotfix
Stop writing the
[permissions.airc.filesystem]block. Replaced the write code with a comment explaining why the block is omitted + pointer at git history for the prior version. Living with Codex's harmless'does not define any recognized filesystem entries'warning is preferable to a hard-fail-on-startup that takes Codex offline entirely.Add a cleanup step that detects + strips the broken block in existing
~/.codex/config.tomlfiles. Without this, every user who already ran feat(install): airc skills auto-install into Codex too (same SKILL.md format) #364 has a permanently broken Codex until they hand-edit. Cleanup uses Python (we have the venv from cryptography) for section-aware strip — handles the leading# airc filesystem permissionscomment and any[permissions.airc.filesystem.<sub>]children in one pass. Runs every install.sh invocation; idempotent (no-op when block absent).Tested on this Mac
Network profile + skill symlinks from #364 stay intact and continue working — only the filesystem block is removed.
Open follow-up
Codex's docs claim filesystem profiles are supported per the config-reference, but the runtime rejects them. Possibly a 0.125-vs-newer-version gap. When/if Codex's runtime adds support, restore the block — history is in
git log -- install.sh.Test plan
bash -n install.shsyntax check🤖 Generated with Claude Code