Browse Source

do not list files if not git

Dax Raad 8 months ago
parent
commit
4cf0aebb2e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/opencode/src/session/session.ts

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

@@ -224,7 +224,7 @@ Platform: ${process.platform}
 Today's date: ${new Date().toISOString()}
 </env>
 <project>
-${await ListTool.execute({ path: app.path.cwd }, { sessionID: input.sessionID }).then((x) => x.output)}
+${app.git ? await ListTool.execute({ path: app.path.cwd }, { sessionID: input.sessionID }).then((x) => x.output) : ""}
 </project>
             `,
           },