feat(webui): unify remaining tool display labels

Refs #1367
This commit is contained in:
yiliang114 2026-03-23 00:47:19 +08:00
parent 38caa0b218
commit 2490a03fe4
9 changed files with 216 additions and 49 deletions

View file

@ -15,6 +15,7 @@ import {
mapToolStatusToContainerStatus,
} from './shared/index.js';
import type { BaseToolCallProps } from './shared/index.js';
import { getToolDisplayLabel } from './labelUtils.js';
type WebVariant = 'fetch' | 'search';
@ -121,7 +122,7 @@ const WebFetchToolCallImpl: FC<BaseToolCallProps & { variant: WebVariant }> = ({
const { title, content, rawInput, toolCallId } = toolCall;
const webTarget = getWebTarget(variant, title, rawInput);
const label = variant === 'fetch' ? 'Web Fetch' : 'Web Search';
const label = getToolDisplayLabel({ kind: toolCall.kind, title });
// Group content by type
const { textOutputs, errors } = groupContent(content);