Skip to content

Commit 3553754

Browse files
chore: generate
1 parent ed83984 commit 3553754

3 files changed

Lines changed: 11 additions & 5 deletions

File tree

‎packages/opencode/src/cli/cmd/run/footer.command.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,8 @@ export function RunCommandMenuBody(props: {
323323
category: "Suggested",
324324
display: "View subagents",
325325
footer: `${props.subagents().length} active`,
326-
keywords: props.subagents()
326+
keywords: props
327+
.subagents()
327328
.map((item) => `${item.label} ${item.description} ${item.title ?? ""}`)
328329
.join(" "),
329330
},

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -569,9 +569,9 @@ export class RunFooter implements FooterApi {
569569
? 1 + VARIANT_ROWS
570570
: this.promptRoute.type === "subagent-menu"
571571
? 1 + this.subagentMenuRows
572-
: this.promptRoute.type === "subagent"
573-
? this.base + SUBAGENT_INSPECTOR_ROWS
574-
: Math.max(base + TEXTAREA_MIN_ROWS, Math.min(base + PROMPT_MAX_ROWS, base + this.rows))
572+
: this.promptRoute.type === "subagent"
573+
? this.base + SUBAGENT_INSPECTOR_ROWS
574+
: Math.max(base + TEXTAREA_MIN_ROWS, Math.min(base + PROMPT_MAX_ROWS, base + this.rows))
575575

576576
if (height !== this.renderer.footerHeight) {
577577
this.renderer.footerHeight = height

‎packages/opencode/test/cli/run/footer.view.test.tsx‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,12 @@ function provider() {
124124
} satisfies RunProvider
125125
}
126126

127-
function subagent(input: { sessionID: string; label: string; description: string; status?: FooterSubagentTab["status"] }) {
127+
function subagent(input: {
128+
sessionID: string
129+
label: string
130+
description: string
131+
status?: FooterSubagentTab["status"]
132+
}) {
128133
return {
129134
sessionID: input.sessionID,
130135
partID: `part-${input.sessionID}`,

0 commit comments

Comments
 (0)