Aiden Cline 3 месяцев назад
Родитель
Сommit
0d05238ee6
1 измененных файлов с 1 добавлено и 3 удалено
  1. 1 3
      packages/opencode/src/cli/cmd/tui/routes/session/index.tsx

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

@@ -1225,9 +1225,7 @@ ToolRegistry.register<typeof WriteTool>({
   container: "block",
   render(props) {
     const { theme, syntax } = useTheme()
-    const lines = createMemo(() => {
-      return props.input.content?.split("\n") ?? []
-    })
+    const lines = createMemo(() => props.input.content?.split("\n") ?? [], [] as string[])
     const code = createMemo(() => {
       if (!props.input.content) return ""
       const text = props.input.content