Skip to content

CLI --yolo sandbox is lost after app-server restart #49088

Closed

Description

@bvolpato

What version of Codex CLI is running?

Reproduced with the installed codex-cli 0.158.0 binary. Source trace checked against 88e9a8329d17bd141e4f3f0e7c78d07a7baa8b23 on main.

What subscription do you have?

The isolated reproduction uses a local mock Responses endpoint with requires_openai_auth = false. It does not require a subscription or make OpenAI API calls.

Which model were you using?

mock-model in the reproduction. The behavior occurs during thread restoration, independently of model output.

What platform is your computer?

Linux 6.17.0-1025-oem x86_64.

What terminal emulator and version are you using (if applicable)?

The isolated reproduction drives codex app-server over stdio, without a terminal emulator. The original symptom was observed in the CLI TUI using the shared daemon.

Codex doctor report

Not collected for this report. The reproduction uses a temporary CODEX_HOME, two isolated app-server processes, and a local mock endpoint. No production configuration or credentials are needed.

What issue are you seeing?

A thread started with the legacy permission fields used by CLI --yolo loses its full-access sandbox after app-server restart and an ID-only cold resume. The approval policy survives, producing never + workspace-write instead of never + danger-full-access.

Observed on the same installed 0.158.0 binary before and after restart:

Stage approvalPolicy sandbox.type activePermissionProfile
thread/start response never dangerFullAccess null
Persisted turn_context never danger-full-access null
Cold thread/resume response never workspaceWrite null

In the original TUI session, this followed:

Reconnected. No input was resent. Review uncertain submissions before retrying; recovered queues remain paused.

The recovered-queue pause is intentional and is not the bug. This report concerns the permission loss. The isolated reproduction confirms sandbox loss; it does not demonstrate a change from never to on-request.

What steps can reproduce the bug?

Use a temporary CODEX_HOME and a local mock Responses server. Do not restart a daemon serving real work.

  1. Configure the isolated server with approval_policy = "on-request", sandbox_mode = "workspace-write", and a mock provider with requires_openai_auth = false.

  2. Start codex app-server over stdio and send initialize, then initialized.

  3. Send thread/start with a temporary workspace and the legacy YOLO-equivalent fields:

    {"approvalPolicy":"never","sandbox":"danger-full-access"}
  4. Submit one turn/start and let the mock provider return a short completed response. This is necessary to persist a resumable rollout; thread/start alone was insufficient.

  5. Verify the resulting turn_context contains approval_policy = "never", sandbox_policy.type = "danger-full-access", and no active named permission profile.

  6. Close the first server cleanly. In the reproduction it exited with code 0.

  7. Start a second instance of the same binary with the same temporary home and unchanged configuration. Initialize it, then send:

    {"method":"thread/resume","params":{"threadId":"<saved-thread-id>","excludeTurns":true}}
  8. The response now reports approvalPolicy = "never", sandbox.type = "workspaceWrite", and activePermissionProfile = null.

No mobile handoff, manual CLI resume without --yolo, mixed client/server versions, or external model request is involved in this reproduction.

What is the expected behavior?

An automatic reconnect of a CLI launched with --yolo should preserve its explicit permission choice for subsequent input, unless the user changes that choice or host policy rejects it. Recovered queues should remain paused as they do today.

Additional information

The installed-binary experiment proves the app-server cold-resume transition. The connection to automatic TUI reconnect is established by the current source path:

A focused TUI fix can retain explicit launch permissions using the existing runtime override mechanism, then apply them only to fresh input after reconnect. That would not repair work the daemon already recovered before the client reattached. A broader option is representing explicit YOLO access with a persistable built-in permission profile, subject to compatibility and server-policy review.

Related: #47454 and #29054. This report isolates app-server restart and ID-only resume, rather than mobile continuation or manually resuming without repeating --yolo.

Standalone Node.js reproduction (no dependencies or API credentials)

Save as repro.mjs, then run node repro.mjs /absolute/path/to/codex. It creates a temporary home, uses one loopback mock response, and stops only its two app-server children. The temporary home is retained for inspection.

import { execFileSync, spawn } from 'node:child_process';
import fs from 'node:fs';
import http from 'node:http';
import os from 'node:os';
import path from 'node:path';
import readline from 'node:readline';

if (!process.argv[2]) {
  console.error('Usage: node /tmp/codex-yolo-cold-resume-repro.mjs <codex-binary>');
  process.exit(2);
}
const codex = path.resolve(process.argv[2]);
fs.accessSync(codex, fs.constants.X_OK);
const codexVersion = execFileSync(codex, ['--version'], { encoding: 'utf8' }).trim();
const home = fs.mkdtempSync(path.join(os.tmpdir(), 'codex-yolo-cold-resume-'));
const cwd = path.join(home, 'workspace');
fs.mkdirSync(cwd);
fs.mkdirSync(path.join(home, 'tmp'));
let mockResponseCount = 0;
const sse = [
  { type: 'response.created', response: { id: 'mock-response' } },
  {
    type: 'response.output_item.done',
    item: {
      type: 'message',
      role: 'assistant',
      id: 'mock-message',
      content: [{ type: 'output_text', text: 'mocked' }],
    },
  },
  {
    type: 'response.completed',
    response: {
      id: 'mock-response',
      usage: {
        input_tokens: 0,
        input_tokens_details: null,
        output_tokens: 0,
        output_tokens_details: null,
        total_tokens: 0,
      },
    },
  },
].map((event) => `data: ${JSON.stringify(event)}\n\n`).join('') + 'data: [DONE]\n\n';
const mock = http.createServer((request, response) => {
  if (!request.url?.endsWith('/responses')) {
    response.writeHead(200, { 'content-type': 'application/json' });
    response.end('[]');
    return;
  }
  mockResponseCount += 1;
  request.resume();
  request.on('end', () => {
    response.writeHead(200, { 'content-type': 'text/event-stream', 'cache-control': 'no-cache' });
    response.end(sse);
  });
});

function launchAppServer() {
  const child = spawn(codex, ['app-server', '--listen', 'stdio://'], {
    cwd,
    env: {
      PATH: process.env.PATH,
      HOME: home,
      CODEX_HOME: home,
      CODEX_APP_SERVER_MANAGED_CONFIG_PATH: path.join(home, 'managed_config.toml'),
      TMPDIR: path.join(home, 'tmp'),
      RUST_LOG: 'error',
    },
    stdio: ['pipe', 'pipe', 'pipe'],
  });
  const lines = readline.createInterface({ input: child.stdout });
  const pending = new Map();
  const notifications = [];
  const notificationWaiters = [];
  let stderr = '';
  let nextId = 1;
  child.stderr.on('data', (chunk) => { stderr += chunk.toString(); });
  lines.on('line', (line) => {
    let message;
    try { message = JSON.parse(line); } catch { return; }
    if (message.id != null && pending.has(message.id)) {
      const waiter = pending.get(message.id);
      pending.delete(message.id);
      waiter.resolve(message);
      return;
    }
    if (!message.method) return;
    notifications.push(message);
    const index = notificationWaiters.findIndex((waiter) => waiter.method === message.method);
    if (index >= 0) notificationWaiters.splice(index, 1)[0].resolve(message);
  });
  return {
    child,
    request(method, params) {
      const id = nextId++;
      const result = new Promise((resolve, reject) => {
        const timeout = setTimeout(() => {
          pending.delete(id);
          reject(new Error(`timed out waiting for ${method}; stderr=${stderr}`));
        }, 20000);
        pending.set(id, {
          resolve: (message) => { clearTimeout(timeout); resolve(message); },
        });
      });
      child.stdin.write(`${JSON.stringify({ jsonrpc: '2.0', id, method, params })}\n`);
      return result;
    },
    notify(method) {
      child.stdin.write(`${JSON.stringify({ jsonrpc: '2.0', method })}\n`);
    },
    waitForNotification(method) {
      const index = notifications.findIndex((message) => message.method === method);
      if (index >= 0) return Promise.resolve(notifications.splice(index, 1)[0]);
      return new Promise((resolve, reject) => {
        const timeout = setTimeout(() => reject(new Error(`timed out waiting for ${method}; stderr=${stderr}`)), 20000);
        notificationWaiters.push({
          method,
          resolve: (message) => { clearTimeout(timeout); resolve(message); },
        });
      });
    },
    stop() {
      return new Promise((resolve) => {
        child.once('exit', (code, signal) => resolve({ code, signal, stderr }));
        child.kill('SIGTERM');
      });
    },
  };
}

async function rpc(server, method, params) {
  const message = await server.request(method, params);
  if (message.error) throw new Error(`${method}: ${JSON.stringify(message.error)}`);
  return message.result;
}

async function initialize(server) {
  await rpc(server, 'initialize', {
    clientInfo: { name: 'isolated-yolo-repro', version: '1' },
    capabilities: { experimentalApi: true },
  });
  server.notify('initialized');
}

function rolloutTurnContext() {
  const files = [];
  const visit = (directory) => {
    if (!fs.existsSync(directory)) return;
    for (const entry of fs.readdirSync(directory, { withFileTypes: true })) {
      const entryPath = path.join(directory, entry.name);
      if (entry.isDirectory()) visit(entryPath);
      else if (entry.name.startsWith('rollout-') && entry.name.endsWith('.jsonl')) files.push(entryPath);
    }
  };
  visit(path.join(home, 'sessions'));
  for (const file of files) {
    for (const line of fs.readFileSync(file, 'utf8').split('\n')) {
      if (!line) continue;
      const record = JSON.parse(line);
      if (record.type === 'turn_context') {
        return {
          approvalPolicy: record.payload.approval_policy,
          sandboxPolicy: record.payload.sandbox_policy,
          permissionProfile: record.payload.permission_profile,
          activePermissionProfile: record.payload.active_permission_profile ?? null,
        };
      }
    }
  }
  throw new Error('no persisted turn_context found');
}

let first;
let second;
(async () => {
  await new Promise((resolve) => mock.listen(0, '127.0.0.1', resolve));
  const providerUrl = `http://127.0.0.1:${mock.address().port}/v1`;
  fs.writeFileSync(path.join(home, 'config.toml'), [
    'model = "mock-model"',
    'model_provider = "mock"',
    'approval_policy = "on-request"',
    'sandbox_mode = "workspace-write"',
    '',
    '[model_providers.mock]',
    'name = "loopback mock"',
    `base_url = "${providerUrl}"`,
    'wire_api = "responses"',
    'requires_openai_auth = false',
    '',
  ].join('\n'));
  fs.writeFileSync(path.join(home, 'managed_config.toml'), '');

  first = launchAppServer();
  await initialize(first);
  const started = await rpc(first, 'thread/start', {
    cwd,
    model: 'mock-model',
    modelProvider: 'mock',
    approvalPolicy: 'never',
    sandbox: 'danger-full-access',
  });
  await first.waitForNotification('thread/started');
  await rpc(first, 'turn/start', {
    threadId: started.thread.id,
    input: [{ type: 'text', text: 'reply with mocked output' }],
  });
  await first.waitForNotification('turn/completed');
  const persistedContext = rolloutTurnContext();
  const firstExit = await first.stop();
  first = null;

  second = launchAppServer();
  await initialize(second);
  const resumed = await rpc(second, 'thread/resume', {
    threadId: started.thread.id,
    excludeTurns: true,
  });
  const secondExit = await second.stop();
  second = null;
  mock.close();

  const summary = {
    codexVersion,
    appServerExitCodes: [firstExit.code, secondExit.code],
    localMockResponses: mockResponseCount,
    startResponse: {
      approvalPolicy: started.approvalPolicy,
      sandboxType: started.sandbox.type,
      activePermissionProfile: started.activePermissionProfile ?? null,
    },
    persistedTurnContext: {
      approvalPolicy: persistedContext.approvalPolicy,
      sandboxType: persistedContext.sandboxPolicy.type,
      permissionProfileType: persistedContext.permissionProfile.type,
      activePermissionProfile: persistedContext.activePermissionProfile,
    },
    coldResumeResponse: {
      approvalPolicy: resumed.approvalPolicy,
      sandboxType: resumed.sandbox.type,
      activePermissionProfile: resumed.activePermissionProfile ?? null,
    },
  };
  if (summary.appServerExitCodes.some((code) => code !== 0)) throw new Error(`unclean exit: ${JSON.stringify(summary)}`);
  if (summary.localMockResponses !== 1) throw new Error(`expected one loopback response: ${JSON.stringify(summary)}`);
  if (summary.startResponse.sandboxType !== 'dangerFullAccess') throw new Error(`unexpected start settings: ${JSON.stringify(summary)}`);
  if (summary.persistedTurnContext.sandboxType !== 'danger-full-access') throw new Error(`unexpected persisted settings: ${JSON.stringify(summary)}`);
  if (summary.coldResumeResponse.sandboxType !== 'workspaceWrite') throw new Error(`expected reproduced downgrade: ${JSON.stringify(summary)}`);
  console.log(JSON.stringify(summary, null, 2));
})().catch(async (error) => {
  if (first?.child && first.child.exitCode == null) await first.stop();
  if (second?.child && second.child.exitCode == null) await second.stop();
  mock.close();
  console.error(error.stack || error);
  process.exitCode = 1;
});

Verified output on the installed binary:

{
  "codexVersion": "codex-cli 0.158.0",
  "appServerExitCodes": [
    0,
    0
  ],
  "localMockResponses": 1,
  "startResponse": {
    "approvalPolicy": "never",
    "sandboxType": "dangerFullAccess",
    "activePermissionProfile": null
  },
  "persistedTurnContext": {
    "approvalPolicy": "never",
    "sandboxType": "danger-full-access",
    "permissionProfileType": "disabled",
    "activePermissionProfile": null
  },
  "coldResumeResponse": {
    "approvalPolicy": "never",
    "sandboxType": "workspaceWrite",
    "activePermissionProfile": null
  }
}

Activity

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

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. bvolpato commented on Sep 28, 2026

    @bvolpato
    Author

    The TUI regression also confirms the second half of this path: after a cold reconnect, a fresh turn/start drops the explicit launch sandbox. With the pre-fix startup behavior, the regression fails with Null instead of "dangerFullAccess"; with the proposed fix it passes.

    I published a signed reference patch. Following the current contribution policy, I have not opened an external PR.

    The patch remembers explicit local launch approval/sandbox choices using the existing runtime override mechanism. The regression covers YOLO, each flag independently, later picker changes, and no explicit launch override. Reconnect still sends no permission overrides and does not replay input. This fixes fresh input after TUI reattachment; it does not change work the server already recovered before the client reattached.

    Validation against main 88e9a8329d17bd141e4f3f0e7c78d07a7baa8b23, using pinned Rust 1.95.0:

    • Focused regression: fails before, passes after, five scenarios.
    • just test -p codex-tui: 5,559 passed, 9 failed, 1 timed out, 8 skipped. The failures were in unchanged cursor snapshot and IDE IPC tests.
    • Targeted environment-corrected rerun: all 13 cursor/IDE tests passed, including all failures and the timeout above. The initial shell had NO_COLOR=1, which stripped expected ANSI sequences, and umask 002, which made temporary directories fail the IDE socket security check. Rerun used NO_COLOR unset, TERM=xterm-256color, and umask 022. No source changes were made for those failures.
    • just clippy -p codex-tui, just fmt, and git diff --check passed. Clippy reported an existing unused import in core.

    I also reviewed the suggested duplicate #49078. It documents a historical resume incident without a deterministic reproduction. This report adds an isolated 0.158.0 cold-restart reproduction and the TUI regression; the two incidents may share a cause, but I have not established that from the other report's logs.

  4. Mar-IA-no commented on Sep 30, 2026

    @Mar-IA-no

    Independently reproduced on Linux with Codex CLI 0.159.0, using isolated app-server restart and ID-only thread/resume (local mock, no API credentials).

    With default permissions :workspace:

    • Legacy sandbox=danger-full-access: Full Access becomes workspace-write; approval remains never.
    • Named profile permissions=:danger-full-access: Full Access survives the same restart/resume.

    Practical mitigation: select Full Access via /permissions. We verified that this activates the named profile locally. Automatic TUI reconnect was not tested.

  5. grosen-friis commented on Oct 1, 2026

    @grosen-friis

    Additional field evidence from a joint troubleshooting session between Developer Grosen Friis and ChatGPT (GPT-5.6 Sol).

    ChatGPT directed the diagnostic process step-by-step. The Developer executed the requested read-only diagnostic commands on the affected Debian host and returned the raw outputs for analysis. The findings below were reconstructed from Codex rollout JSONL files, Codex SQLite state/log databases, Linux /proc and socket information, file timestamps, and codex doctor --json.

    This appears to independently confirm the permission-loss mechanism described in this issue, and adds an observation involving two simultaneous CLI sessions sharing the same managed app-server.

    Environment

    • Debian 13 (trixie), x86_64
    • Two Codex CLI sessions running concurrently as the same ordinary Linux user (not root)
    • Both launched with --dangerously-bypass-approvals-and-sandbox
    • Interactive CLI version: 0.159.2
    • Managed app-server later became: 0.159.3
    • codex doctor --json subsequently confirmed:
      • Codex version: 0.159.2
      • app-server version: 0.159.3
      • daemon_auto_start enabled
      • in_app_updates enabled

    The two sessions were working on unrelated projects.

    Both threads definitely started with Full Access

    The rollout history showed that both sessions originally had:

    danger-full-access
    Network access is enabled
    approval_policy = never
    permission_profile = disabled

    Therefore this was not a case where the affected sessions had originally been launched in workspace mode.

    Failure timeline

    The managed app-server 0.159.3 binary appeared locally immediately before the failure:

    Birth: 2026-10-01 00:39:36.217 +0100
    Change: 2026-10-01 00:39:38.493 +0100

    The following sequence was then reconstructed (timestamps below are UTC):

    23:39:38.857 — shared Unix socket created

    23:39:38.861 — new managed app-server logs sandbox/bubblewrap initialization

    23:39:39.700 — CUSTOMER thread changes to :workspace / network=restricted

    23:39:39.786 — PRIVATE thread changes to :workspace / network=restricted

    23:39:39.860 — CUSTOMER thread receives the restricted workspace settings again

    The resulting thread settings included:

    permission_profile.type = managed

    active_permission_profile.id = :workspace

    network = restricted

    approval_policy = never

    Importantly, neither thread was executing an ordinary model turn when this occurred. The permission changes appeared between normal turns.

    Both CLI sessions shared the same managed app-server

    Linux Unix-socket inspection established that both CLI processes were connected to the same managed app-server:

    customer CLI PID 1376724 -> managed app-server PID 1465345

    private CLI PID 1444857 -> managed app-server PID 1465345

    The app-server command line was:

    codex app-server --listen unix:// --managed-daemon

    The long-lived updater/watcher process was:

    codex app-server daemon pid-update-loop

    The daemon release directories showed this progression:

    0.158.0 — Sep 28
    0.159.0 — Sep 29
    0.159.1 — Sep 29
    0.159.2 — Sep 30
    0.159.3 — Oct 1 at approximately 00:39 local time

    At the time of the failure, the two interactive CLI processes remained version 0.159.2 while the newly activated shared managed app-server was version 0.159.3.

    This strongly correlates the permission reset with activation/replacement of the managed app-server.

    We have NOT proven that the version mismatch itself is required to trigger the bug; that remains an inference from the observed timing and state.

    Functional symptom

    After the transition, operations requiring network access failed inside Codex, including DNS-dependent operations, SSH and mail-related operations.

    At the same time, DNS and network access continued to work normally on the host when tested directly as the same Linux user.

    This initially looked as if Codex was gradually "restricting itself", but examination of the rollout history instead showed a discrete thread_settings_applied transition.

    Recovery without restarting Codex

    We also found a useful workaround.

    Restarting the CLI is NOT required.

    Inside the affected running session:

    /permissions

    then selecting:

    Full Access

    immediately generated new thread settings containing:

    permission_profile = disabled

    active_permission_profile.id = :danger-full-access

    After this change, getent hosts google.com immediately succeeded from the SAME existing Codex session.

    Therefore /permissions -> Full Access appears to be a working field recovery when this occurs.

    Additional significance

    This case adds evidence that a single shared managed app-server lifecycle/update event can alter permissions on multiple already-running, unrelated CLI threads within milliseconds of each other.

    The close timing was:

    1. app-server 0.159.3 appears locally
    2. managed app-server starts and creates its Unix socket
    3. both unrelated existing Full Access threads are changed to :workspace
    4. their network access becomes restricted

    The Developer can provide sanitized rollout excerpts, timestamps, codex doctor output, or run additional diagnostics if useful.

    Contact: [email protected]

  6. etraut-openai commented on Oct 1, 2026

    @etraut-openai
    Contributor

    Thanks for the report. We have fix in place for this issue, and it will be included in an upcoming release (0.161.0).

  7. kaminsod commented on Oct 7, 2026

    @kaminsod

    Additional recurring Linux case (2026-10-07, privacy-reduced)

    This is another occurrence of the same permission-profile drift, with two details that may help narrow it down: it has recurred roughly 20 times across multiple long-running sessions, and the transition can invalidate active unified-exec work rather than merely restricting the next command.

    Environment:

    • Codex CLI: 0.160.1
    • app-server daemon package: 0.161.0
    • Platform: Linux x86_64, kernel 7.2.8-arch1-2
    • Local app-server-backed session

    Before the transition, the active thread context was effectively:

    approval_policy = never
    sandbox_mode = danger-full-access
    permission_profile.type = disabled
    filesystem = unrestricted
    network = enabled
    

    No permissions UI, host configuration, operating-system policy, network configuration, or repository setting was changed. During a later turn in the same thread, the injected context became:

    approval_policy = never
    sandbox_mode = workspace-write
    permission_profile.type = managed
    filesystem = root read-only; workspace writable; .git explicitly read-only
    network = restricted
    

    Concrete impact observed in this occurrence:

    1. A long-running command was active in unified exec when the context changed. Its next poll returned write_stdin failed: Unknown process id ....
    2. The previously running local child service was no longer observable, and the incomplete workload emitted no final artifacts, forcing a full restart.
    3. Restarting the service inside the new context failed while binding a localhost TCP port with socket: operation not permitted.
    4. Two otherwise-passing loopback tests failed at TcpListener::bind with PermissionDenied / Operation not permitted.
    5. GitHub CLI access failed with error connecting to api.github.com, consistent with the newly restricted network policy.
    6. Normal commit/push work was blocked because .git was explicitly read-only and outbound network access was disabled.

    The host remained available and comparable Claude Code and OpenCode sessions continued operating normally. This has happened across multiple Codex sessions without deliberate permission changes; restarting or resuming is often required, after which full access may return until the next recurrence.

    This looks like more than a misleading UI label: the effective sandbox changes and an active tool session can be lost. Useful investigation points would be:

    • record which client/configuration layer supplied every permission-profile transition;
    • preserve the selected effective profile across continuation, compaction, and context refresh;
    • do not invalidate active unified-exec sessions when turn context is refreshed;
    • surface an explicit event if a profile change is intentional; and
    • include a privacy-safe effective-profile transition history in codex doctor.

    No conversation transcript, task/session identifiers, usernames, repository names, absolute paths, credentials, source code, or private host/network details are included here. Additional narrowly scoped diagnostics can be collected if maintainers specify what is needed.

  8. asamarts commented on Oct 7, 2026

    @asamarts

    This issue is not resolved, I am on 0.161.0, and I am repeatedly seeing my codex sessions enter restricted sandbox mode, for no apparent reason, whatsoever - losing access to tools, and seeing the working directory as read-only, etc.

    I launch 5-10 sessions/prompts in codex, come up back 20 mins later, most of them are in a broken state where they are unable to proceed due to this (or very similar issue).

    This is making codex pretty much unusable at this point. @etraut-openai

  9. etraut-openai commented on Oct 7, 2026

    @etraut-openai
    Contributor

    @asamarts, are you perhaps running an app server daemon that predates 0.161.0? If you run /status, it will tell you which version your app server is running. Or you can use codex app-server daemon version. If you use the standalone (curl) installer, the daemon should be updated along with the CLI. If you're using a different install mechanism, you may need to initiate an update using /daemon.

    If that's not the explanation, we'll need to dig deeper to understand the behavior you're seeing. I'll need additional details to investigate further. The easiest way is to use /feedback and post your session ID here.

  10. asamarts commented on Oct 8, 2026

    @asamarts

    All on 0.161.0 @etraut-openai:

    codex --version:

    codex-cli 0.161.0
    

    codex app-server daemon version:

    {"status":"running","backend":"pid","managedCodexPath":"<redacted>","managedCodexVersion":"0.161.0","socketPath":"<redacted>","cliVersion":"0.161.0","appServerVersion":"0.161.0"}
    

    /status:

    
      >_ OpenAI Codex (v0.161.0)
    
      Visit https://chatgpt.com/settings/usage for up-to-date
      information on rate limits and credits
    
      Server:              Local background server
    
      Model:               GPT-5.6-Sol (reasoning xhigh)
      Model provider:      openai
      Directory:           <redacted>
      Permissions:         Full Access
      Agents.md:           <none>
      Account:             Pro 200
      Thread name:         <redacted>
      Collaboration mode:  Default
      Session:             <redacted>
    
     <redacted>
    

    In my case I don't think there are any restarts happening to trigger this. I just work across multiple sessions and after a while they randomly start losing write access to the directory, access to MCP and other tools. Usually an /exit followed by codex resume resolves the issue... but when stacked on top of multiple other issues codex currently has... almost unuseable at this point.

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