This commit is contained in:
Timothy Jaeryang Baek committed 2026-06-19 23:58:06 +02:00
1 parent 7289c077a8
commit 759ffd1b2d
4 files changed
+54 -57

No files matched your search

@@ -177,6 +177,8 @@
return _t('chat.tool.checkTask', { id: args.task_id || '?' });
case 'kill_task':
return _t('chat.tool.killTask', { id: args.task_id || '?' });
case 'image_generate':
return args.image || args.images?.length ? 'Edit image' : 'Generate image';
case 'web_search':
return _t('chat.tool.webSearch', { query: args.query || '?' });
case 'read_url': {
@@ -27,7 +27,7 @@
const isRejected = $derived(item.status === 'rejected');
const isPending = $derived(item.status === 'pending');
const imageToolOutput = $derived.by(() => {
if (!['generate_image', 'edit_image'].includes(toolName) || !pairedOutput?.output) {
if (toolName !== 'image_generate' || !pairedOutput?.output) {
return null;
}
try {