Skip to content

Commit 30a61f6

Browse files
authored
chore: Upgrade ACP SDK to 0.21.0 (#109)
1 parent 19aa4ec commit 30a61f6

5 files changed

Lines changed: 9 additions & 9 deletions

File tree

package-lock.json

Lines changed: 4 additions & 4 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
@@ -61,7 +61,7 @@
6161
"vitest": "^4.0.10"
6262
},
6363
"dependencies": {
64-
"@agentclientprotocol/sdk": "^0.16.1",
64+
"@agentclientprotocol/sdk": "^0.21.0",
6565
"@openai/codex": "^0.125.0",
6666
"diff": "^8.0.3",
6767
"open": "^11.0.0",

src/CodexAcpServer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ export class CodexAcpServer implements acp.Agent {
217217
};
218218
}
219219

220-
async unstable_resumeSession(params: acp.ResumeSessionRequest): Promise<acp.ResumeSessionResponse> {
220+
async resumeSession(params: acp.ResumeSessionRequest): Promise<acp.ResumeSessionResponse> {
221221
logger.log("Resuming session...", {sessionId: params.sessionId});
222222
const [sessionId, modelState, modeState] = await this.getOrCreateSession(params);
223223

@@ -232,7 +232,7 @@ export class CodexAcpServer implements acp.Agent {
232232
};
233233
}
234234

235-
async unstable_listSessions(params: acp.ListSessionsRequest): Promise<acp.ListSessionsResponse> {
235+
async listSessions(params: acp.ListSessionsRequest): Promise<acp.ListSessionsResponse> {
236236
logger.log("Listing sessions...", {cwd: params.cwd, cursor: params.cursor});
237237
await this.checkAuthorization();
238238
return await this.runWithProcessCheck(() => this.codexAcpClient.listSessions(params));

src/__tests__/CodexACPAgent/CodexAcpClient.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ describe('ACP server test', { timeout: 40_000 }, () => {
507507
fixture.clearCodexConnectionDump();
508508

509509
await expect(
510-
fixture.getCodexAcpAgent().unstable_resumeSession({cwd: "", sessionId: sessionId})
510+
fixture.getCodexAcpAgent().resumeSession({cwd: "", sessionId: sessionId})
511511
).rejects.toThrow("invalid thread id");
512512
});
513513

src/__tests__/CodexACPAgent/list-sessions.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ describe("CodexACPAgent - list sessions", () => {
6565
cwd: "/repo/project",
6666
cursor: null,
6767
};
68-
const response = await codexAcpAgent.unstable_listSessions(params);
68+
const response = await codexAcpAgent.listSessions(params);
6969

7070
expect(codexAppServerClient.threadList).toHaveBeenCalledWith(expect.objectContaining({
7171
sourceKinds: [

0 commit comments

Comments
 (0)