Skip to content

Commit fd2278e

Browse files
chore: generate
1 parent 7ccb788 commit fd2278e

5 files changed

Lines changed: 15 additions & 9 deletions

File tree

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,10 @@ export function RunCommandMenuBody(props: {
329329
category: "Suggested",
330330
display: "Manage queued prompts",
331331
footer: `${props.queued().length} queued`,
332-
keywords: props.queued().map((item) => item.prompt.text).join(" "),
332+
keywords: props
333+
.queued()
334+
.map((item) => item.prompt.text)
335+
.join(" "),
333336
},
334337
]
335338
: []),

packages/opencode/src/cli/cmd/run/footer.view.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,9 @@ export function RunFooterView(props: RunFooterViewProps) {
203203
const subagentShortcut = useKeymapSelector(
204204
(keymap: OpenTuiKeymap) =>
205205
formatKeyBindings(
206-
keymap.getCommandBindings({ visibility: "registered", commands: ["session.child.first"] }).get("session.child.first"),
206+
keymap
207+
.getCommandBindings({ visibility: "registered", commands: ["session.child.first"] })
208+
.get("session.child.first"),
207209
props.tuiConfig,
208210
) ?? "",
209211
)
@@ -697,7 +699,9 @@ export function RunFooterView(props: RunFooterViewProps) {
697699
gap={1}
698700
flexShrink={0}
699701
>
700-
<Show when={busy() || exiting() || duration().length > 0 || queuedIndicator() || subagentIndicator()}>
702+
<Show
703+
when={busy() || exiting() || duration().length > 0 || queuedIndicator() || subagentIndicator()}
704+
>
701705
<box id="run-direct-footer-hint-left" flexDirection="row" gap={1} flexShrink={0} marginLeft={1}>
702706
<Show when={exiting()}>
703707
<text id="run-direct-footer-hint-exit" fg={theme().highlight} wrapMode="none" truncate>

packages/opencode/src/cli/cmd/run/runtime.queue.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,6 @@ export async function runPromptQueue(input: QueueInput): Promise<void> {
210210
if (next.type === "error") {
211211
throw next.error
212212
}
213-
214213
} finally {
215214
if (state.ctrl === ctrl) {
216215
state.ctrl = undefined

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ async function renderFooter(
198198
onVariantSelect={() => {}}
199199
onRows={() => {}}
200200
onLayout={() => {}}
201-
onStatus={() => {}}
202-
onQueuedRemove={async () => true}
201+
onStatus={() => {}}
202+
onQueuedRemove={async () => true}
203203
/>
204204
</OpencodeKeymapProvider>
205205
)

packages/opencode/test/cli/run/runtime.queue.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -326,9 +326,9 @@ describe("run runtime queue", () => {
326326
const first = ui.events.find((item) => item.type === "queued.prompts")
327327
const event = ui.events.findLast((item) => item.type === "queued.prompts")
328328
expect(first?.type === "queued.prompts" ? first.prompts : []).toEqual([])
329-
expect(first?.type === "queued.prompts" && event?.type === "queued.prompts" ? first.prompts === event.prompts : true).toBe(
330-
false,
331-
)
329+
expect(
330+
first?.type === "queued.prompts" && event?.type === "queued.prompts" ? first.prompts === event.prompts : true,
331+
).toBe(false)
332332
expect(ui.events.findLast((item) => item.type === "queue")).toEqual({ type: "queue", queue: 1 })
333333
expect(event?.type === "queued.prompts" ? event.prompts.map((item) => item.prompt.text) : []).toEqual(["two"])
334334
if (event?.type === "queued.prompts") ui.removeQueued(event.prompts[0]!.messageID)

0 commit comments

Comments
 (0)