mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
fix: add shell_command tool to knownTools registry
Codex API sends 'shell_command' as the tool name for bash commands, but the web app didn't recognize it, falling back to a generic wrench icon. This adds proper presentation with a terminal icon, matching Claude's Bash tool display.
This commit is contained in:
@@ -137,6 +137,12 @@ export const knownTools: Record<string, {
|
||||
},
|
||||
minimal: true
|
||||
},
|
||||
shell_command: {
|
||||
icon: () => <TerminalIcon className={DEFAULT_ICON_CLASS} />,
|
||||
title: (opts) => opts.description ?? 'Terminal',
|
||||
subtitle: (opts) => getInputStringAny(opts.input, ['command', 'cmd']),
|
||||
minimal: true
|
||||
},
|
||||
Read: {
|
||||
icon: () => <EyeIcon className={DEFAULT_ICON_CLASS} />,
|
||||
title: (opts) => {
|
||||
|
||||
Reference in New Issue
Block a user