We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa9a4c0 commit 7f1c77fCopy full SHA for 7f1c77f
packages/opencode/src/cli/cmd/run.ts
@@ -541,9 +541,10 @@ export const RunCommand = cmd({
541
}
542
543
544
- // Validate agent if specified
545
const agent = await (async () => {
546
if (!args.agent) return undefined
+ if (args.attach) return args.agent
547
+
548
const entry = await Agent.get(args.agent)
549
if (!entry) {
550
UI.println(
0 commit comments