feat: add collapsible thinking blocks with configurable display mode (#24635)

This commit is contained in:
Danielle Maywood
2026-04-24 11:29:08 +00:00
committed by GitHub
parent ce125831d3
commit 3a9a60dff8
26 changed files with 881 additions and 90 deletions
+26 -8
View File
@@ -10323,6 +10323,20 @@ Restarts will only happen on weekdays in this list on weeks which line up with W
|-------------------------------------------------------------------------------------|
| ``, `fira-code`, `geist-mono`, `ibm-plex-mono`, `jetbrains-mono`, `source-code-pro` |
## codersdk.ThinkingDisplayMode
```json
"auto"
```
### Properties
#### Enumerated Values
| Value(s) |
|----------------------------------------------------------|
| `always_collapsed`, `always_expanded`, `auto`, `preview` |
## codersdk.TimingStage
```json
@@ -10658,15 +10672,17 @@ Restarts will only happen on weekdays in this list on weeks which line up with W
```json
{
"task_notification_alert_dismissed": true
"task_notification_alert_dismissed": true,
"thinking_display_mode": "auto"
}
```
### Properties
| Name | Type | Required | Restrictions | Description |
|-------------------------------------|---------|----------|--------------|-------------|
| `task_notification_alert_dismissed` | boolean | false | | |
| Name | Type | Required | Restrictions | Description |
|-------------------------------------|--------------------------------------------------------------|----------|--------------|-------------|
| `task_notification_alert_dismissed` | boolean | false | | |
| `thinking_display_mode` | [codersdk.ThinkingDisplayMode](#codersdkthinkingdisplaymode) | false | | |
## codersdk.UpdateUserProfileRequest
@@ -11228,15 +11244,17 @@ If the schedule is empty, the user will be updated to use the default schedule.|
```json
{
"task_notification_alert_dismissed": true
"task_notification_alert_dismissed": true,
"thinking_display_mode": "auto"
}
```
### Properties
| Name | Type | Required | Restrictions | Description |
|-------------------------------------|---------|----------|--------------|-------------|
| `task_notification_alert_dismissed` | boolean | false | | |
| Name | Type | Required | Restrictions | Description |
|-------------------------------------|--------------------------------------------------------------|----------|--------------|-------------|
| `task_notification_alert_dismissed` | boolean | false | | |
| `thinking_display_mode` | [codersdk.ThinkingDisplayMode](#codersdkthinkingdisplaymode) | false | | |
## codersdk.UserQuietHoursScheduleConfig
+6 -3
View File
@@ -1298,7 +1298,8 @@ curl -X GET http://coder-server:8080/api/v2/users/{user}/preferences \
```json
{
"task_notification_alert_dismissed": true
"task_notification_alert_dismissed": true,
"thinking_display_mode": "auto"
}
```
@@ -1328,7 +1329,8 @@ curl -X PUT http://coder-server:8080/api/v2/users/{user}/preferences \
```json
{
"task_notification_alert_dismissed": true
"task_notification_alert_dismissed": true,
"thinking_display_mode": "auto"
}
```
@@ -1345,7 +1347,8 @@ curl -X PUT http://coder-server:8080/api/v2/users/{user}/preferences \
```json
{
"task_notification_alert_dismissed": true
"task_notification_alert_dismissed": true,
"thinking_display_mode": "auto"
}
```