Skip to content

feat(site): add specialized renderer for process_output tool in agent chats#22628

Merged
kylecarbs merged 1 commit intomainfrom
feat/process-output-tool-renderer
Mar 4, 2026
Merged

feat(site): add specialized renderer for process_output tool in agent chats#22628
kylecarbs merged 1 commit intomainfrom
feat/process-output-tool-renderer

Conversation

@kylecarbs
Copy link
Copy Markdown
Member

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.tsxProcessOutputRenderer + registered in toolRenderers map
  • ToolIcon.tsxprocess_output falls through to TerminalIcon
  • ToolLabel.tsx — shows "Reading process output" label

… chats

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.

- 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
- ToolIcon falls through to TerminalIcon (same as execute)
- ToolLabel shows 'Reading process output' text
@kylecarbs kylecarbs merged commit 0ccfc4d into main Mar 4, 2026
27 checks passed
@kylecarbs kylecarbs deleted the feat/process-output-tool-renderer branch March 4, 2026 23:04
@github-actions github-actions bot locked and limited conversation to collaborators Mar 4, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants