Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/opencode/src/cli/cmd/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,8 @@ export const RunCommand = cmd({
// Validate agent if specified
const resolvedAgent = await (async () => {
if (!args.agent) return undefined
// Skip local agent validation in attach mode - the remote server handles it
if (args.attach) return args.agent
const agent = await Agent.get(args.agent)
if (!agent) {
UI.println(
Expand Down