Skip to content

Commit dea85eb

Browse files
chore: automatically update Codex to 0.124.0 (#116)
1 parent 6b9ed8d commit dea85eb

60 files changed

Lines changed: 487 additions & 59 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.

package-lock.json

Lines changed: 36 additions & 31 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
@@ -51,7 +51,7 @@
5151
},
5252
"dependencies": {
5353
"@agentclientprotocol/sdk": "^0.16.1",
54-
"@openai/codex": "^0.122.0",
54+
"@openai/codex": "^0.124.0",
5555
"diff": "^8.0.3",
5656
"open": "^11.0.0",
5757
"vscode-jsonrpc": "^8.2.1"

src/CodexEventHandler.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import type {
1414
CommandExecutionOutputDeltaNotification,
1515
ConfigWarningNotification,
1616
ErrorNotification,
17+
GuardianWarningNotification,
1718
ItemCompletedNotification,
1819
ItemStartedNotification, ThreadItem,
1920
ModelReroutedNotification,
@@ -104,10 +105,12 @@ export class CodexEventHandler {
104105
case "turn/diff/updated":
105106
case "item/commandExecution/terminalInteraction":
106107
case "item/fileChange/outputDelta":
108+
case "item/fileChange/patchUpdated":
107109
case "account/updated":
108110
case "fs/changed":
109111
case "mcpServer/startupStatus/updated":
110112
case "serverRequest/resolved":
113+
case "model/verification":
111114
return null;
112115
case "item/mcpToolCall/progress":
113116
return this.createMcpToolProgressEvent(notification.params);
@@ -118,6 +121,8 @@ export class CodexEventHandler {
118121
return await this.createConfigWarningEvent(notification.params);
119122
case "warning":
120123
return this.createWarningEvent(notification.params);
124+
case "guardianWarning":
125+
return this.createGuardianWarningEvent(notification.params);
121126
case "thread/compacted":
122127
return {
123128
sessionUpdate: "agent_message_chunk",
@@ -191,6 +196,16 @@ export class CodexEventHandler {
191196
};
192197
}
193198

199+
private createGuardianWarningEvent(event: GuardianWarningNotification): UpdateSessionEvent {
200+
return {
201+
sessionUpdate: "agent_message_chunk",
202+
content: {
203+
type: "text",
204+
text: `Guardian warning: ${event.message}\n\n`
205+
}
206+
};
207+
}
208+
194209
private createModelReroutedEvent(event: ModelReroutedNotification): UpdateSessionEvent {
195210
return {
196211
sessionUpdate: "agent_thought_chunk",

src/__tests__/CodexACPAgent/command-action-events.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,7 @@ describe('CodexEventHandler - command action events', () => {
395395
item: {
396396
type: "dynamicToolCall",
397397
id: "dyn-call-id",
398+
namespace: null,
398399
tool: "list_apps",
399400
arguments: { includeDisabled: false },
400401
status: "inProgress",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ describe("CodexACPAgent - loadSession", () => {
132132
{
133133
type: "dynamicToolCall",
134134
id: "item-dyn-1",
135+
namespace: null,
135136
tool: "list_apps",
136137
arguments: { includeDisabled: false },
137138
status: "completed",

src/__tests__/CodexACPAgent/terminal-output-events.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ describe('CodexEventHandler - terminal output events', () => {
171171
item: {
172172
type: 'dynamicToolCall',
173173
id: 'dyn-tool-123',
174+
namespace: null,
174175
tool: 'list_apps',
175176
arguments: { includeDisabled: false },
176177
status: 'completed',

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";
8+
export type AuthMode = "apikey" | "chatgpt" | "chatgptAuthTokens" | "agentIdentity";

0 commit comments

Comments
 (0)