Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(tasks): upgrade codex for gpt-6.1-sol subscription access (#110285)

Shy Alter94322ae1f4fa
diff --git a/docs/internal/task-run-api.md b/docs/internal/task-run-api.md
index e0fe6a202797..b92391f90652 100644
--- a/docs/internal/task-run-api.md
+++ b/docs/internal/task-run-api.md
@@ -48,6 +48,7 @@ Run responses omit internal cost accounting, including gateway request IDs.
## Model selection
Task runs accept `gpt-6.1-sol` with the `codex` runtime adapter and `low`, `medium`, `high`, `xhigh`, or `max` reasoning effort.
+The bundled Codex 0.159.2 runtime supports this model with ChatGPT subscription billing.
The task model catalog supplies the web and Desktop pickers with the model name, reasoning levels, and public price comparison.
The gateway must list the model for the task's product before the picker offers it.
Adding the model does not change the default model or the capability slider.
diff --git a/packages/agent/packages/agent/package.json b/packages/agent/packages/agent/package.json
index f73135f51c8d..c62cba2ac6f2 100644
--- a/packages/agent/packages/agent/package.json
+++ b/packages/agent/packages/agent/package.json
@@ -184,7 +184,7 @@
"@earendil-works/pi-ai": "catalog:",
"@earendil-works/pi-coding-agent": "catalog:",
"@hono/node-server": "^1.19.9",
- "@openai/codex": "0.154.0",
+ "@openai/codex": "0.159.2",
"@opentelemetry/api": "^1.9.1",
"@opentelemetry/api-logs": "^0.208.0",
"@opentelemetry/exporter-logs-otlp-http": "^0.208.0",
diff --git a/packages/agent/pnpm-lock.yaml b/packages/agent/pnpm-lock.yaml
index ac1e94467c4e..c7d64e339e41 100644
--- a/packages/agent/pnpm-lock.yaml
+++ b/packages/agent/pnpm-lock.yaml
@@ -89,8 +89,8 @@ importers:
specifier: 1.29.0
version: 1.29.0([email protected])
'@openai/codex':
- specifier: 0.154.0
- version: 0.154.0
+ specifier: 0.159.2
+ version: 0.159.2
'@opentelemetry/api':
specifier: ^1.9.1
version: 1.9.1
@@ -1241,43 +1241,43 @@ packages:
'@open-draft/[email protected]':
resolution: {integrity: sha512-U69T3ItWHvLwGg5eJ0n3I62nWuE6ilHlmz7zM0npLBRvPRd7e6NYmg54vvRtP5mZG7kZqZCFVdsTWo7BPtBujg==}
- '@openai/[email protected]':
- resolution: {integrity: sha512-FV/x1OHXYv/ifjf3mXj9ThTTAWcUZN6cGIRQRhRxkKNOPuImu1WW0c8ev1vUkE9XGH90dEnYG1tBjIkxRikg0w==}
+ '@openai/[email protected]':
+ resolution: {integrity: sha512-SE13C3nZCYoVL569BdegoOl6vwjb7o2sXOo7ivwVzaVoY0cswwi0/6pIE0TyO/C0vIkQh3jslExitET7PBTfIg==}
engines: {node: '>=16'}
hasBin: true
- '@openai/[email protected]':
- resolution: {integrity: sha512-HP/vJCH/t2hB9Kg6hotN9UglClJ6/z584fal5lEP14C9gNAgAQS4/kTQC7l5V+BA3TqwDPwINSjul28cX8AYXg==}
+ '@openai/[email protected]':
+ resolution: {integrity: sha512-7SPaPFU0tdqapQ5VEgrF+wb+p9dxfWfLMXMKZMRKoWPn/tLMajlMjYBBnu8o6VtaVH2DHQ6kpnp5TMkv5bqvrg==}
engines: {node: '>=16'}
cpu: [arm64]
os: [darwin]
- '@openai/[email protected]':
- resolution: {integrity: sha512-2aqz+72Hop8PF2RYglQ4JnGjm3OlRIrTykJIT0hyLeUgM6NCFy09RgTmqRCoWliKQZjEn9jjZqUEp7QujAj77g==}
+ '@openai/[email protected]':
+ resolution: {integrity: sha512-VPZGYHH2yVn8S3IuxJk38vxhBADJZp68IBL8hr4quJ2R7jM16l43TLCwRemN+1J27V/cs771fbx63aGRf5F8JA==}
engines: {node: '>=16'}
cpu: [x64]
os: [darwin]
- '@openai/[email protected]':
- resolution: {integrity: sha512-KmTCB6ST484zeYlPpKP/K5P/gRaYmt6TihVD+zotoe6O9q0JSBP+FYvCz4A/zZXR7xDOHURTSjHp0sD8wWS0YQ==}
+ '@openai/[email protected]':
+ resolution: {integrity: sha512-Pm0W2PnFeTEqPx+AOIwgOVB4dBtY24cuD0tx1hjCor60CbSAT7WBPZVNUINSrTCDrMndvQC67p71ZEz+gmPPkA==}
engines: {node: '>=16'}
cpu: [arm64]
os: [linux]
- '@openai/[email protected]':
- resolution: {integrity: sha512-a4FI3A8sGtwGrOqltrPbrS2hajrHQG591EwmRfiRoLMb10VxdBtUGW4gu6IJVYENiYGA7k3P4jlRHEoCZU/s9Q==}
+ '@openai/[email protected]':
+ resolution: {integrity: sha512-RrCZ1X52wpa1lOsXtCtSyhjOFdQPh7LH5Ccv8HsKmd/2UXbUwxXFqWXFK3JzatquUNGtW/TLox5Y7qVOGkV0/Q==}
engines: {node: '>=16'}
cpu: [x64]
os: [linux]
- '@openai/[email protected]':
- resolution: {integrity: sha512-CRUmZnE0Y/a8aLMrrA681EytOGaPaF659wJAiI4I3hsbQjaeYBSPV7PkCjy4Qn5LR/fmwIUORVH+6JaBNQL+tw==}
+ '@openai/[email protected]':
+ resolution: {integrity: sha512-8+xM4Wj2J38ieRse9kzbMRQQc2d+kvck2Zm2+gX2sth5RXPZQ1yqYhFmevHLC8IO73syk2xiIclH0qvoc97pgg==}
engines: {node: '>=16'}
cpu: [arm64]
os: [win32]
- '@openai/[email protected]':
- resolution: {integrity: sha512-Stg2KEJPIKVqPPR1wCverGOR4ey3RR3cvakR07w7FNKQUMzmHaOZomRsP2bR1qOT/67yHsks9rB+MCMfIWXcRA==}
+ '@openai/[email protected]':
+ resolution: {integrity: sha512-1ZJVTO40/ZaHPUUWc3uCX73jwzJRaDxAjRQEf37dC5Q3h1fp/Z7+1L8oX3bPlXgjhEY6kHW3rm0wz2sdQ5rxNw==}
engines: {node: '>=16'}
cpu: [x64]
os: [win32]
@@ -4081,31 +4081,31 @@ snapshots:
'@open-draft/[email protected]': {}
- '@openai/[email protected]':
+ '@openai/[email protected]':
optionalDependencies:
- '@openai/codex-darwin-arm64': '@openai/[email protected]'
- '@openai/codex-darwin-x64': '@openai/[email protected]'
- '@openai/codex-linux-arm64': '@openai/[email protected]'
- '@openai/codex-linux-x64': '@openai/[email protected]'
- '@openai/codex-win32-arm64': '@openai/[email protected]'
- '@openai/codex-win32-x64': '@openai/[email protected]'
+ '@openai/codex-darwin-arm64': '@openai/[email protected]'
+ '@openai/codex-darwin-x64': '@openai/[email protected]'
+ '@openai/codex-linux-arm64': '@openai/[email protected]'
+ '@openai/codex-linux-x64': '@openai/[email protected]'
+ '@openai/codex-win32-arm64': '@openai/[email protected]'
+ '@openai/codex-win32-x64': '@openai/[email protected]'
- '@openai/[email protected]':
+ '@openai/[email protected]':
optional: true
- '@openai/[email protected]':
+ '@openai/[email protected]':
optional: true
- '@openai/[email protected]':
+ '@openai/[email protected]':
optional: true
- '@openai/[email protected]':
+ '@openai/[email protected]':
optional: true
- '@openai/[email protected]':
+ '@openai/[email protected]':
optional: true
- '@openai/[email protected]':
+ '@openai/[email protected]':
optional: true
'@opentelemetry/[email protected]':
diff --git a/packages/agent/pnpm-workspace.yaml b/packages/agent/pnpm-workspace.yaml
index 7acfec9aab59..26b191cc9bee 100644
--- a/packages/agent/pnpm-workspace.yaml
+++ b/packages/agent/pnpm-workspace.yaml
@@ -47,6 +47,9 @@ ignoredBuiltDependencies:
minimumReleaseAge: 10080
minimumReleaseAgeExclude:
+ - >-
+ @openai/[email protected] || 0.159.2-darwin-arm64 || 0.159.2-darwin-x64 ||
+ 0.159.2-linux-arm64 || 0.159.2-linux-x64 || 0.159.2-win32-arm64 || 0.159.2-win32-x64
- '@agentclientprotocol/sdk'
- '@anthropic-ai/claude-agent-sdk'
- '@anthropic-ai/claude-agent-sdk-darwin-arm64'
diff --git a/products/desktop/apps/code/scripts/download-binaries.mjs b/products/desktop/apps/code/scripts/download-binaries.mjs
index 584348bbee3e..0c88bd14148a 100644
--- a/products/desktop/apps/code/scripts/download-binaries.mjs
+++ b/products/desktop/apps/code/scripts/download-binaries.mjs
@@ -19,7 +19,7 @@ import { extract } from "tar";
const __dirname = dirname(fileURLToPath(import.meta.url));
const DEST_DIR = join(__dirname, "..", "resources", "codex-acp");
-const CODEX_VERSION = "0.154.0";
+const CODEX_VERSION = "0.159.2";
function nativeTarget() {
const { platform, arch } = process;
diff --git a/products/desktop/docs/LOCAL-DEVELOPMENT.md b/products/desktop/docs/LOCAL-DEVELOPMENT.md
index 4b4d983c6bab..0e73b0464fdd 100644
--- a/products/desktop/docs/LOCAL-DEVELOPMENT.md
+++ b/products/desktop/docs/LOCAL-DEVELOPMENT.md
@@ -70,8 +70,8 @@ openssl genrsa 2048 | openssl pkcs8 -topk8 -nocrypt -outform PEM | \
## Bundled agent versions
-The desktop app bundles Codex 0.154.0 and Claude Code 2.1.280 from Claude Agent SDK 0.3.280.
-Codex 0.154.0 includes GPT-6-Astra support.
+The desktop app bundles Codex 0.159.2 and Claude Code 2.1.280 from Claude Agent SDK 0.3.280.
+Codex 0.159.2 supports GPT-6.1-Sol with ChatGPT subscription billing.
Updating a separately installed CLI does not update the app's bundled agents.
When changing Codex versions, update both `packages/agent/packages/agent/package.json` (agent workspace, from the repo root) and `apps/code/scripts/download-binaries.mjs` so Codex and its code-mode host stay on the same release.