feat(chat): repoint CHAT_API_POST_PATH to canonical /api/chat

Merged
SW
6mo ago
+2-2

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=web passes; no /api/chat/workflow refs remain.
  • Single URL constant (no test references it); behaviour verified upstream via api#645's authenticated /api/chat stream 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/api removal of /api/chat/workflow to avoid 404s.
    • Stop/resume routes (/api/chat/{chatId}/stop, /api/chat/{chatId}/stream) are unchanged.