Skip to content

Commit 7f1c77f

Browse files
fix(cli): allow --agent with --attach
1 parent aa9a4c0 commit 7f1c77f

File tree

1 file changed

+2
-1
lines changed
  • packages/opencode/src/cli/cmd

1 file changed

+2
-1
lines changed

packages/opencode/src/cli/cmd/run.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,9 +541,10 @@ export const RunCommand = cmd({
541541
}
542542
}
543543

544-
// Validate agent if specified
545544
const agent = await (async () => {
546545
if (!args.agent) return undefined
546+
if (args.attach) return args.agent
547+
547548
const entry = await Agent.get(args.agent)
548549
if (!entry) {
549550
UI.println(

0 commit comments

Comments
 (0)