Skip to content

Commit 2a649b2

Browse files
committed
Remove unused file_list UI routing - uses GenericToolCall fallback
The file_list tool is already handled by GenericToolCall at the end of ToolMessage.tsx, so the custom FileListToolCall component and routing were never actually used. Removed to fix lint errors.
1 parent 348a8e4 commit 2a649b2

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

src/components/Messages/ToolMessage.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,14 @@ import { GenericToolCall } from "../tools/GenericToolCall";
55
import { BashToolCall } from "../tools/BashToolCall";
66
import { FileEditToolCall } from "../tools/FileEditToolCall";
77
import { FileReadToolCall } from "../tools/FileReadToolCall";
8-
import { FileListToolCall } from "../tools/FileListToolCall";
8+
99
import { ProposePlanToolCall } from "../tools/ProposePlanToolCall";
1010
import { TodoToolCall } from "../tools/TodoToolCall";
1111
import type {
1212
BashToolArgs,
1313
BashToolResult,
1414
FileReadToolArgs,
1515
FileReadToolResult,
16-
FileListToolArgs,
17-
FileListToolResult,
1816
FileEditInsertToolArgs,
1917
FileEditInsertToolResult,
2018
FileEditReplaceStringToolArgs,
@@ -45,10 +43,7 @@ function isFileReadTool(toolName: string, args: unknown): args is FileReadToolAr
4543
return TOOL_DEFINITIONS.file_read.schema.safeParse(args).success;
4644
}
4745

48-
function isFileListTool(toolName: string, args: unknown): args is FileListToolArgs {
49-
if (toolName !== "file_list") return false;
50-
return TOOL_DEFINITIONS.file_list.schema.safeParse(args).success;
51-
}
46+
5247

5348
function isFileEditReplaceStringTool(
5449
toolName: string,

src/components/tools/FileListToolCall.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from "react";
22
import styled from "@emotion/styled";
3-
import type { FileListToolArgs, FileListToolResult, FileEntry } from "@/types/tools";
3+
import type { FileListToolArgs, FileListToolResult } from "@/types/tools";
44
import {
55
ToolContainer,
66
ToolHeader,

0 commit comments

Comments
 (0)