fix(agent): send structured prompt to tau rpc

This commit is contained in:
Peter Steinberger
2025-12-10 15:52:39 +00:00
parent 6459582952
commit 8f456ea73b

View File

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