fix(webui): sanitise dashboard chat error responses (#1908) #1909

Merged
sam merged 2 commits from fix/1908-webui-chat-errors into main 2026-11-12 13:23:30 +00:00
2 Commits
Author SHA1 Message Date
sam 27e997e0d9 Merge branch 'main' into fix/1908-webui-chat-errors
ci/woodpecker/pr/quality Pipeline was successful
Quality / check (pull_request) Successful in 4m40s
2026-11-12 13:23:15 +00:00
sam 14da38b9b7 fix(webui): sanitise dashboard chat error responses (#1908)
ci/woodpecker/pr/quality Pipeline was successful
Quality / check (pull_request) Successful in 7m28s
Chat handlers returned raw contract errors to the browser, which can
carry SQL fragments, gRPC status details or host paths. Each 5xx and
transport failure now answers with a plain sentence in the gateway's
wording and logs the real cause through the injected logger's
ErrorContext. The SSE error frame on stream-open failure gets the same
treatment. Safe 400 validation messages and the 404 'session not found'
are unchanged.
2026-11-13 00:10:22 +11:00