fix(agent): send structured prompt to tau rpc
This commit is contained in:
@@ -221,8 +221,11 @@ class TauRpcClient {
|
|||||||
const ok = child.stdin.write(
|
const ok = child.stdin.write(
|
||||||
`${JSON.stringify({
|
`${JSON.stringify({
|
||||||
type: "prompt",
|
type: "prompt",
|
||||||
// RPC v0.17+ accepts raw string prompts and normalizes internally.
|
// Send structured content to match tau RPC expectations and avoid
|
||||||
message: prompt,
|
// empty-text bugs on older builds.
|
||||||
|
message: {
|
||||||
|
content: [{ type: "text", text: prompt }],
|
||||||
|
},
|
||||||
})}\n`,
|
})}\n`,
|
||||||
(err) => (err ? reject(err) : resolve()),
|
(err) => (err ? reject(err) : resolve()),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user