fix(codex): disable plugins in short-lived probes (#21617)

This commit is contained in:
Neil
2026-09-19 01:31:08 -07:00
committed by GitHub
parent ea02d90704
commit 14cddfeda7
4 changed files with 36 additions and 12 deletions
@@ -1,10 +1,19 @@
// The config override replaces legacy values before Codex validates config.toml.
export const CODEX_DISABLE_PLUGINS_ARGS = ['-c', 'features.plugins=false'] as const
const CODEX_READ_ONLY_APP_SERVER_TAIL = ['-s', 'read-only', '-a', 'never', 'app-server'] as const
export const CODEX_READ_ONLY_APP_SERVER_ARGS = [
'-c',
'approval_policy=never',
'-s',
'read-only',
'-a',
'never',
'app-server'
...CODEX_READ_ONLY_APP_SERVER_TAIL
] as const
// Rate-limit probes are short-lived; plugin startup can launch marketplace
// clones that outlive the probe teardown. Other read-only app-servers retain
// normal plugin behavior.
export const CODEX_RATE_LIMIT_APP_SERVER_ARGS = [
'-c',
'approval_policy=never',
...CODEX_DISABLE_PLUGINS_ARGS,
...CODEX_READ_ONLY_APP_SERVER_TAIL
] as const