Skip to content

Commit b68c136

Browse files
clawsweepersteipetevincentkocVACIncroboclaw-bot
authored
feat(codex): upgrade main to app-server 0.149.1 (#128370)
* feat(codex): upgrade app-server integration to 0.149.0 Co-authored-by: Vincent Koc <[email protected]> * fix(codex): harden full app-server integration and lifecycle * fix(codex): scope guardian trust and satisfy integration gates * fix(codex): keep guardian startup and router tests within gates * chore(codex): tighten guardian assertion safety baseline * fix(ui): preserve sidebar icon path contracts * test(codex): align side-question auth fixture Co-authored-by: VACInc <[email protected]> * style(codex): format transcript mirror imports Co-authored-by: VACInc <[email protected]> * test(codex): preserve native approval decisions Co-authored-by: VACInc <[email protected]> * test(codex): isolate app cache and catalog fixtures Co-authored-by: VACInc <[email protected]> * fix(ui): render guardian review and system notices Co-authored-by: VACInc <[email protected]> * test(codex): isolate native approval decisions Co-authored-by: VACInc <[email protected]> * fix(codex): revalidate reviewer config trust Co-authored-by: VACInc <[email protected]> * chore(codex): update app-server to 0.149.1 Co-authored-by: VACInc <[email protected]> * test(codex): align desktop version warning Co-authored-by: VACInc <[email protected]> * fix(ui): scope notices to the active run Co-authored-by: VACInc <[email protected]> * fix(codex): isolate review, hosted app, and auth ownership Co-authored-by: Vito Cappello <[email protected]> Co-authored-by: Vincent Koc <[email protected]> Co-authored-by: VACInc <[email protected]> * chore(codex): keep release notes out of the release-owned changelog * test(codex): reject reviewer cancellation with its explicit error --------- Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: Vincent Koc <[email protected]> Co-authored-by: VACInc <[email protected]> Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: Vito Cappello <[email protected]>
1 parent c2602de commit b68c136

175 files changed

Lines changed: 6844 additions & 1424 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎config/assertion-safety-baseline.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ extensions/codex/src/app-server/plugin-activation.ts 6
210210
extensions/codex/src/app-server/plugin-approval-roundtrip.ts 1
211211
extensions/codex/src/app-server/plugin-inventory.ts 6
212212
extensions/codex/src/app-server/plugin-metadata-cache.ts 5
213-
extensions/codex/src/app-server/plugin-thread-app-admission.ts 2
213+
extensions/codex/src/app-server/plugin-thread-app-admission.ts 1
214214
extensions/codex/src/app-server/protocol-validators.ts 9
215215
extensions/codex/src/app-server/rate-limits.ts 1
216216
extensions/codex/src/app-server/reasoning-effort.ts 1
@@ -4203,7 +4203,7 @@ ui/src/pages/chat/run-lifecycle.ts 1
42034203
ui/src/pages/chat/scroll.ts 2
42044204
ui/src/pages/chat/session-cache.ts 2
42054205
ui/src/pages/chat/stream-reconciliation.ts 12
4206-
ui/src/pages/chat/tool-stream.ts 8
4206+
ui/src/pages/chat/tool-stream.ts 5
42074207
ui/src/pages/chat/workspace-conflict.ts 2
42084208
ui/src/pages/config/config-page.ts 1
42094209
ui/src/pages/config/config-sections.ts 1

‎docs/plugins/codex-computer-use.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ reconciliation so OpenClaw does not override that selection.
258258
## Remote marketplaces
259259

260260
Remote marketplace support was introduced in Codex 0.146.1 and remains
261-
available in OpenClaw's pinned Codex 0.148.0. OpenClaw passes the opaque remote
261+
available in OpenClaw's pinned Codex 0.149.1. OpenClaw passes the opaque remote
262262
plugin ID returned by Codex to `plugin/read` and `plugin/install`; a
263263
human-readable plugin name is not a valid substitute.
264264

@@ -280,7 +280,7 @@ install plugins or modify Codex configuration.
280280
| `healthCheckIntervalMinutes` | 60 | Probe cadence; accepted values are 30, 60, 120, or 240 minutes. |
281281
| `pluginCacheMode` | `independent` | Use `shared` to refresh the Codex-home cache from the bundled desktop plugin. |
282282
| `strictReadiness` | false | Stop startup on a failed live probe instead of continuing with a warning. |
283-
| `autoRepair` | false | Kill stale scoped Computer Use MCP children and retry a failed probe once. |
283+
| `autoRepair` | false | Reload the Codex-owned MCP runtime and retry a failed probe once. |
284284
| `marketplaceSource` | unset | Source string passed to Codex app-server `marketplace/add`. |
285285
| `marketplacePath` | unset | Local Codex marketplace file path containing the plugin. |
286286
| `marketplaceName` | unset | Registered Codex marketplace name to select. |

‎docs/plugins/codex-harness-reference.md‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ flags, and plugin allow/deny references into this block. Explicit canonical
172172
## App-server transport
173173

174174
For ordinary harness turns, OpenClaw starts the managed Codex binary shipped
175-
with the official plugin (currently `@openai/codex` `0.148.0`):
175+
with the official plugin (currently `@openai/codex` `0.149.1`):
176176

177177
```bash
178178
codex app-server --listen stdio://
@@ -317,11 +317,11 @@ If the normal app-server runtime would be `danger-full-access`, enabling
317317
permission profile instead. Codex-managed network enforcement is sandboxed
318318
networking, so a full-access profile would not protect outbound traffic.
319319

320-
The plugin ships Codex app-server `0.148.0` and accepts external versions at or
321-
above `0.147.0`. Older, malformed, and unversioned handshakes are rejected.
322-
Build metadata does not affect SemVer precedence. The same minimum applies to
323-
explicit custom executables, remote app-servers, and macOS desktop binaries;
324-
admission is not readiness proof.
320+
The plugin manages stable Codex app-server `0.149.1`. Explicit custom
321+
executables, remote app-servers, and macOS desktop binaries must report a
322+
parseable semantic version of `0.149.0` or newer. Older, malformed, and
323+
unversioned handshakes are rejected. Newer versions log a compatibility warning
324+
and continue through normal runtime and capability validation.
325325

326326
OpenClaw treats non-loopback WebSocket app-server URLs as remote and requires
327327
identity-bearing WebSocket auth through `appServer.authToken` or an
@@ -370,7 +370,7 @@ configured plugin's details to reserve the denied app IDs. It does not scan
370370
unrelated marketplaces or install, enable, or authenticate the disabled plugin;
371371
missing ownership fails closed.
372372

373-
Only connect OpenClaw to a remote app-server in the supported range trusted to accept
373+
Only connect OpenClaw to a `0.149.0` or newer remote app-server trusted to accept
374374
configured marketplace plugin installs and inventory refreshes. Missing modern
375375
inventory methods and server, authentication, or transport failures fail closed.
376376

@@ -446,7 +446,7 @@ The stable default is fail-closed: active OpenClaw sandboxing disables native
446446
Codex execution surfaces that would otherwise run from the Codex app-server
447447
host. Use `appServer.experimental.sandboxExecServer: true` only when you want
448448
to try Codex's remote environment support with OpenClaw's sandbox backend.
449-
This preview path uses the pinned Codex `0.148.0` app-server.
449+
This preview path uses the pinned Codex `0.149.1` app-server.
450450

451451
```json5
452452
{
@@ -768,8 +768,8 @@ response remains authoritative even if it contains no visible models; HTTP
768768
`401` and `403` return an empty catalog rather than exposing fallback models.
769769

770770
<Note>
771-
The current bundled harness is `@openai/codex` `0.148.0`. A live `model/list`
772-
probe against the official `0.148.0` app-server returned these public picker
771+
The current bundled harness is `@openai/codex` `0.149.1`. A live `model/list`
772+
probe against the official `0.149.0` app-server returned these public picker
773773
rows:
774774

775775
| Model id | Input modalities | Reasoning efforts |

‎docs/plugins/codex-harness.md‎

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,12 @@ channel is the communication surface.
9191

9292
- The official `@openclaw/codex` plugin installed. Include `codex` in
9393
`plugins.allow` if your config uses an allowlist.
94-
- Codex app-server `0.147.0` or newer. The plugin ships and manages the exact
95-
`@openai/codex` `0.148.0` artifact, so a `codex` command on `PATH` does not
94+
- Managed Codex app-server `0.149.1`. The plugin ships and manages
95+
`@openai/codex` `0.149.1` by default, so a `codex` command on `PATH` does not
9696
affect normal startup. Explicit custom, remote, and macOS desktop-owned
97-
app-servers must report valid SemVer at or above the supported minimum.
98-
Versions newer than the managed artifact initialize with a warning;
99-
acceptance permits an attempt and is not readiness or capability proof.
97+
app-servers must report a parseable semantic version of `0.149.0` or newer.
98+
Newer versions continue with a compatibility warning and normal runtime
99+
validation.
100100
- Node.js on the remote Codex app-server host when `remoteWorkspaceRoot` is set
101101
and cross-machine workspace attachments must be transferred.
102102
- Codex auth through `openclaw models auth login --provider openai`, an
@@ -920,12 +920,15 @@ from later tool events.
920920
The `codex` plugin registers `/codex` as a slash command on any channel that
921921
supports OpenClaw text commands.
922922

923-
Native execution and control require an owner or an `operator.admin`
924-
Gateway client: binding or resuming threads, sending or stopping turns,
925-
changing model, fast-mode, or permission state, compacting or reviewing, and
926-
detaching a binding. Other authorized senders keep read-only status, help,
927-
account, model, thread, native goal, MCP server, skill, and binding inspection
928-
commands.
923+
Native execution, control, and host-wide inspection require an owner or an
924+
`operator.admin` Gateway client. This includes binding or resuming threads,
925+
sending or stopping turns, changing model, fast-mode, or permission state,
926+
compacting or reviewing, detaching a binding, and inspecting account details,
927+
host status, native threads, paired-node sessions, MCP servers, or skills.
928+
Other authorized senders retain help, model listings, and read-only inspection
929+
of their current conversation's binding, model, permissions, Fast mode, and
930+
native goal. Host-wide reads are restricted because they can expose other
931+
conversations, private workspaces, account identities, and connected services.
929932

930933
Common forms:
931934

@@ -1491,12 +1494,11 @@ instead of a plain OpenAI API-key failure.
14911494
Doctor rewrites legacy model refs to `openai/*`, removes stale session and
14921495
whole-agent runtime pins, and preserves existing auth-profile overrides.
14931496

1494-
**The app-server is rejected:** use Codex `0.147.0` or newer. OpenClaw rejects
1495-
older, malformed, and unversioned servers. Same-version prereleases such as
1496-
`0.147.0-alpha.2` remain below the stable minimum; build metadata such as
1497-
`0.147.0+desktop` does not affect precedence. A newer external version is
1498-
permitted to initialize rather than treated as proof of compatibility, so
1499-
startup and capability operations can still fail with their normal diagnostics.
1497+
**The app-server is rejected:** use Codex `0.149.0` or newer. Older, malformed,
1498+
and unversioned servers are rejected. Newer semantic versions continue with a
1499+
compatibility warning and normal runtime validation against the Codex version
1500+
OpenClaw ships. Update or remove custom, remote, or desktop
1501+
binary overrides that select another version.
15001502

15011503
**`/codex status` cannot connect:** check that the `codex` plugin
15021504
is enabled, that `plugins.allow` includes it when an allowlist is

‎docs/plugins/codex-native-plugins.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ working.
2222
- The agent runtime must be the native Codex harness.
2323
- `plugins.entries.codex.enabled` is `true`.
2424
- `plugins.entries.codex.config.codexPlugins.enabled` is `true`.
25-
- Codex app-server reports version `0.147.0` or newer. The official plugin
26-
ships `@openai/codex` `0.148.0`; accepted external versions remain subject to
27-
normal startup and capability validation.
25+
- Codex app-server reports `0.149.0` or newer. The official plugin ships
26+
`@openai/codex` `0.149.1`; newer custom, remote, and macOS desktop-owned
27+
binaries continue with a compatibility warning and normal runtime validation.
2828
- The target Codex app-server can see the expected marketplace, plugin, and
2929
app inventory.
3030
- Migration supports only `openai-curated` plugins that it observed as

‎extensions/codex/doctor-contract-api.test.ts‎

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,9 @@ describe("codex doctor contract", () => {
192192
).toBe(false);
193193
});
194194

195-
it("reports the retired on-failure app-server approval policy", () => {
195+
it("reports retired app-server approval policies", () => {
196196
expect(legacyConfigRules[2]?.match({ approvalPolicy: "on-failure" })).toBe(true);
197+
expect(legacyConfigRules[2]?.match({ approvalPolicy: "untrusted" })).toBe(true);
197198
expect(legacyConfigRules[2]?.match({ approvalPolicy: "on-request" })).toBe(false);
198199
});
199200

@@ -1373,7 +1374,7 @@ describe("codex doctor contract", () => {
13731374
const result = normalizeCompatibilityConfig({ cfg: original });
13741375

13751376
expect(result.changes).toEqual([
1376-
'Renamed plugins.entries.codex.config.appServer.approvalPolicy="on-failure" to "on-request".',
1377+
'Renamed retired plugins.entries.codex.config.appServer.approvalPolicy to "on-request".',
13771378
]);
13781379
expect(result.config.plugins?.entries?.codex?.config).toEqual({
13791380
appServer: {
@@ -1383,5 +1384,36 @@ describe("codex doctor contract", () => {
13831384
});
13841385
expect(original.plugins.entries.codex.config.appServer.approvalPolicy).toBe("on-failure");
13851386
});
1387+
1388+
it("renames the retired app-server untrusted approval policy", () => {
1389+
const original = {
1390+
plugins: {
1391+
entries: {
1392+
codex: {
1393+
enabled: true,
1394+
config: {
1395+
appServer: {
1396+
approvalPolicy: "untrusted",
1397+
sandbox: "workspace-write",
1398+
},
1399+
},
1400+
},
1401+
},
1402+
},
1403+
};
1404+
1405+
const result = normalizeCompatibilityConfig({ cfg: original });
1406+
1407+
expect(result.changes).toEqual([
1408+
'Renamed retired plugins.entries.codex.config.appServer.approvalPolicy to "on-request".',
1409+
]);
1410+
expect(result.config.plugins?.entries?.codex?.config).toEqual({
1411+
appServer: {
1412+
approvalPolicy: "on-request",
1413+
sandbox: "workspace-write",
1414+
},
1415+
});
1416+
expect(original.plugins.entries.codex.config.appServer.approvalPolicy).toBe("untrusted");
1417+
});
13861418
});
13871419
/* oxlint-disable max-lines -- TODO: split this grandfathered oversized file. */

‎extensions/codex/doctor-contract-api.ts‎

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ function hasLegacyPluginDestructivePolicy(value: unknown): boolean {
2828
);
2929
}
3030

31-
function hasRetiredOnFailureApprovalPolicy(value: unknown): boolean {
32-
return asNullableRecord(value)?.approvalPolicy === "on-failure";
31+
function hasRetiredApprovalPolicy(value: unknown): boolean {
32+
const approvalPolicy = asNullableRecord(value)?.approvalPolicy;
33+
return approvalPolicy === "on-failure" || approvalPolicy === "untrusted";
3334
}
3435

3536
/** Legacy Codex config keys that doctor should report or repair. */
@@ -49,8 +50,8 @@ export const legacyConfigRules: LegacyConfigRule[] = [
4950
{
5051
path: ["plugins", "entries", "codex", "config", "appServer"],
5152
message:
52-
'plugins.entries.codex.config.appServer.approvalPolicy="on-failure" was retired by Codex 0.143; use "on-request". Run "openclaw doctor --fix".',
53-
match: hasRetiredOnFailureApprovalPolicy,
53+
'plugins.entries.codex.config.appServer.approvalPolicy values "on-failure" and "untrusted" are retired; use "on-request". Run "openclaw doctor --fix".',
54+
match: hasRetiredApprovalPolicy,
5455
},
5556
];
5657

@@ -68,7 +69,7 @@ export function normalizeCompatibilityConfig({ cfg }: { cfg: OpenClawConfig }):
6869
const shouldRemoveDynamicToolsProfile =
6970
rawPluginConfig !== null && hasRetiredDynamicToolsProfile(rawPluginConfig);
7071
const shouldRewriteDestructivePolicy = hasLegacyPluginDestructivePolicy(rawCodexPlugins);
71-
const shouldRewriteApprovalPolicy = hasRetiredOnFailureApprovalPolicy(rawAppServer);
72+
const shouldRewriteApprovalPolicy = hasRetiredApprovalPolicy(rawAppServer);
7273
if (
7374
!rawPluginConfig ||
7475
(!shouldRemoveDynamicToolsProfile &&
@@ -116,11 +117,14 @@ export function normalizeCompatibilityConfig({ cfg }: { cfg: OpenClawConfig }):
116117

117118
if (shouldRewriteApprovalPolicy) {
118119
const nextAppServer = asNullableRecord(nextPluginConfig.appServer);
119-
if (nextAppServer?.approvalPolicy === "on-failure") {
120+
if (
121+
nextAppServer?.approvalPolicy === "on-failure" ||
122+
nextAppServer?.approvalPolicy === "untrusted"
123+
) {
120124
nextAppServer.approvalPolicy = "on-request";
121125
}
122126
changes.push(
123-
'Renamed plugins.entries.codex.config.appServer.approvalPolicy="on-failure" to "on-request".',
127+
'Renamed retired plugins.entries.codex.config.appServer.approvalPolicy to "on-request".',
124128
);
125129
}
126130

‎extensions/codex/harness.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import type { CodexSessionCatalogControlFactory } from "./src/session-catalog-ty
1818
// New runtime identity uses the `openai` provider.
1919
const DEFAULT_CODEX_HARNESS_PROVIDER_IDS = new Set(["codex", "openai"]);
2020
const SHARED_CODEX_APP_SERVER_CLIENT_DISPOSER = Symbol.for("openclaw.codexAppServerClientDisposer");
21-
// Audited against @openai/codex 0.148.0 (rust-v0.148.0). These exact denies
21+
// Audited against @openai/codex 0.149.1 (rust-v0.149.1). These exact denies
2222
// either have no Codex-native equivalent or are enforced by the harness. Keep
2323
// the list positive and conservative: an omitted tool isolates the native surface.
2424
const CODEX_TOOL_POLICY_SAFE_DENY_NAMES = [

‎extensions/codex/media-understanding-provider.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ function threadStartResult() {
4848
status: { type: "idle" },
4949
path: null,
5050
cwd: "/tmp/openclaw-agent",
51-
cliVersion: "0.148.0",
51+
projectId: null,
52+
cliVersion: "0.149.0",
5253
source: "unknown",
5354
agentNickname: null,
5455
agentRole: null,

‎extensions/codex/openclaw.plugin.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@
497497
},
498498
"computerUse.autoRepair": {
499499
"label": "Auto Repair",
500-
"help": "When true, failed Computer Use live tests repair stale scoped Computer Use MCP children before retrying once.",
500+
"help": "When true, failed Computer Use live tests reload the Codex-owned MCP runtime before retrying once.",
501501
"advanced": true
502502
},
503503
"computerUse.marketplaceSource": {

0 commit comments

Comments
 (0)