Aiden Cline 4 months ago
parent
commit
5b21334fdd
1 changed files with 4 additions and 1 deletions
  1. 4 1
      packages/opencode/src/util/log.ts

+ 4 - 1
packages/opencode/src/util/log.ts

@@ -50,7 +50,10 @@ export namespace Log {
   export function file() {
     return logpath
   }
-  let write = (msg: any) => process.stderr.write(msg)
+  let write = (msg: any) => {
+    process.stderr.write(msg)
+    return msg.length
+  }
 
   export async function init(options: Options) {
     if (options.level) level = options.level