Skip to content

Commands fail for ancient versions of codex #393

Description

@jasonLaster

I got this error when I tried to run a command with codex v0.36. I recommend first checking the current version of codex and showing an upgrade pane if it's below a minimum version.

Received invalid JSON from codex app-server.

Image

application logs

[2026-03-07T15:44:38.861Z] ---- APP SESSION START run=20ad2dd696e0 pid=41804 port=49250 cwd=/Users/jaylast ----
(node:41804) ExperimentalWarning: SQLite is an experimental feature and might change at any time
(Use `T3 Code (Alpha) --trace-warnings ...` to show where the warning was created)
[08:44:39.285] INFO (#10): Running migrations...
[08:44:39.291] INFO (#10): Migrations ran successfully
[08:44:39.853] INFO (#34): orchestration projection pipeline bootstrapped { projectors: 9 }
[08:44:39.854] INFO (#34): orchestration engine started { sequence: 0 }
[08:44:40.089] INFO (#10): T3 Code running {
  mode: 'desktop',
  port: 49250,
  cwd: '/Users/jaylast',
  keybindingsConfigPath: '/Users/jaylast/.t3/userdata/keybindings.json',
  host: '127.0.0.1',
  stateDir: '/Users/jaylast/.t3/userdata',
  staticDir: '/Applications/T3 Code (Alpha).app/Contents/Resources/app.asar/apps/server/dist/client',
  noBrowser: true,
  autoBootstrapProjectFromCwd: false,
  logWebSocketEvents: false,
  devUrl: undefined,
  authEnabled: true
}
[08:46:28.975] WARN (#70): provider command reactor failed to process event {
  eventType: 'thread.turn-start-requested',
  cause: 'Error: Provider adapter process error (codex) for thread cbc92f3f-6466-424c-81a7-629a0bdf5492: Timed out waiting for initialize.\n' +
    '    at catch (file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/index.mjs:11173:22)\n' +
    '    at file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/node_modules/effect/dist/internal/effect.js:685:103\n' +
    '    at Effect.fn (Alpha)\n' +
    '    at Effect.fn (definition) (Alpha) {\n' +
    '  [cause]: Error: Timed out waiting for initialize.\n' +
    '      at CodexAppServerManager.startSession (file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/index.mjs:9644:10) {\n' +
    '    [cause]: Error: Timed out waiting for initialize.\n' +
    '        at Timeout._onTimeout (file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/index.mjs:10008:28)\n' +
    '        at listOnTimeout (node:internal/timers:605:17)\n' +
    '        at process.processTimers (node:internal/timers:541:7)\n' +
    '  }\n' +
    '}'
}
[08:46:48.982] WARN (#70): provider command reactor failed to process event {
  eventType: 'thread.turn-start-requested',
  cause: 'Error: Provider adapter process error (codex) for thread cbc92f3f-6466-424c-81a7-629a0bdf5492: Timed out waiting for initialize.\n' +
    '    at catch (file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/index.mjs:11173:22)\n' +
    '    at file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/node_modules/effect/dist/internal/effect.js:685:103\n' +
    '    at Effect.fn (Alpha)\n' +
    '    at Effect.fn (definition) (Alpha) {\n' +
    '  [cause]: Error: Timed out waiting for initialize.\n' +
    '      at CodexAppServerManager.startSession (file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/index.mjs:9644:10) {\n' +
    '    [cause]: Error: Timed out waiting for initialize.\n' +
    '        at Timeout._onTimeout (file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/index.mjs:10008:28)\n' +
    '        at listOnTimeout (node:internal/timers:605:17)\n' +
    '        at process.processTimers (node:internal/timers:541:7)\n' +
    '  }\n' +
    '}'
}
[08:47:56.157] WARN (#70): provider command reactor failed to process event {
  eventType: 'thread.turn-start-requested',
  cause: "Error: Provider validation failed in ProviderService.sendTurn: Cannot route thread 'cbc92f3f-6466-424c-81a7-629a0bdf5492' because no persisted provider binding exists.\n" +
    '    at toValidationError (file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/index.mjs:11379:9)\n' +
    '    at Array.<anonymous> (file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/index.mjs:11477:31)\n' +
    '    at Effect.fn (Alpha)\n' +
    '    at Effect.fn (definition) (Alpha)'
}
[08:48:39.707] WARN (#70): provider command reactor failed to process event {
  eventType: 'thread.turn-start-requested',
  cause: 'Error: Provider adapter process error (codex) for thread 466e529d-dbd6-44c4-a3c6-f9c473dd27a5: Timed out waiting for initialize.\n' +
    '    at catch (file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/index.mjs:11173:22)\n' +
    '    at file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/node_modules/effect/dist/internal/effect.js:685:103\n' +
    '    at Effect.fn (Alpha)\n' +
    '    at Effect.fn (definition) (Alpha) {\n' +
    '  [cause]: Error: Timed out waiting for initialize.\n' +
    '      at CodexAppServerManager.startSession (file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/index.mjs:9644:10) {\n' +
    '    [cause]: Error: Timed out waiting for initialize.\n' +
    '        at Timeout._onTimeout (file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/index.mjs:10008:28)\n' +
    '        at listOnTimeout (node:internal/timers:605:17)\n' +
    '        at process.processTimers (node:internal/timers:541:7)\n' +
    '  }\n' +
    '}'
}

Activity

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

    needs more infoInitial triage showed no bug. Awaiting more info

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions