Skip to content
Closed
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
56 changes: 28 additions & 28 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 @@ -62,7 +62,7 @@
},
"dependencies": {
"@agentclientprotocol/sdk": "^0.21.0",
"@openai/codex": "^0.128.0",
"@openai/codex": "^0.129.0",
"diff": "^8.0.3",
"open": "^11.0.0",
"vscode-jsonrpc": "^8.2.1"
Expand Down
2 changes: 2 additions & 0 deletions src/CodexEventHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ export class CodexEventHandler {
return this.handleFuzzyFileSearchSessionCompleted(notification.params);
// ignored events
case "command/exec/outputDelta":
case "process/outputDelta":
case "process/exited":
case "item/autoApprovalReview/started":
case "item/autoApprovalReview/completed":
case "hook/started":
Expand Down
7 changes: 7 additions & 0 deletions src/__tests__/CodexACPAgent/CodexAcpClient.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ describe('ACP server test', { timeout: 40_000 }, () => {
inputModalities: ["text"],
supportsPersonality: false,
additionalSpeedTiers: [],
serviceTiers: [],
isDefault: true
}],
nextCursor: null
Expand Down Expand Up @@ -411,6 +412,7 @@ describe('ACP server test', { timeout: 40_000 }, () => {
return {
id,
items: [],
itemsView: "full" as const,
status,
error: null,
startedAt: null,
Expand Down Expand Up @@ -652,6 +654,7 @@ describe('ACP server test', { timeout: 40_000 }, () => {
turn: {
id: "turn-id",
items: [],
itemsView: "full",
status: "completed",
error: null,
startedAt: null,
Expand Down Expand Up @@ -829,6 +832,7 @@ describe('ACP server test', { timeout: 40_000 }, () => {
defaultReasoningEffort: 'medium',
supportsPersonality: false,
additionalSpeedTiers: [],
serviceTiers: [],
isDefault: false,
inputModalities: []
},
Expand All @@ -847,6 +851,7 @@ describe('ACP server test', { timeout: 40_000 }, () => {
defaultReasoningEffort: 'low',
supportsPersonality: false,
additionalSpeedTiers: [],
serviceTiers: [],
isDefault: true,
inputModalities: []
}
Expand All @@ -873,6 +878,7 @@ describe('ACP server test', { timeout: 40_000 }, () => {
turn: {
id: "turn-id",
items: [],
itemsView: "full",
status: "inProgress",
error: null,
startedAt: null,
Expand All @@ -885,6 +891,7 @@ describe('ACP server test', { timeout: 40_000 }, () => {
turn: {
id: "turn-id",
items: [],
itemsView: "full",
status: "completed",
error: null,
startedAt: null,
Expand Down
12 changes: 12 additions & 0 deletions src/__tests__/CodexACPAgent/command-action-events.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ describe('CodexEventHandler - command action events', () => {
const listFilesNotification: ServerNotification = {
method: 'item/started',
params: {
startedAtMs: 0,
threadId: sessionId,
turnId: 'turn-1',
item: {
Expand Down Expand Up @@ -58,6 +59,7 @@ describe('CodexEventHandler - command action events', () => {
const listFilesNotification: ServerNotification = {
method: 'item/started',
params: {
startedAtMs: 0,
threadId: sessionId,
turnId: 'turn-1',
item: {
Expand Down Expand Up @@ -93,6 +95,7 @@ describe('CodexEventHandler - command action events', () => {
const searchNotification: ServerNotification = {
method: 'item/started',
params: {
startedAtMs: 0,
threadId: sessionId,
turnId: 'turn-1',
item: {
Expand Down Expand Up @@ -129,6 +132,7 @@ describe('CodexEventHandler - command action events', () => {
const searchNotification: ServerNotification = {
method: 'item/started',
params: {
startedAtMs: 0,
threadId: sessionId,
turnId: 'turn-1',
item: {
Expand Down Expand Up @@ -165,6 +169,7 @@ describe('CodexEventHandler - command action events', () => {
const searchNotification: ServerNotification = {
method: 'item/started',
params: {
startedAtMs: 0,
threadId: sessionId,
turnId: 'turn-1',
item: {
Expand Down Expand Up @@ -201,6 +206,7 @@ describe('CodexEventHandler - command action events', () => {
const searchNotification: ServerNotification = {
method: 'item/started',
params: {
startedAtMs: 0,
threadId: sessionId,
turnId: 'turn-1',
item: {
Expand Down Expand Up @@ -237,6 +243,7 @@ describe('CodexEventHandler - command action events', () => {
const searchNotification: ServerNotification = {
method: 'item/started',
params: {
startedAtMs: 0,
threadId: sessionId,
turnId: 'turn-1',
item: {
Expand Down Expand Up @@ -265,6 +272,7 @@ describe('CodexEventHandler - command action events', () => {
{
method: 'item/started',
params: {
startedAtMs: 0,
threadId: sessionId,
turnId: 'turn-1',
item: {
Expand Down Expand Up @@ -292,6 +300,7 @@ describe('CodexEventHandler - command action events', () => {
{
method: 'item/completed',
params: {
completedAtMs: 0,
threadId: sessionId,
turnId: 'turn-1',
item: {
Expand Down Expand Up @@ -324,6 +333,7 @@ describe('CodexEventHandler - command action events', () => {
{
method: 'item/started',
params: {
startedAtMs: 0,
threadId: sessionId,
turnId: 'turn-1',
item: {
Expand Down Expand Up @@ -360,6 +370,7 @@ describe('CodexEventHandler - command action events', () => {
{
method: 'item/completed',
params: {
completedAtMs: 0,
threadId: sessionId,
turnId: 'turn-1',
item: {
Expand Down Expand Up @@ -390,6 +401,7 @@ describe('CodexEventHandler - command action events', () => {
const dynamicToolNotification: ServerNotification = {
method: 'item/started',
params: {
startedAtMs: 0,
threadId: sessionId,
turnId: 'turn-1',
item: {
Expand Down
3 changes: 3 additions & 0 deletions src/__tests__/CodexACPAgent/elicitation-events.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ describe('Elicitation Events', () => {
const startedNotification: ServerNotification = {
method: 'item/started',
params: {
startedAtMs: 0,
threadId: sessionId,
turnId: 'turn-1',
item: {
Expand All @@ -269,6 +270,7 @@ describe('Elicitation Events', () => {
const completedNotification: ServerNotification = {
method: 'item/completed',
params: {
completedAtMs: 0,
threadId: sessionId,
turnId: 'turn-1',
item: {
Expand Down Expand Up @@ -314,6 +316,7 @@ describe('Elicitation Events', () => {
const startedNotification: ServerNotification = {
method: 'item/started',
params: {
startedAtMs: 0,
threadId: sessionId,
turnId: 'turn-1',
item: {
Expand Down
7 changes: 7 additions & 0 deletions src/__tests__/CodexACPAgent/file-change-events.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ describe('CodexEventHandler - file change events', () => {
const newFileNotification: ServerNotification = {
method: 'item/started',
params: {
startedAtMs: 0,
threadId: sessionId,
turnId: 'turn-1',
item: {
Expand Down Expand Up @@ -79,6 +80,7 @@ describe('CodexEventHandler - file change events', () => {
const multiFileNotification: ServerNotification = {
method: 'item/started',
params: {
startedAtMs: 0,
threadId: sessionId,
turnId: 'turn-1',
item: {
Expand Down Expand Up @@ -119,6 +121,7 @@ describe('CodexEventHandler - file change events', () => {
const newFileNotification: ServerNotification = {
method: 'item/started',
params: {
startedAtMs: 0,
threadId: sessionId,
turnId: 'turn-1',
item: {
Expand Down Expand Up @@ -147,6 +150,7 @@ describe('CodexEventHandler - file change events', () => {
const deleteFileNotification: ServerNotification = {
method: 'item/started',
params: {
startedAtMs: 0,
threadId: sessionId,
turnId: 'turn-1',
item: {
Expand Down Expand Up @@ -183,6 +187,7 @@ describe('CodexEventHandler - file change events', () => {
const deletedFileNotification: ServerNotification = {
method: 'item/started',
params: {
startedAtMs: 0,
threadId: sessionId,
turnId: 'turn-1',
item: {
Expand Down Expand Up @@ -213,6 +218,7 @@ describe('CodexEventHandler - file change events', () => {
const deleteFileNotification: ServerNotification = {
method: 'item/started',
params: {
startedAtMs: 0,
threadId: sessionId,
turnId: 'turn-1',
item: {
Expand Down Expand Up @@ -248,6 +254,7 @@ describe('CodexEventHandler - file change events', () => {
const deletedFileNotification: ServerNotification = {
method: 'item/started',
params: {
startedAtMs: 0,
threadId: sessionId,
turnId: 'turn-1',
item: {
Expand Down
4 changes: 4 additions & 0 deletions src/__tests__/CodexACPAgent/list-sessions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ describe("CodexACPAgent - list sessions", () => {

const threadA: Thread = {
id: "sess-1",
sessionId: "sess-1",
forkedFromId: null,
preview: "First session",
ephemeral: false,
Expand All @@ -25,6 +26,7 @@ describe("CodexACPAgent - list sessions", () => {
cwd: "/repo/project",
cliVersion: "0.0.0",
source: "cli",
threadSource: null,
agentNickname: null,
agentRole: null,
gitInfo: null,
Expand All @@ -33,6 +35,7 @@ describe("CodexACPAgent - list sessions", () => {
};
const threadB: Thread = {
id: "sess-2",
sessionId: "sess-2",
forkedFromId: null,
preview: "Other session",
ephemeral: false,
Expand All @@ -44,6 +47,7 @@ describe("CodexACPAgent - list sessions", () => {
cwd: "/repo/other",
cliVersion: "0.0.0",
source: "cli",
threadSource: null,
agentNickname: null,
agentRole: null,
gitInfo: null,
Expand Down
Loading
Loading