@openclaw/codex 2026.5.10-beta.1 → 2026.5.10-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { i as isCodexFastServiceTier, s as resolveCodexAppServerRuntimeOptions } from "./config-CT01BBDc.js";
2
- import { n as listCodexAppServerModels, t as listAllCodexAppServerModels } from "./models-OtCFiaj_.js";
2
+ import { n as listCodexAppServerModels, t as listAllCodexAppServerModels } from "./models-H-PTi3W0.js";
3
3
  import { t as isJsonObject } from "./protocol-C9UWI98H.js";
4
4
  import { a as formatCodexStatus, c as formatModels, f as CODEX_CONTROL_METHODS, i as formatCodexDisplayText, l as formatThreads, n as buildHelp, o as formatComputerUseStatus, p as describeControlFailure, r as formatAccount, s as formatList, t as requestCodexAppServerJson, u as readString } from "./request-DC1Dz3iZ.js";
5
5
  import { i as readCodexAppServerBinding, o as writeCodexAppServerBinding, t as clearCodexAppServerBinding } from "./session-binding-B44KIZM2.js";
package/dist/harness.js CHANGED
@@ -18,7 +18,7 @@ function createCodexAppServerAgentHarness(options) {
18
18
  };
19
19
  },
20
20
  runAttempt: async (params) => {
21
- const { runCodexAppServerAttempt } = await import("./run-attempt-DsO-3wqp.js");
21
+ const { runCodexAppServerAttempt } = await import("./run-attempt-CefRS5_d.js");
22
22
  return runCodexAppServerAttempt(params, { pluginConfig: options?.pluginConfig });
23
23
  },
24
24
  compact: async (params) => {
package/dist/index.js CHANGED
@@ -28,7 +28,7 @@ function createCodexCommand(options) {
28
28
  };
29
29
  }
30
30
  async function handleCodexCommand(ctx, options = {}) {
31
- const { handleCodexSubcommand } = await import("./command-handlers-BJ0GpaPa.js");
31
+ const { handleCodexSubcommand } = await import("./command-handlers-BLZCm3fD.js");
32
32
  try {
33
33
  return await handleCodexSubcommand(ctx, options);
34
34
  } catch (error) {
@@ -1,7 +1,7 @@
1
1
  import { CODEX_PROVIDER_ID, FALLBACK_CODEX_MODELS } from "./provider-catalog.js";
2
2
  import { s as resolveCodexAppServerRuntimeOptions } from "./config-CT01BBDc.js";
3
- import { a as readCodexErrorNotification, c as readCodexTurnCompletedNotification, n as assertCodexThreadStartResponse, r as assertCodexTurnStartResponse } from "./protocol-validators-CbqWfY5M.js";
4
- import { i as readModelListResult } from "./models-OtCFiaj_.js";
3
+ import { a as readCodexErrorNotification, c as readCodexTurnCompletedNotification, n as assertCodexThreadStartResponse, r as assertCodexTurnStartResponse } from "./protocol-validators-CeCyJaWj.js";
4
+ import { i as readModelListResult } from "./models-H-PTi3W0.js";
5
5
  import { t as isJsonObject } from "./protocol-C9UWI98H.js";
6
6
  //#region extensions/codex/media-understanding-provider.ts
7
7
  const DEFAULT_CODEX_IMAGE_MODEL = FALLBACK_CODEX_MODELS.find((model) => model.inputModalities.includes("image"))?.id ?? FALLBACK_CODEX_MODELS[0]?.id;
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-DUslC3ob.js";
2
- import { o as readCodexModelListResponse } from "./protocol-validators-CbqWfY5M.js";
2
+ import { o as readCodexModelListResponse } from "./protocol-validators-CeCyJaWj.js";
3
3
  //#region extensions/codex/src/app-server/models.ts
4
4
  var models_exports = /* @__PURE__ */ __exportAll({
5
5
  listAllCodexAppServerModels: () => listAllCodexAppServerModels,
@@ -5898,10 +5898,10 @@ const validateThreadStartResponse = ajv.compile(ThreadStartResponse_default);
5898
5898
  const validateTurnCompletedNotification = ajv.compile(TurnCompletedNotification_default);
5899
5899
  const validateTurnStartResponse = ajv.compile(TurnStartResponse_default);
5900
5900
  function assertCodexThreadStartResponse(value) {
5901
- return assertCodexShape(validateThreadStartResponse, value, "thread/start response");
5901
+ return assertCodexShape(validateThreadStartResponse, normalizeThreadResponse(value), "thread/start response");
5902
5902
  }
5903
5903
  function assertCodexThreadResumeResponse(value) {
5904
- return assertCodexShape(validateThreadResumeResponse, value, "thread/resume response");
5904
+ return assertCodexShape(validateThreadResumeResponse, normalizeThreadResponse(value), "thread/resume response");
5905
5905
  }
5906
5906
  function assertCodexTurnStartResponse(value) {
5907
5907
  return assertCodexShape(validateTurnStartResponse, normalizeTurnStartResponse(value), "turn/start response");
@@ -5968,6 +5968,28 @@ function normalizeThreadItem(value) {
5968
5968
  default: return value;
5969
5969
  }
5970
5970
  }
5971
+ function normalizeThreadResponse(value) {
5972
+ if (!value || typeof value !== "object" || Array.isArray(value) || !("thread" in value)) return value;
5973
+ const thread = value.thread;
5974
+ if (thread && typeof thread === "object" && !Array.isArray(thread)) {
5975
+ const t = thread;
5976
+ if (typeof t.id === "string" && typeof t.sessionId !== "string") return {
5977
+ ...value,
5978
+ thread: {
5979
+ ...thread,
5980
+ sessionId: t.id
5981
+ }
5982
+ };
5983
+ if (typeof t.sessionId === "string" && typeof t.id !== "string") return {
5984
+ ...value,
5985
+ thread: {
5986
+ ...thread,
5987
+ id: t.sessionId
5988
+ }
5989
+ };
5990
+ }
5991
+ return value;
5992
+ }
5971
5993
  function normalizeTurnStartResponse(value) {
5972
5994
  if (!value || typeof value !== "object" || Array.isArray(value) || !("turn" in value)) return value;
5973
5995
  return {
package/dist/provider.js CHANGED
@@ -123,7 +123,7 @@ async function listModelsBestEffort(params) {
123
123
  }
124
124
  }
125
125
  async function listCodexAppServerModelsLazy(options) {
126
- const { listCodexAppServerModels } = await import("./models-OtCFiaj_.js").then((n) => n.r);
126
+ const { listCodexAppServerModels } = await import("./models-H-PTi3W0.js").then((n) => n.r);
127
127
  return listCodexAppServerModels(options);
128
128
  }
129
129
  function normalizeTimeoutMs(value) {
@@ -1,12 +1,12 @@
1
1
  import { l as resolveCodexPluginsPolicy, o as readCodexPluginConfig, s as resolveCodexAppServerRuntimeOptions, u as withMcpElicitationsApprovalPolicy } from "./config-CT01BBDc.js";
2
- import { i as readCodexDynamicToolCallParams, r as assertCodexTurnStartResponse, s as readCodexTurn } from "./protocol-validators-CbqWfY5M.js";
2
+ import { i as readCodexDynamicToolCallParams, r as assertCodexTurnStartResponse, s as readCodexTurn } from "./protocol-validators-CeCyJaWj.js";
3
3
  import { t as isJsonObject } from "./protocol-C9UWI98H.js";
4
4
  import { i as isCodexAppServerConnectionClosedError, r as isCodexAppServerApprovalRequest } from "./client-CTzy3Y6M.js";
5
5
  import { d as formatCodexUsageLimitErrorMessage, i as formatCodexDisplayText } from "./request-DC1Dz3iZ.js";
6
6
  import { a as refreshCodexAppServerAuthTokens, c as resolveCodexAppServerAuthProfileIdForAgent, l as resolveCodexAppServerEnvApiKeyCacheKey, o as resolveCodexAppServerAuthAccountCacheKey, s as resolveCodexAppServerAuthProfileId, t as clearSharedCodexAppServerClientIfCurrent, u as resolveCodexAppServerHomeDir } from "./shared-client-p-TvEiNL.js";
7
7
  import { i as readCodexAppServerBinding } from "./session-binding-B44KIZM2.js";
8
8
  import { i as defaultCodexAppInventoryCache, r as buildCodexAppInventoryCacheKey } from "./plugin-activation-CweAZa7r.js";
9
- import { a as buildTurnStartParams, c as buildCodexPluginThreadConfig, d as createCodexDynamicToolBridge, f as filterCodexDynamicTools, l as buildCodexPluginThreadConfigInputFingerprint, n as buildDeveloperInstructions, o as codexDynamicToolsFingerprint, p as normalizeCodexDynamicToolName, s as startOrResumeThread, t as areCodexDynamicToolFingerprintsCompatible, u as shouldBuildCodexPluginThreadConfig } from "./thread-lifecycle-DtD_qoMW.js";
9
+ import { a as buildTurnStartParams, c as buildCodexPluginThreadConfig, d as createCodexDynamicToolBridge, f as filterCodexDynamicTools, l as buildCodexPluginThreadConfigInputFingerprint, n as buildDeveloperInstructions, o as codexDynamicToolsFingerprint, p as normalizeCodexDynamicToolName, s as startOrResumeThread, t as areCodexDynamicToolFingerprintsCompatible, u as shouldBuildCodexPluginThreadConfig } from "./thread-lifecycle-CGc-O_5d.js";
10
10
  import { n as defaultCodexAppServerClientFactory } from "./client-factory-BJL_efz4.js";
11
11
  import { n as rememberCodexRateLimits, r as ensureCodexComputerUse, t as readRecentCodexRateLimits } from "./rate-limit-cache-DbZvmrAD.js";
12
12
  import { createHash } from "node:crypto";
package/dist/test-api.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { s as resolveCodexAppServerRuntimeOptions } from "./config-CT01BBDc.js";
2
- import { a as buildTurnStartParams, d as createCodexDynamicToolBridge, f as filterCodexDynamicTools, i as buildThreadStartParams, n as buildDeveloperInstructions, r as buildThreadResumeParams } from "./thread-lifecycle-DtD_qoMW.js";
2
+ import { a as buildTurnStartParams, d as createCodexDynamicToolBridge, f as filterCodexDynamicTools, i as buildThreadStartParams, n as buildDeveloperInstructions, r as buildThreadResumeParams } from "./thread-lifecycle-CGc-O_5d.js";
3
3
  //#region extensions/codex/test-api.ts
4
4
  function resolveCodexPromptSnapshotAppServerOptions(pluginConfig) {
5
5
  return resolveCodexAppServerRuntimeOptions({
@@ -1,5 +1,5 @@
1
1
  import { l as resolveCodexPluginsPolicy, r as codexSandboxPolicyForTurn } from "./config-CT01BBDc.js";
2
- import { n as assertCodexThreadStartResponse, t as assertCodexThreadResumeResponse } from "./protocol-validators-CbqWfY5M.js";
2
+ import { n as assertCodexThreadStartResponse, t as assertCodexThreadResumeResponse } from "./protocol-validators-CeCyJaWj.js";
3
3
  import { t as isJsonObject } from "./protocol-C9UWI98H.js";
4
4
  import { CODEX_GPT5_HEARTBEAT_PROMPT_OVERLAY, renderCodexPromptOverlay } from "./prompt-overlay.js";
5
5
  import { isModernCodexModel } from "./provider.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/codex",
3
- "version": "2026.5.10-beta.1",
3
+ "version": "2026.5.10-beta.2",
4
4
  "description": "OpenClaw Codex harness and model provider plugin",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,10 +26,10 @@
26
26
  "minHostVersion": ">=2026.5.1-beta.1"
27
27
  },
28
28
  "compat": {
29
- "pluginApi": ">=2026.5.10-beta.1"
29
+ "pluginApi": ">=2026.5.10-beta.2"
30
30
  },
31
31
  "build": {
32
- "openclawVersion": "2026.5.10-beta.1"
32
+ "openclawVersion": "2026.5.10-beta.2"
33
33
  },
34
34
  "release": {
35
35
  "publishToClawHub": true,
@@ -44,7 +44,7 @@
44
44
  "openclaw.plugin.json"
45
45
  ],
46
46
  "peerDependencies": {
47
- "openclaw": ">=2026.5.10-beta.1"
47
+ "openclaw": ">=2026.5.10-beta.2"
48
48
  },
49
49
  "peerDependenciesMeta": {
50
50
  "openclaw": {