@ycodium-ai/agent-codex 0.2.2870 → 0.2.2876

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.
Files changed (2) hide show
  1. package/dist/index.js +10 -4
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -867,6 +867,15 @@ function isMissingThreadResumeError(message) {
867
867
  if (!lower.includes("thread")) return false;
868
868
  return MISSING_THREAD_RESUME_ERROR_SNIPPETS.some((snippet) => lower.includes(snippet));
869
869
  }
870
+ function missingThreadResumeError(threadId, cause) {
871
+ return Object.assign(
872
+ new Error(
873
+ `Codex could not find this conversation (thread ${threadId}) in its history, so it cannot continue here. Start a new thread to continue.`,
874
+ { cause }
875
+ ),
876
+ { code: "resume-thread-missing" }
877
+ );
878
+ }
870
879
  function isActiveWriterConflict(message) {
871
880
  return message.toLowerCase().includes("already has an active writer");
872
881
  }
@@ -3569,10 +3578,7 @@ var CodexSessionRuntime = class {
3569
3578
  ).catch((error) => {
3570
3579
  const message = error instanceof Error ? error.message : String(error);
3571
3580
  if (!isMissingThreadResumeError(message)) throw error;
3572
- throw new Error(
3573
- `Codex could not find this conversation (thread ${resume.threadId}) in its history, so it cannot continue here. Start a new thread to continue.`,
3574
- { cause: error }
3575
- );
3581
+ throw missingThreadResumeError(resume.threadId, error);
3576
3582
  }) : await this.rpc.request("thread/start", startParams, 0);
3577
3583
  const opened = decodeThreadOpen(result);
3578
3584
  this.nativeThreadId = opened.threadId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ycodium-ai/agent-codex",
3
- "version": "0.2.2870",
3
+ "version": "0.2.2876",
4
4
  "description": "Codex executor: Codex CLI over the app-server JSON-RPC protocol.",
5
5
  "keywords": [
6
6
  "ycodium",
@@ -29,7 +29,7 @@
29
29
  "tailwindcss": "^4.0.0",
30
30
  "typescript": "~6.0.3",
31
31
  "vite-plus": "0.2.2",
32
- "@ycodium-ai/plugin-api": "0.2.2870",
32
+ "@ycodium-ai/plugin-api": "0.2.2876",
33
33
  "ycodium-executor-testing": "0.0.0"
34
34
  },
35
35
  "ycodium": {