chenbhao Claude Big Pickle commited on
Commit
bfb2909
·
1 Parent(s): 184c51a

fix: make ImageShowTool non-deferred so model can discover and call it

Browse files

- Change shouldDefer from true to false so ImageShowTool is always
available in the model's tool list without requiring ToolSearch
- Previously the model couldn't find ImageShowTool and fell back to
running standalone.tsx via Bash, whose stdout capture garbled the
Kitty protocol output

Co-Authored-By: Claude Big Pickle <noreply@anthropic.com>

src/tools/ImageShowTool/ImageShowTool.ts CHANGED
@@ -196,7 +196,7 @@ export const ImageShowTool = buildTool({
196
  name: IMAGE_SHOW_TOOL_NAME,
197
  searchHint: 'display an image in the terminal',
198
  maxResultSizeChars: 10_000,
199
- shouldDefer: true,
200
  async description(input) {
201
  const { src } = input as { src: string }
202
  try {
 
196
  name: IMAGE_SHOW_TOOL_NAME,
197
  searchHint: 'display an image in the terminal',
198
  maxResultSizeChars: 10_000,
199
+ shouldDefer: false,
200
  async description(input) {
201
  const { src } = input as { src: string }
202
  try {