We had a regression where the labels were being rendered as markdown, which is usually not what you want on a command Self-Review Checklist: - [x] I've reviewed my own diff for quality, security, and reliability - [x] Unsafe blocks (if any) have justifying comments - [x] The content is consistent with the [UI/UX checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) - [ ] Tests cover the new/changed behavior - [x] Performance impact has been considered and is acceptable Release Notes: - N/A
Unified · Split
| @@ -299,10 +299,15 @@ impl ToolCall { · 298 unmodified lines | ||
| 299 | 299 | |
| 300 | 300 | let subagent_session_info = subagent_session_info_from_meta(&tool_call.meta); |
| 301 | 301 | |
| 302 | + let label = if tool_call.kind == acp::ToolKind::Execute { | |
| 303 | + cx.new(|cx| Markdown::new_text(title.into(), cx)) | |
| 304 | + } else { | |
| 305 | + cx.new(|cx| Markdown::new(title.into(), Some(language_registry.clone()), None, cx)) | |
| 306 | + }; | |
| 307 | + | |
| 302 | 308 | let result = Self { |
| 303 | 309 | id: tool_call.tool_call_id, |
| 304 | − label: cx | |
| 305 | − .new(|cx| Markdown::new(title.into(), Some(language_registry.clone()), None, cx)), | |
| 310 | + label, | |
| 306 | 311 | kind: tool_call.kind, |
| 307 | 312 | content, |
| 308 | 313 | locations: tool_call.locations, |