opencode-agent[bot] 3 месяцев назад
Родитель
Сommit
3553754083

+ 2 - 1
packages/opencode/src/cli/cmd/run/footer.command.tsx

@@ -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(" "),
             },

+ 3 - 3
packages/opencode/src/cli/cmd/run/footer.ts

@@ -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

+ 6 - 1
packages/opencode/test/cli/run/footer.view.test.tsx

@@ -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}`,