Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

fix(daemon): pass --dir to opencode run for correct project detection

Genere298b10c4b5c
diff --git a/src/cli/daemon/agent/opencode.ts b/src/cli/daemon/agent/opencode.ts
index bb502b6bf..aeeff6b8b 100644
--- a/src/cli/daemon/agent/opencode.ts
+++ b/src/cli/daemon/agent/opencode.ts
@@ -9,7 +9,7 @@ export class OpenCodeBackend implements AgentBackend {
constructor(private cliPath: string) {}
execute(prompt: string, options: ExecOptions): AgentSession {
- const args = ["run", "--format", "json"];
+ const args = ["run", "--format", "json", "--dir", options.cwd];
if (options.model) {
args.push("--model", options.model);