Skip to content

fix(agent-ui): add search_files tool rendering support#1829

Open
Br1an67 wants to merge 1 commit into
bytedance:mainfrom
Br1an67:fix/issue-846-search-files-render
Open

fix(agent-ui): add search_files tool rendering support#1829
Br1an67 wants to merge 1 commit into
bytedance:mainfrom
Br1an67:fix/issue-846-search-files-render

Conversation

@Br1an67
Copy link
Copy Markdown
Contributor

@Br1an67 Br1an67 commented Mar 1, 2026

Summary

Map search_files tool to the command_result renderer in the workspace panel and add inline argument display in chat tool calls.

Problem

The search_files tool result falls through to the default JSON renderer, displaying raw JSON structure instead of formatted output.

Changes

  • Added search_filescommand_result mapping in tool-renderers/index.ts so workspace panel renders results with the terminal/command output renderer
  • Added case 'search_files': to getArgumentInfo() in ToolCalls.tsx to show the search pattern and path inline
  • Added 'Search Files' display name mapping
  • Added search_files to isFileRelatedTool() list

Closes #846

Checklist

  • My changes don't break existing behavior
  • I've added tests (N/A — UI display mapping, no existing unit tests for this component)
  • I've updated documentation (N/A)
  • No breaking changes introduced

Map search_files to command_result renderer in workspace panel and add
inline argument display (pattern + path) in chat tool calls. Also add
search_files to file-related tools list and display name mapping.

Previously search_files fell through to the default JSON renderer,
showing raw JSON instead of formatted output.
@netlify
Copy link
Copy Markdown

netlify Bot commented Mar 1, 2026

Deploy Preview for agent-tars-docs ready!

Name Link
🔨 Latest commit 59e5d32
🔍 Latest deploy log https://app.netlify.com/projects/agent-tars-docs/deploys/69a465808141e40008a8475d
😎 Deploy Preview https://deploy-preview-1829--agent-tars-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify Bot commented Mar 1, 2026

Deploy Preview for tarko ready!

Name Link
🔨 Latest commit 59e5d32
🔍 Latest deploy log https://app.netlify.com/projects/tarko/deploys/69a465801d346300082b9f13
😎 Deploy Preview https://deploy-preview-1829--tarko.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug Report]: search_files does not render correctly

1 participant