Skip to content

Commit b755758

Browse files
committed
feat(desktop): show read tool args
1 parent 5688c9f commit b755758

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/ui/src/components/message-part.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,13 +441,17 @@ PART_MAPPING["reasoning"] = function ReasoningPartDisplay(props) {
441441
ToolRegistry.register({
442442
name: "read",
443443
render(props) {
444+
const args: string[] = []
445+
if (props.input.offset) args.push("offset=" + props.input.offset)
446+
if (props.input.limit) args.push("limit=" + props.input.limit)
444447
return (
445448
<BasicTool
446449
{...props}
447450
icon="glasses"
448451
trigger={{
449452
title: "Read",
450453
subtitle: props.input.filePath ? getFilename(props.input.filePath) : "",
454+
args,
451455
}}
452456
/>
453457
)

0 commit comments

Comments
 (0)