mirror of
https://github.com/coder/coder.git
synced 2026-06-03 04:58:23 +00:00
0ad2f9ecd7
Adds a nullable `last_error` column to the `chats` table so error reasons survive page reloads. **Backend:** - Migration adds `last_error TEXT` (nullable) to chats - `UpdateChatStatus` writes the error reason when status transitions to `error`, clears it (NULL) on recovery - `convertChat` maps `sql.NullString` to `*string` in the SDK **Frontend:** - Sidebar falls back to `chat.last_error` when no stream error reason is cached - Chat detail page does the same for `persistedErrorReason` - Fixtures updated for new required field
2 lines
46 B
SQL
2 lines
46 B
SQL
ALTER TABLE chats ADD COLUMN last_error TEXT;
|