Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 36 additions & 31 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
},
"dependencies": {
"@agentclientprotocol/sdk": "^0.16.1",
"@openai/codex": "^0.122.0",
"@openai/codex": "^0.124.0",
"diff": "^8.0.3",
"open": "^11.0.0",
"vscode-jsonrpc": "^8.2.1"
Expand Down
15 changes: 15 additions & 0 deletions src/CodexEventHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import type {
CommandExecutionOutputDeltaNotification,
ConfigWarningNotification,
ErrorNotification,
GuardianWarningNotification,
ItemCompletedNotification,
ItemStartedNotification, ThreadItem,
ModelReroutedNotification,
Expand Down Expand Up @@ -104,10 +105,12 @@ export class CodexEventHandler {
case "turn/diff/updated":
case "item/commandExecution/terminalInteraction":
case "item/fileChange/outputDelta":
case "item/fileChange/patchUpdated":
case "account/updated":
case "fs/changed":
case "mcpServer/startupStatus/updated":
case "serverRequest/resolved":
case "model/verification":
return null;
case "item/mcpToolCall/progress":
return this.createMcpToolProgressEvent(notification.params);
Expand All @@ -118,6 +121,8 @@ export class CodexEventHandler {
return await this.createConfigWarningEvent(notification.params);
case "warning":
return this.createWarningEvent(notification.params);
case "guardianWarning":
return this.createGuardianWarningEvent(notification.params);
case "thread/compacted":
return {
sessionUpdate: "agent_message_chunk",
Expand Down Expand Up @@ -191,6 +196,16 @@ export class CodexEventHandler {
};
}

private createGuardianWarningEvent(event: GuardianWarningNotification): UpdateSessionEvent {
return {
sessionUpdate: "agent_message_chunk",
content: {
type: "text",
text: `Guardian warning: ${event.message}\n\n`
}
};
}

private createModelReroutedEvent(event: ModelReroutedNotification): UpdateSessionEvent {
return {
sessionUpdate: "agent_thought_chunk",
Expand Down
1 change: 1 addition & 0 deletions src/__tests__/CodexACPAgent/command-action-events.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@ describe('CodexEventHandler - command action events', () => {
item: {
type: "dynamicToolCall",
id: "dyn-call-id",
namespace: null,
tool: "list_apps",
arguments: { includeDisabled: false },
status: "inProgress",
Expand Down
1 change: 1 addition & 0 deletions src/__tests__/CodexACPAgent/load-session.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ describe("CodexACPAgent - loadSession", () => {
{
type: "dynamicToolCall",
id: "item-dyn-1",
namespace: null,
tool: "list_apps",
arguments: { includeDisabled: false },
status: "completed",
Expand Down
1 change: 1 addition & 0 deletions src/__tests__/CodexACPAgent/terminal-output-events.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ describe('CodexEventHandler - terminal output events', () => {
item: {
type: 'dynamicToolCall',
id: 'dyn-tool-123',
namespace: null,
tool: 'list_apps',
arguments: { includeDisabled: false },
status: 'completed',
Expand Down
2 changes: 1 addition & 1 deletion src/app-server/AuthMode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
/**
* Authentication mode for OpenAI-backed providers.
*/
export type AuthMode = "apikey" | "chatgpt" | "chatgptAuthTokens";
export type AuthMode = "apikey" | "chatgpt" | "chatgptAuthTokens" | "agentIdentity";
Loading
Loading