Tau RPC: resolve on agent_end or exit

This commit is contained in:
Peter Steinberger
2025-12-03 11:34:00 +00:00
parent cc596ef011
commit 3958450223
2 changed files with 13 additions and 66 deletions
+1 -1
View File
@@ -10,7 +10,7 @@
- **Pi/Tau stability:** RPC replies buffered until the assistant turn finishes; parsers return consistent `texts[]`; web auto-replies keep a warm Tau RPC process to avoid cold starts.
- **Claude prompt flow:** One-time `sessionIntro` with per-message `/think:high` bodyPrefix; system prompt always sent on first turn even with `sendSystemOnce`.
- **Heartbeat UX:** Backpressure skips reply heartbeats while other commands run; skips dont refresh session `updatedAt`; web/Twilio heartbeats normalize array payloads and optional `heartbeatCommand`.
- **Tau completion signal:** RPC now resolves on Taus `agent_end` event so late assistant messages (e.g., camera snap + weather) arent truncated.
- **Tau completion signal:** RPC now resolves on Taus `agent_end` (or process exit) so late assistant messages arent truncated; 5-minute hard cap only as a failsafe.
### Reliability & UX
- Outbound chunking prefers newlines/word boundaries and enforces caps (1600 WhatsApp/Twilio, 4000 web).