Skip to content

Commit 58386d9

Browse files
Revert "fix(cli): allow --agent with --attach"
This reverts commit 7f1c77f.
1 parent 7f1c77f commit 58386d9

File tree

1 file changed

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

1 file changed

+1
-2
lines changed

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

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

544+
// Validate agent if specified
544545
const agent = await (async () => {
545546
if (!args.agent) return undefined
546-
if (args.attach) return args.agent
547-
548547
const entry = await Agent.get(args.agent)
549548
if (!entry) {
550549
UI.println(

0 commit comments

Comments
 (0)