Skip to content
Open
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions packages/opencode/src/command/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ export const Info = Schema.Struct({
// Some command templates are lazy promises from MCP prompt resolution.
template: Schema.Unknown,
subtask: Schema.optional(Schema.Boolean),
// noReply: skip LLM dispatch after command output (display-only commands)
noReply: Schema.optional(Schema.Boolean),
hints: Schema.Array(Schema.String),
}).annotate({ identifier: "Command" })

Expand Down Expand Up @@ -105,6 +107,7 @@ export const layer = Layer.effect(
return command.template
},
subtask: command.subtask,
noReply: command.noReply,
hints: hints(command.template),
}
}
Expand Down
2 changes: 2 additions & 0 deletions packages/opencode/src/config/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ export const Info = Schema.Struct({
agent: Schema.optional(Schema.String),
model: Schema.optional(ConfigModelID),
subtask: Schema.optional(Schema.Boolean),
// noReply: skip LLM dispatch after command output (display-only commands)
noReply: Schema.optional(Schema.Boolean),
})

export type Info = Schema.Schema.Type<typeof Info>
Expand Down
1 change: 1 addition & 0 deletions packages/opencode/src/session/prompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2005,6 +2005,7 @@ NOTE: At any point in time through this workflow you should feel free to ask the
agent: userAgent,
parts,
variant: input.variant,
noReply: cmd.noReply ?? false,
})
yield* bus.publish(Command.Event.Executed, {
name: input.command,
Expand Down
Loading