Repository navigation
fix(sandbox): match the Codex plugin script under any numeric version - #302
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…script A quoted ~ is not expanded by the shell, so node resolves it relative to the writable cwd and would run a planted script outside the sandbox. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
furedea-agent
Bot
force-pushed
the
fix/codex-plugin-version
branch
from
October 23, 2026 04:17
bdc2bd8 to
82625f0
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.
概要
Codex プラグインのバージョンが上がるたびに
excludedCommandsが合わなくなる問題を直す.excludedCommandsのバージョン部分を*にし,guard_command.pyが厳密なパス(Path.home()で展開した絶対パス.引用符付きのリテラル~は node が cwd 相対で解決するため拒否)だけを許可する.変更前後
excludedCommandsnode "/Users/kaito/.claude/plugins/cache/openai-codex/codex/1.0.3/scripts/codex-companion.mjs" *node "~/.claude/plugins/cache/openai-codex/codex/*/scripts/codex-companion.mjs" *codex-companion.mjsなら許可<home>/.claude/plugins/cache/openai-codex/codex/<数字>.<数字>.<数字>/scripts/codex-companion.mjs(Path.home()で展開した絶対パス)だけ許可..,別ディレクトリ,別ファイル,数字でないバージョン確認事項
excludedCommandsはBash(...)の権限ルールと同じ構文で,途中の*に対応すると読める.ただしsandbox.excludedCommandsの設定リファレンス本体は読めず,先頭の~/の展開についても記載がない.switch後に親が実際の呼び出しで,~/と途中の*が合うことを確かめる.受け入れ条件
~を拒否する..,別ディレクトリ,別ファイル,数字でないバージョンを拒否する$なし,バッククォートなしの既存ルールを維持するuv run pytest tests/agents2345 件成功lefthook run pre-commit --all-files成功switch後に Codex プラグインの呼び出しが sandbox の外で動くことを親が確認するCloses #301
🤖 Generated with Claude Code