Prechádzať zdrojové kódy

tui: show loaded file paths inline with Read tool to reduce visual clutter

tui: change Task tool icon to vertical ellipsis for clearer visual distinction
Dax Raad 1 mesiac pred
rodič
commit
ec56e95b9c

+ 8 - 8
packages/opencode/src/cli/cmd/tui/routes/session/index.tsx

@@ -1875,14 +1875,14 @@ function Read(props: ToolProps<typeof ReadTool>) {
         part={props.part}
       >
         Read {normalizePath(props.input.filePath!)} {input(props.input, ["filePath"])}
+        <For each={loaded()}>
+          {(filepath) => (
+            <>
+              {"\n"}↳{"  "}Loaded {normalizePath(filepath)}
+            </>
+          )}
+        </For>
       </InlineTool>
-      <For each={loaded()}>
-        {(filepath) => (
-          <box paddingLeft={3}>
-            <text fg={theme.textMuted}>↳ Loaded {normalizePath(filepath)}</text>
-          </box>
-        )}
-      </For>
     </>
   )
 }
@@ -1975,7 +1975,7 @@ function Task(props: ToolProps<typeof TaskTool>) {
 
   return (
     <InlineTool
-      icon=""
+      icon=""
       spinner={isRunning()}
       complete={props.input.description}
       pending="Delegating..."