Skip to content

Commit e92c292

Browse files
update codex 0.139.0 (#201)
* chore: update codex to 0.139.0 * update codex: fix typecheck and test failures
1 parent 90b5164 commit e92c292

22 files changed

Lines changed: 93 additions & 43 deletions

package-lock.json

Lines changed: 28 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
},
6363
"dependencies": {
6464
"@agentclientprotocol/sdk": "^0.22.1",
65-
"@openai/codex": "^0.137.0",
65+
"@openai/codex": "^0.139.0",
6666
"diff": "^8.0.3",
6767
"open": "^11.0.0",
6868
"vscode-jsonrpc": "^8.2.1"

src/CodexEventHandler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ export class CodexEventHandler {
170170
case "hook/started":
171171
case "hook/completed":
172172
case "turn/diff/updated":
173+
case "turn/moderationMetadata":
173174
case "item/commandExecution/terminalInteraction":
174175
case "item/fileChange/outputDelta":
175176
case "item/fileChange/patchUpdated":

src/__tests__/CodexACPAgent/CodexAcpClient.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -340,19 +340,19 @@ describe('ACP server test', { timeout: 40_000 }, () => {
340340

341341
mockFixture.sendServerNotification({
342342
method: "mcpServer/startupStatus/updated",
343-
params: { name: "alpha", status: "starting", error: null }
343+
params: { threadId: "thread-id", name: "alpha", status: "starting", error: null }
344344
});
345345
mockFixture.sendServerNotification({
346346
method: "mcpServer/startupStatus/updated",
347-
params: { name: "beta", status: "starting", error: null }
347+
params: { threadId: "thread-id", name: "beta", status: "starting", error: null }
348348
});
349349
mockFixture.sendServerNotification({
350350
method: "mcpServer/startupStatus/updated",
351-
params: { name: "alpha", status: "ready", error: null }
351+
params: { threadId: "thread-id", name: "alpha", status: "ready", error: null }
352352
});
353353
mockFixture.sendServerNotification({
354354
method: "mcpServer/startupStatus/updated",
355-
params: { name: "beta", status: "ready", error: null }
355+
params: { threadId: "thread-id", name: "beta", status: "ready", error: null }
356356
});
357357

358358
const startup = await startupPromise;
@@ -403,7 +403,7 @@ describe('ACP server test', { timeout: 40_000 }, () => {
403403

404404
mockFixture.sendServerNotification({
405405
method: "mcpServer/startupStatus/updated",
406-
params: { name: "broken-mcp", status: "failed", error: "boom" }
406+
params: { threadId: "thread-id", name: "broken-mcp", status: "failed", error: "boom" }
407407
});
408408

409409
await vi.waitFor(() => {

src/__tests__/CodexACPAgent/load-session.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ describe("CodexACPAgent - loadSession", () => {
342342

343343
fixture.sendServerNotification({
344344
method: "mcpServer/startupStatus/updated",
345-
params: { name: "broken-mcp", status: "failed", error: "boom" }
345+
params: { threadId: "session-1", name: "broken-mcp", status: "failed", error: "boom" }
346346
});
347347

348348
await loadPromise;
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// GENERATED CODE! DO NOT MODIFY BY HAND!
2+
3+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
4+
5+
export type AgentMessageInputContent = { "type": "encrypted_content", encrypted_content: string, };

src/app-server/AuthMode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
/**
66
* Authentication mode for OpenAI-backed providers.
77
*/
8-
export type AuthMode = "apikey" | "chatgpt" | "chatgptAuthTokens" | "agentIdentity";
8+
export type AuthMode = "apikey" | "chatgpt" | "chatgptAuthTokens" | "agentIdentity" | "personalAccessToken";

0 commit comments

Comments
 (0)