fix: correct streamDocumentation URL path to include /v1 prefix

The SSE stream URL was /api/ai-sessions/ but the backend mounts all
routes under /api/v1/. This caused a 404, falling through to a
non-streaming fallback that returned empty documentation for chat
sessions. This is why "Conclude → Resolved" never showed ticket notes.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
chihlasm
2026-03-29 07:21:44 +00:00
parent d6d1002172
commit d6877bb55e

View File

@@ -110,7 +110,7 @@ export const aiSessionsApi = {
try {
const response = await fetch(
`${baseUrl}/api/ai-sessions/${sessionId}/documentation/stream`,
`${baseUrl}/api/v1/ai-sessions/${sessionId}/documentation/stream`,
{
headers: {
Authorization: `Bearer ${token}`,