Browse Source

fix: reset text styling after thinking output

Dax Raad 2 tháng trước cách đây
mục cha
commit
651f173a2f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      packages/opencode/src/cli/cmd/run.ts

+ 1 - 1
packages/opencode/src/cli/cmd/run.ts

@@ -423,7 +423,7 @@ export const RunCommand = cmd({
               const line = `Thinking: ${text}`
               if (process.stdout.isTTY) {
                 UI.empty()
-                UI.println(`\u001b[3m${line}\u001b[0m`)
+                UI.println(`${UI.Style.TEXT_DIM}\u001b[3m${line}\u001b[0m${UI.Style.TEXT_NORMAL}`)
                 UI.empty()
                 continue
               }