Explorar o código

fix: ENAMETOOLONG: name too long when adding custom mode (#881)

alexz hai 1 ano
pai
achega
dfbef066c7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/opencode/src/session/mode.ts

+ 1 - 1
packages/opencode/src/session/mode.ts

@@ -53,7 +53,7 @@ export namespace Mode {
           providerID,
         }
       }
-      if (value.prompt) item.prompt = await Bun.file(value.prompt).text()
+      if (value.prompt) item.prompt = value.prompt
       if (value.tools) item.tools = value.tools
     }