Harden Codex unattended launch: apps connector, hook trust, flag order, alt-screen - #392
Merged
Merged
Conversation
…r, alt-screen Four fixes to make Codex spawn reliably without an operator in the container: - `features.apps = false` in config.toml disables the built-in apps connector, which cannot start in a container and stalls every spawn on its 30 s MCP timeout. The `[mcp_servers.codex_apps] enabled = false` alternative is invalid config that crash-loops Codex — the feature flag is the only safe disable. - `--dangerously-bypass-hook-trust` added to launch_argv (first run and resume): since PR #387 wired Stop/UserPromptSubmit hooks into config.toml, Codex prompts interactively to trust each hook hash; with no operator this hangs indefinitely. - Bypass flags moved after the `resume` subcommand (`codex resume --last --flags`), matching the reference implementation's required argument order. - `--no-alt-screen` on every launch so Codex renders into tmux scrollback instead of the alternate screen, keeping `tmux attach` history accessible. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
tildesrc
force-pushed
the
panopticon/codex-launch-hardening
branch
from
August 24, 2026 02:12
1343440 to
622bf0b
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.
Summary
features.apps = falsedisables Codex's built-in apps connector, which cannot start in a container and stalls every spawn on its 30 s MCP timeout. The[mcp_servers.codex_apps] enabled = falsealternative is invalid config that crash-loops Codex at startup — the feature flag is the only safe disable.--dangerously-bypass-hook-trustadded tolaunch_argvon both first-run and resume paths: since PR Wire the Codex turn-flip hooks (M3.6: completes the AgentCLI seam) #387 wired Stop/UserPromptSubmit hooks intoconfig.toml, Codex now prompts interactively to trust each hook hash; with no operator in the container this hangs forever.resume --last(codex resume --last --flags), matching the reference implementation's required argument order.--no-alt-screenon every launch so Codex renders into tmux scrollback instead of the alternate screen, keepingtmux attachhistory accessible.🤖 Generated with Claude Code