From 958d265112e1bb969ed656adb6e126db2dc0378a Mon Sep 17 00:00:00 2001 From: kiliman Date: Tue, 25 Nov 2025 21:56:32 -0500 Subject: [PATCH] fix: pass attachments to agent prompt from RPC interface This PR updates the call to `agent.prompt` with the `attachments` prop provided in the JSON input. --- packages/coding-agent/src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/coding-agent/src/main.ts b/packages/coding-agent/src/main.ts index 355e5507..b4e599cb 100644 --- a/packages/coding-agent/src/main.ts +++ b/packages/coding-agent/src/main.ts @@ -609,7 +609,7 @@ async function runRpcMode(agent: Agent, _sessionManager: SessionManager): Promis // Handle different RPC commands if (input.type === "prompt" && input.message) { - await agent.prompt(input.message); + await agent.prompt(input.message, input.attachments); } else if (input.type === "abort") { agent.abort(); }