From 5fde1c2d30be4b5b10ec9f0017e607e39b652cda Mon Sep 17 00:00:00 2001 From: liu-b Date: Tue, 21 Oct 2025 09:38:53 +0900 Subject: [PATCH] fix: correct RPC method call in ClientSideConnection.setSessionModel() The setSessionModel method was incorrectly calling session_set_mode instead of session_set_model, causing parameter validation errors. Changed line 598 in src/acp.ts to use the correct RPC method. Fixes: Parameter validation error when calling setSessionModel() --- src/acp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/acp.ts b/src/acp.ts index dc949c6..1b81047 100644 --- a/src/acp.ts +++ b/src/acp.ts @@ -595,7 +595,7 @@ export class ClientSideConnection implements Agent { ): Promise { return ( (await this.#connection.sendRequest( - schema.AGENT_METHODS.session_set_mode, + schema.AGENT_METHODS.session_set_model, params, )) ?? {} );