Files
archived-orca/src/main/codex-cli/codex-read-only-app-server-args.ts
OrcaWin 2847bbe9e8 [comment audit] Consolidate completed code comment cleanup
Combine the completed comment cleanup from 319 stacked PRs into one change against `main`, so the full CI suite validates the combined result once. This replaces the previous audit stack; no additional audit work is included.

The change shortens redundant comments across 2,753 source and shell-snapshot files (25,235 net lines removed). Conflicts preserve current-main executable code. Runtime behavior, test assertions, directives, licenses, generated notices, SAFETY rationales, and compatibility markers are preserved. The audit tracker remains local, outside the repository.

Validation:
- Equivalent source/emitted AST and executable tokens across all 2,750 source files, with separate checks for embedded shell, SQL, JavaScript, CSS, and generated fixtures.
- Identical executable lines in the three shell snapshots; protected comments unchanged.
- Changed-code quality gate passed with no new findings.
- 358 tests passed, 2 skipped across 23 focused test files.
- `git diff --check` passed.
2026-10-23 13:15:45 -07:00

18 lines
666 B
TypeScript

// 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',
...CODEX_READ_ONLY_APP_SERVER_TAIL
] as const
// Disable plugins only for short-lived probes; marketplace clones can outlive probe teardown.
export const CODEX_SHORT_LIVED_PROBE_APP_SERVER_ARGS = [
'-c',
'approval_policy=never',
...CODEX_DISABLE_PLUGINS_ARGS,
...CODEX_READ_ONLY_APP_SERVER_TAIL
] as const