feat(chat): show cognitive channel status
CI / test (push) Successful in 20s
CI / test (pull_request) Successful in 19s

This commit is contained in:
m
2026-08-21 09:09:26 +03:00
parent 26cf85108a
commit b0ee54153b
6 changed files with 103 additions and 2 deletions
+5
View File
@@ -25,6 +25,11 @@ func TestChatPageServedWithoutInternalIDs(t *testing.T) {
t.Fatalf("expected /chat status 200, got %d", recorder.Code)
}
body := recorder.Body.String()
for _, required := range []string{"cognitive-status", "aria-live=\"polite\""} {
if !strings.Contains(body, required) {
t.Fatalf("/chat is missing human status marker %q", required)
}
}
for _, forbidden := range []string{"provider_id", "model_id", "binding_id", "workspace-id", "session-id"} {
if strings.Contains(body, forbidden) {
t.Fatalf("/chat leaks internal field %q", forbidden)