Просмотр исходного кода

tweak wording to say Patched for ui rendered tool parts

Aiden Cline 3 месяцев назад
Родитель
Сommit
8a6b8e5339

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

@@ -1877,7 +1877,7 @@ function ApplyPatch(props: ToolProps<typeof ApplyPatchTool>) {
     if (file.type === "delete") return "# Deleted " + file.relativePath
     if (file.type === "add") return "# Created " + file.relativePath
     if (file.type === "move") return "# Moved " + normalizePath(file.filePath) + " → " + file.relativePath
-    return "← Edit " + file.relativePath
+    return "← Patched " + file.relativePath
   }
 
   return (

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

@@ -1090,7 +1090,7 @@ ToolRegistry.register({
                       </Match>
                       <Match when={file.type === "update"}>
                         <span data-slot="apply-patch-file-action" data-type="update">
-                          Edit
+                          Patched
                         </span>
                       </Match>
                     </Switch>