mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-21 01:01:42 +00:00
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.
This commit is contained in:
parent
a484330cd1
commit
958d265112
1 changed files with 1 additions and 1 deletions
|
|
@ -609,7 +609,7 @@ async function runRpcMode(agent: Agent, _sessionManager: SessionManager): Promis
|
||||||
|
|
||||||
// Handle different RPC commands
|
// Handle different RPC commands
|
||||||
if (input.type === "prompt" && input.message) {
|
if (input.type === "prompt" && input.message) {
|
||||||
await agent.prompt(input.message);
|
await agent.prompt(input.message, input.attachments);
|
||||||
} else if (input.type === "abort") {
|
} else if (input.type === "abort") {
|
||||||
agent.abort();
|
agent.abort();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue