Repository navigation
Description
What issue are you seeing?
After automatic Codex app-server updates and restarts, existing chats appear to lose their effective permissions: previously allowed access becomes blocked and remains blocked after the chat resumes. This has happened repeatedly following automatic updates.
The persisted thread records still show approval_mode: "never" and sandbox_policy: {"type":"disabled"}. This suggests a problem restoring runtime permissions or session state, rather than the saved permissions being removed. The exact cause is not yet confirmed.
What steps can reproduce the bug?
Observed workflow; no isolated minimal reproduction yet:
- Start Codex CLI with
codex --yoloorcodex resume --last --yolo, using the shared managed app-server daemon. - Run a long task that uses shell commands and filesystem access.
- Let the daemon automatically update and restart while the task is active.
- Continue in the existing chat. Previously permitted operations become blocked despite the persisted permission settings remaining unchanged
What is the expected behavior?
Existing chats should retain their effective permissions across automatic updates and reconnects. Resumed tasks should continue with the same access settings, without requiring a new chat or manual permission repair.
Additional information
- OS: Ubuntu 26.04.1 LTS, Linux
7.0.0-34-generic, x86_64. - Environment: Bash over SSH, running as root; standalone Codex installation.
- CLI:
0.159.2; app-server after the update:0.159.3. - Daemon: persistent, PID-managed, local Unix socket; remote control disabled.
- Observed update: October 1, 2026, Europe/Berlin (CEST, UTC+02:00).
- 02:05:55–02:05:57: app-server package
0.159.3installed. - 02:05:57: log reports
entering graceful restart drain (connections=1, runningAssistantTurns=1, new client turns rejected). - 02:06:57: replacement app-server process started.
- 02:07:13:
write_stdin failed: Unknown process id 78401recorded immediately afterward. This indicates lost process state, but does not by itself establish the cause of the permission issue.
- 02:05:55–02:05:57: app-server package
- Temporary mitigation: set
updater.autoUpdateEnabledtofalsein~/.codex/app-server-daemon/settings.json.codex doctorreportsautomatic updates: disabled (configured); live uptake by the existing updater has not been verified
Activity
github-actions commentedon Oct 1, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action