Skip to content

Automatic app-server updates leave existing chats with blocked access #49865

Open

Description

@bendietze

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:

  1. Start Codex CLI with codex --yolo or codex resume --last --yolo, using the shared managed app-server daemon.
  2. Run a long task that uses shell commands and filesystem access.
  3. Let the daemon automatically update and restart while the task is active.
  4. 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.3 installed.
    • 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 78401 recorded immediately afterward. This indicates lost process state, but does not by itself establish the cause of the permission issue.
  • Temporary mitigation: set updater.autoUpdateEnabled to false in ~/.codex/app-server-daemon/settings.json. codex doctor reports automatic updates: disabled (configured); live uptake by the existing updater has not been verified

Activity

  1. added
    bug
    on Oct 1, 2026
  2. added
    CLI
    app-server
    sandbox
    on Oct 1, 2026
  3. github-actions commented on Oct 1, 2026

    @github-actions
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIapp-serverbugsandbox

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions