Commit 13c0384
authored
🤖 feat: improve task tool output styling with dedicated components (#1256)
## Summary
Improves the styling of task tool outputs (task, task_await, task_list,
task_terminate) with dedicated React components and a cohesive visual
design.
## Changes
### New Components
- **TaskToolCall.tsx** - Dedicated components for all task-related tools
with:
- Teal/cyan color theme distinct from plan (blue) and exec (purple)
modes
- Status badges with color-coded states (completed, running, queued,
terminated, error)
- Agent type badges (explore/exec)
- Task ID display with monospace styling
- Markdown rendering for task reports
- Collapsible details with prompt preview when collapsed
### Styling
- New CSS variables: `--color-task-mode`, `--surface-task-*`
- New utility classes: `task-surface`, `task-divider`
### Storybook Coverage
- **App.task.stories.tsx** with visual tests for:
- Completed tasks with reports
- Background/queued tasks
- Multiple parallel tasks
- Task await with mixed statuses
- Task list with hierarchy
- Task termination (success and error states)
## Testing
- `make static-check` passes
- `make storybook-build` succeeds
- All type exports added to `src/common/types/tools.ts`
---
_Generated with `mux` • Model: `anthropic:claude-opus-4-5` • Thinking:
`high`_1 parent 0bdefe1 commit 13c0384
File tree
6 files changed
+1044
-0
lines changed- src
- browser
- components
- Messages
- tools
- stories
- styles
- common/types
6 files changed
+1044
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
17 | 23 | | |
18 | 24 | | |
19 | 25 | | |
| |||
41 | 47 | | |
42 | 48 | | |
43 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
44 | 58 | | |
45 | 59 | | |
46 | 60 | | |
| |||
146 | 160 | | |
147 | 161 | | |
148 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
149 | 183 | | |
150 | 184 | | |
151 | 185 | | |
| |||
354 | 388 | | |
355 | 389 | | |
356 | 390 | | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
357 | 439 | | |
358 | 440 | | |
359 | 441 | | |
| |||
0 commit comments