chore: generate
This commit is contained in:
@@ -329,7 +329,10 @@ export function RunCommandMenuBody(props: {
|
|||||||
category: "Suggested",
|
category: "Suggested",
|
||||||
display: "Manage queued prompts",
|
display: "Manage queued prompts",
|
||||||
footer: `${props.queued().length} queued`,
|
footer: `${props.queued().length} queued`,
|
||||||
keywords: props.queued().map((item) => item.prompt.text).join(" "),
|
keywords: props
|
||||||
|
.queued()
|
||||||
|
.map((item) => item.prompt.text)
|
||||||
|
.join(" "),
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
: []),
|
: []),
|
||||||
|
|||||||
@@ -203,7 +203,9 @@ export function RunFooterView(props: RunFooterViewProps) {
|
|||||||
const subagentShortcut = useKeymapSelector(
|
const subagentShortcut = useKeymapSelector(
|
||||||
(keymap: OpenTuiKeymap) =>
|
(keymap: OpenTuiKeymap) =>
|
||||||
formatKeyBindings(
|
formatKeyBindings(
|
||||||
keymap.getCommandBindings({ visibility: "registered", commands: ["session.child.first"] }).get("session.child.first"),
|
keymap
|
||||||
|
.getCommandBindings({ visibility: "registered", commands: ["session.child.first"] })
|
||||||
|
.get("session.child.first"),
|
||||||
props.tuiConfig,
|
props.tuiConfig,
|
||||||
) ?? "",
|
) ?? "",
|
||||||
)
|
)
|
||||||
@@ -697,7 +699,9 @@ export function RunFooterView(props: RunFooterViewProps) {
|
|||||||
gap={1}
|
gap={1}
|
||||||
flexShrink={0}
|
flexShrink={0}
|
||||||
>
|
>
|
||||||
<Show when={busy() || exiting() || duration().length > 0 || queuedIndicator() || subagentIndicator()}>
|
<Show
|
||||||
|
when={busy() || exiting() || duration().length > 0 || queuedIndicator() || subagentIndicator()}
|
||||||
|
>
|
||||||
<box id="run-direct-footer-hint-left" flexDirection="row" gap={1} flexShrink={0} marginLeft={1}>
|
<box id="run-direct-footer-hint-left" flexDirection="row" gap={1} flexShrink={0} marginLeft={1}>
|
||||||
<Show when={exiting()}>
|
<Show when={exiting()}>
|
||||||
<text id="run-direct-footer-hint-exit" fg={theme().highlight} wrapMode="none" truncate>
|
<text id="run-direct-footer-hint-exit" fg={theme().highlight} wrapMode="none" truncate>
|
||||||
|
|||||||
@@ -210,7 +210,6 @@ export async function runPromptQueue(input: QueueInput): Promise<void> {
|
|||||||
if (next.type === "error") {
|
if (next.type === "error") {
|
||||||
throw next.error
|
throw next.error
|
||||||
}
|
}
|
||||||
|
|
||||||
} finally {
|
} finally {
|
||||||
if (state.ctrl === ctrl) {
|
if (state.ctrl === ctrl) {
|
||||||
state.ctrl = undefined
|
state.ctrl = undefined
|
||||||
|
|||||||
@@ -198,8 +198,8 @@ async function renderFooter(
|
|||||||
onVariantSelect={() => {}}
|
onVariantSelect={() => {}}
|
||||||
onRows={() => {}}
|
onRows={() => {}}
|
||||||
onLayout={() => {}}
|
onLayout={() => {}}
|
||||||
onStatus={() => {}}
|
onStatus={() => {}}
|
||||||
onQueuedRemove={async () => true}
|
onQueuedRemove={async () => true}
|
||||||
/>
|
/>
|
||||||
</OpencodeKeymapProvider>
|
</OpencodeKeymapProvider>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -326,9 +326,9 @@ describe("run runtime queue", () => {
|
|||||||
const first = ui.events.find((item) => item.type === "queued.prompts")
|
const first = ui.events.find((item) => item.type === "queued.prompts")
|
||||||
const event = ui.events.findLast((item) => item.type === "queued.prompts")
|
const event = ui.events.findLast((item) => item.type === "queued.prompts")
|
||||||
expect(first?.type === "queued.prompts" ? first.prompts : []).toEqual([])
|
expect(first?.type === "queued.prompts" ? first.prompts : []).toEqual([])
|
||||||
expect(first?.type === "queued.prompts" && event?.type === "queued.prompts" ? first.prompts === event.prompts : true).toBe(
|
expect(
|
||||||
false,
|
first?.type === "queued.prompts" && event?.type === "queued.prompts" ? first.prompts === event.prompts : true,
|
||||||
)
|
).toBe(false)
|
||||||
expect(ui.events.findLast((item) => item.type === "queue")).toEqual({ type: "queue", queue: 1 })
|
expect(ui.events.findLast((item) => item.type === "queue")).toEqual({ type: "queue", queue: 1 })
|
||||||
expect(event?.type === "queued.prompts" ? event.prompts.map((item) => item.prompt.text) : []).toEqual(["two"])
|
expect(event?.type === "queued.prompts" ? event.prompts.map((item) => item.prompt.text) : []).toEqual(["two"])
|
||||||
if (event?.type === "queued.prompts") ui.removeQueued(event.prompts[0]!.messageID)
|
if (event?.type === "queued.prompts") ui.removeQueued(event.prompts[0]!.messageID)
|
||||||
|
|||||||
Reference in New Issue
Block a user