mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-22 19:55:11 +00:00
chore: generate
This commit is contained in:
parent
ed839846d1
commit
3553754083
3 changed files with 11 additions and 5 deletions
|
|
@ -323,7 +323,8 @@ export function RunCommandMenuBody(props: {
|
|||
category: "Suggested",
|
||||
display: "View subagents",
|
||||
footer: `${props.subagents().length} active`,
|
||||
keywords: props.subagents()
|
||||
keywords: props
|
||||
.subagents()
|
||||
.map((item) => `${item.label} ${item.description} ${item.title ?? ""}`)
|
||||
.join(" "),
|
||||
},
|
||||
|
|
|
|||
|
|
@ -569,9 +569,9 @@ export class RunFooter implements FooterApi {
|
|||
? 1 + VARIANT_ROWS
|
||||
: this.promptRoute.type === "subagent-menu"
|
||||
? 1 + this.subagentMenuRows
|
||||
: this.promptRoute.type === "subagent"
|
||||
? this.base + SUBAGENT_INSPECTOR_ROWS
|
||||
: Math.max(base + TEXTAREA_MIN_ROWS, Math.min(base + PROMPT_MAX_ROWS, base + this.rows))
|
||||
: this.promptRoute.type === "subagent"
|
||||
? this.base + SUBAGENT_INSPECTOR_ROWS
|
||||
: Math.max(base + TEXTAREA_MIN_ROWS, Math.min(base + PROMPT_MAX_ROWS, base + this.rows))
|
||||
|
||||
if (height !== this.renderer.footerHeight) {
|
||||
this.renderer.footerHeight = height
|
||||
|
|
|
|||
|
|
@ -124,7 +124,12 @@ function provider() {
|
|||
} satisfies RunProvider
|
||||
}
|
||||
|
||||
function subagent(input: { sessionID: string; label: string; description: string; status?: FooterSubagentTab["status"] }) {
|
||||
function subagent(input: {
|
||||
sessionID: string
|
||||
label: string
|
||||
description: string
|
||||
status?: FooterSubagentTab["status"]
|
||||
}) {
|
||||
return {
|
||||
sessionID: input.sessionID,
|
||||
partID: `part-${input.sessionID}`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue