Repository navigation
Conversation
Codex 0.157.0 enabled the shared app-server daemon by default. It only runs from an upstream packaged install (codex-package.json layout), so the snap TUI exited with "this CLI has no complete local package". Ship /etc/codex/config.toml via a layout to turn daemon_auto_start off as the lowest precedence system config, and test that the TUI starts. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01EprajrSwjJKy29ZXnEvpwm
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
Codex 0.157.0 turned
daemon_auto_starton by default (openai/codex#47179). This repo picked that up with #48 (0.154.0 → 0.159.2). The daemon only works from an upstream packaged install, so in the snap a plaincodexexits before the TUI starts. The build and the existing CI checks still pass, because--versionandhelpnever reach this code path.snap/ ├── hooks/configure +├── local/etc/codex/config.toml # [features] daemon_auto_start = false └── snapcraft.yaml # + `defaults` dump part, + layout /etc/codex → $SNAP/etc/codex .github/workflows/ci.yaml # + "Snap TUI": run `codex` under `script` for 30s, pass = still running (exit 124)Independent of #50. #51 (0.160.0) still enables the daemon by default, so it needs this too.
Evidence
Before: installed 0.159.2 snap with the setting forced back on,
codex -c features.daemon_auto_start=true:Exit 1.
After:
codexkeeps running untiltimeoutkills it (exit 124). In CI, the "Snap TUI" step passes in https://github.com/wubli/codex/actions/runs/37165586506. That run was on a fork test branch that also carried Add codex-code-mode-host binary #50's commits. This fix commit is the same change.Merge Danger
Door: two-way
Adds only a default config file, a layout and a CI step. Reverting removes them. A user's own
config.tomlcan still setdaemon_auto_start = true.Blast Radius: snap-startup
Inside the snap, the shared background server stays off, which never worked in the snap anyway. Any host
/etc/codexis hidden from the snap by the layout.🤖 Generated with Claude Code