v1

latestOpenAPI 3.1.02026-08-04156223229.6 KB
sync-chat

Start Sync Chat Review

Ensure a post-scott sync review turn is in flight, and dispatch it.

Called by both the CLI (after an upload) and the /sync page (on an empty or stale thread), so it is idempotent: if a review turn is already pending or streaming at the thread tip, it re-nudges that turn instead of stacking a duplicate. A fresh review is only created once the previous one has settled, so a later sync reflects the newly uploaded sessions.

Dispatch is best-effort. The pending row is the durable work item; on a missed dispatch reconcile_sync_chat_turns re-dispatches it, so this returns 200 (the review is queued) rather than 503.

post/agent-loop/sync-chat/start-review

Response

Successful Response

turn_idstring required
handoff_codestring required

Single-use code redeemable at /agent-loop/internal/agent-token/redeem for the sync-chat agent-svc JWT (caps=['sync-chat-turn']) bound to this turn. 60s TTL.