Skip to content

fix(agent-ui): display run_script tool arguments in chat#1828

Open
Br1an67 wants to merge 1 commit intobytedance:mainfrom
Br1an67:fix/issue-822-run-script-display
Open

fix(agent-ui): display run_script tool arguments in chat#1828
Br1an67 wants to merge 1 commit intobytedance:mainfrom
Br1an67:fix/issue-822-run-script-display

Conversation

@Br1an67
Copy link

@Br1an67 Br1an67 commented Mar 1, 2026

Summary

Add run_script case handling to ToolCalls.tsx so that the script content is displayed inline in chat tool calls.

Problem

When the run_script tool is called, the chat UI shows the tool call but doesn't display the script content. This is because getArgumentInfo() has no case 'run_script': — it falls through to the default case which returns an empty string.

Changes

  • Added case 'run_script': to getArgumentInfo() to display args.script inline, consistent with how run_command displays args.command
  • Added run_script'Run Script' mapping to getToolDisplayName()

Closes #822

Checklist

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

Add run_script case to getArgumentInfo() to show script content inline
in chat tool calls, and add display name mapping for 'Run Script'.

Previously, run_script tool calls fell through to the default case,
showing no argument info. Now the script content is displayed inline,
consistent with how run_command shows the command argument.
@netlify
Copy link

netlify bot commented Mar 1, 2026

Deploy Preview for agent-tars-docs ready!

Name Link
🔨 Latest commit 87be072
🔍 Latest deploy log https://app.netlify.com/projects/agent-tars-docs/deploys/69a464193288510008e0e655
😎 Deploy Preview https://deploy-preview-1828--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

netlify bot commented Mar 1, 2026

Deploy Preview for tarko ready!

Name Link
🔨 Latest commit 87be072
🔍 Latest deploy log https://app.netlify.com/projects/tarko/deploys/69a46419fa78ca000811e13b
😎 Deploy Preview https://deploy-preview-1828--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]: run_script does not display the script

1 participant