feat(chat): repoint CHAT_API_POST_PATH to canonical /api/chat
Step 4 of the recoup-api /api/chat/workflow → /api/chat rename (recoupable/chat#1767).
CHAT_API_POST_PATH now targets ${RECOUPABLE_API_BASE_URL}/api/chat (was /api/chat/workflow), matching the renamed endpoint (recoupable/api#645) and docs contract (recoupable/docs#235).
Change
apps/web/lib/chat/chat-api-client.ts—CHAT_API_POST_PATH→/api/chat(+ comment tidy)
⚠️ Deploy coordination (critical)
recoupable/api#645 deletes /api/chat/workflow (no alias). This open-agents change, the chat repoint (recoupable/chat#1783), and api#645's promotion to prod must all deploy in the same window — otherwise whichever is out of sync 404s.
Note: the stop/resume sub-routes (/api/chat/{chatId}/stop, /stream) are unaffected — this only moves the start (POST) path.
Verification
turbo typecheck --filter=webpasses; no/api/chat/workflowrefs remain.- Single URL constant (no test references it); behaviour verified upstream via api#645's authenticated
/api/chatstream test.
Summary by cubic
Repointed CHAT_API_POST_PATH to ${RECOUPABLE_API_BASE_URL}/api/chat (from /api/chat/workflow) to match the canonical chat endpoint and docs. No functional changes beyond the POST path.
- Migration
- Coordinate deploy with
recoupable/apiremoval of/api/chat/workflowto avoid 404s. - Stop/resume routes (
/api/chat/{chatId}/stop,/api/chat/{chatId}/stream) are unchanged.
- Coordinate deploy with