diff options
| author | Adam <[email protected]> | 2025-12-24 08:57:44 -0600 |
|---|---|---|
| committer | Adam <[email protected]> | 2025-12-24 09:07:31 -0600 |
| commit | b75575884af2cee6effc4cb7fc632215d60c25e2 (patch) | |
| tree | b4aafac2fe8b0734e58eadb3e45cf934a010b6dd /packages/ui/src | |
| parent | 5688c9fd6196cc1dba75e715af8f92961eca9cea (diff) | |
| download | opencode-b75575884af2cee6effc4cb7fc632215d60c25e2.tar.gz opencode-b75575884af2cee6effc4cb7fc632215d60c25e2.zip | |
feat(desktop): show read tool args
Diffstat (limited to 'packages/ui/src')
| -rw-r--r-- | packages/ui/src/components/message-part.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/ui/src/components/message-part.tsx b/packages/ui/src/components/message-part.tsx index 973a06230..314cbc326 100644 --- a/packages/ui/src/components/message-part.tsx +++ b/packages/ui/src/components/message-part.tsx @@ -441,6 +441,9 @@ PART_MAPPING["reasoning"] = function ReasoningPartDisplay(props) { ToolRegistry.register({ name: "read", render(props) { + const args: string[] = [] + if (props.input.offset) args.push("offset=" + props.input.offset) + if (props.input.limit) args.push("limit=" + props.input.limit) return ( <BasicTool {...props} @@ -448,6 +451,7 @@ ToolRegistry.register({ trigger={{ title: "Read", subtitle: props.input.filePath ? getFilename(props.input.filePath) : "", + args, }} /> ) |
