Cian Johnston
21a2652343
fix(coderd/x/chatd): show correct provider and clean detail for Bedrock errors ( #26338 )
...
## Problem
Bedrock errors (routed through aibridge) showed the wrong provider
("Anthropic ...")
and a doubly-wrapped detail string instead of the clean message.
## Fix (chatd only)
- **Provider label:** thread the configured provider to error
classification via
`GenerateAssistantOptions.ErrorProvider`. Transport provider still
drives prompt
prep, sanitization, and metric labels (unchanged).
- **Detail:** unwrap the SDK transport wrapper (`METHOD "URL": NNN
{body}`) to surface
the inner message; handles top-level `{"message":...}` and nested
`{"error":{"message":...}}`.
## Notes
- Surfacing a top-level `message` now applies to all providers
(intentional; nested wins when both present).
- The advisor path keeps the transport label; accepted as-is (it returns
`err.Error()`, not the classification).
- Fixes display in chatd only; the wrapper originates in aibridge (out
of scope here).
🤖 Generated by Coder Agents.
2026-06-16 11:14:37 +01:00
..
2026-06-12 13:33:12 +02:00
2026-03-23 17:34:43 +00:00
2026-06-12 13:33:12 +02:00
2026-06-16 11:14:37 +01:00
2026-06-16 11:14:37 +01:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-06-15 16:27:36 +02:00
2026-06-16 00:21:13 +10:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-05-04 11:17:19 +02:00
2026-03-30 11:43:59 +00:00
2026-06-01 16:17:29 +03:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-06-16 09:01:43 +00:00
2026-05-22 20:24:38 +10:00
2026-05-18 12:30:30 -04:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-06-16 09:01:43 +00:00
2026-06-12 13:33:12 +02:00
2026-06-16 09:01:43 +00:00
2026-06-12 13:33:12 +02:00
2026-06-16 09:01:43 +00:00
2026-06-12 13:33:12 +02:00
2026-05-08 02:07:33 +10:00
2026-06-12 13:33:12 +02:00
2026-05-26 19:31:52 +00:00
2026-05-22 20:24:38 +10:00
2026-05-22 09:50:01 +02:00
2026-06-12 13:33:12 +02:00
2026-04-09 16:33:00 +02:00
2026-06-11 16:08:32 +10:00
2026-06-11 16:08:32 +10:00
2026-05-20 01:37:38 +02:00
2026-04-08 11:54:44 -04:00
2026-04-08 11:54:44 -04:00
2026-06-16 09:01:43 +00:00
2026-06-16 11:14:37 +01:00
2026-06-12 13:33:12 +02:00
2026-06-16 11:14:37 +01:00
2026-06-12 13:33:12 +02:00
2026-05-22 14:08:07 +00:00
2026-06-12 13:33:12 +02:00
2026-06-15 20:24:13 +10:00
2026-06-12 13:33:12 +02:00
2026-06-15 17:17:50 +02:00
2026-06-15 17:17:50 +02:00
2026-06-16 09:01:43 +00:00
2026-05-26 19:31:52 +00:00
2026-06-16 09:01:43 +00:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-05-05 00:57:51 +02:00
2026-05-05 00:57:51 +02:00
2026-05-22 14:08:07 +00:00
2026-05-28 10:27:32 +02:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-04-22 20:11:53 +10:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-03-25 14:09:24 +00:00
2026-03-25 14:09:24 +00:00
2026-05-22 20:24:38 +10:00
2026-04-22 20:11:53 +10:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-05-22 02:17:09 +02:00
2026-06-12 13:33:12 +02:00
2026-06-16 09:01:43 +00:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-06-12 15:47:20 +00:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-06-16 09:01:43 +00:00
2026-05-26 19:31:52 +00:00
2026-06-15 15:58:36 +00:00
2026-05-22 20:24:38 +10:00
2026-04-14 16:56:17 +01:00
2026-06-15 20:24:13 +10:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00