mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
Adds a `ProcessOutputTool` component that renders `process_output` tool calls with a clean terminal-style output block instead of falling through to the generic JSON renderer. ## Changes **New file:** `ProcessOutputTool.tsx` - Output shown directly with no header - Copy button and status indicators float top-right on hover - Collapsible output with the same expand/collapse chevron bar used by `ExecuteTool` - Exit code badge shown only for non-zero exits - Spinner shown while process is still running **Modified files:** - `Tool.tsx` — `ProcessOutputRenderer` + registered in `toolRenderers` map - `ToolIcon.tsx` — `process_output` falls through to `TerminalIcon` - `ToolLabel.tsx` — shows "Reading process output" label