chore: generate

This commit is contained in:
opencode-agent[bot] 2026-06-07 21:27:42 +00:00
commit 3867fa2bad
12 changed files with 167 additions and 150 deletions

View file

@ -298,7 +298,14 @@ function PanelShell(props: {
</box> </box>
)} )}
{minimal() ? ( {minimal() ? (
<box id={`${props.id}-bottom`} width="100%" height={1} border={false} backgroundColor="transparent" flexShrink={0}> <box
id={`${props.id}-bottom`}
width="100%"
height={1}
border={false}
backgroundColor="transparent"
flexShrink={0}
>
<box <box
width="100%" width="100%"
height={1} height={1}
@ -372,7 +379,8 @@ export function RunCommandMenuBody(props: {
action: "subagent" as const, action: "subagent" as const,
category: "Session", category: "Session",
display: "View subagents", display: "View subagents",
footer: activeSubagentCount() > 0 ? `${activeSubagentCount()} active` : `${props.subagents().length} recent`, footer:
activeSubagentCount() > 0 ? `${activeSubagentCount()} active` : `${props.subagents().length} recent`,
keywords: props keywords: props
.subagents() .subagents()
.map((item) => `${item.label} ${item.description} ${item.title ?? ""}`) .map((item) => `${item.label} ${item.description} ${item.title ?? ""}`)

View file

@ -264,7 +264,12 @@ export function RunFooterMenu(props: {
if (row.type === "header") { if (row.type === "header") {
return ( return (
<box paddingLeft={props.paddingLeft ?? 1} paddingRight={props.paddingRight ?? 1}> <box paddingLeft={props.paddingLeft ?? 1} paddingRight={props.paddingRight ?? 1}>
<text fg={props.headerColor ?? props.theme().highlight} attributes={TextAttributes.BOLD} wrapMode="none" truncate> <text
fg={props.headerColor ?? props.theme().highlight}
attributes={TextAttributes.BOLD}
wrapMode="none"
truncate
>
{row.label} {row.label}
</text> </text>
</box> </box>
@ -281,11 +286,7 @@ export function RunFooterMenu(props: {
? props.theme().shade ? props.theme().shade
: transparent : transparent
return ( return (
<box <box paddingRight={0} flexDirection="row" backgroundColor={background()}>
paddingRight={0}
flexDirection="row"
backgroundColor={background()}
>
{border() ? ( {border() ? (
<text fg={props.theme().highlight} bg={background()} wrapMode="none"> <text fg={props.theme().highlight} bg={background()} wrapMode="none">
{active() ? "▌" : " "} {active() ? "▌" : " "}

View file

@ -234,7 +234,7 @@ export function RunPromptBody(props: {
props.onContentChange() props.onContentChange()
}) })
.catch(() => { }) .catch(() => {})
}, 0) }, 0)
} }
@ -1200,7 +1200,11 @@ export function createPromptState(input: PromptInput): PromptState {
return return
} }
const submit = command ? { ...next, command } : parsed?.type === "command" ? { ...next, command: parsed.command } : next const submit = command
? { ...next, command }
: parsed?.type === "command"
? { ...next, command: parsed.command }
: next
const shellMode = next.mode === "shell" const shellMode = next.mode === "shell"
resetDraft() resetDraft()

View file

@ -166,7 +166,9 @@ export function RunFooterView(props: RunFooterViewProps) {
return tabs().findIndex((item) => item.sessionID === sessionID) + 1 return tabs().findIndex((item) => item.sessionID === sessionID) + 1
}) })
const foregroundSubagents = createMemo(() => props.backgroundSubagents && activeTabs().some((item) => !item.background)) const foregroundSubagents = createMemo(
() => props.backgroundSubagents && activeTabs().some((item) => !item.background),
)
const model = createMemo(() => { const model = createMemo(() => {
const current = props.currentModel() const current = props.currentModel()
return current ? modelInfo(props.providers(), current) : { model: props.state().model, provider: undefined } return current ? modelInfo(props.providers(), current) : { model: props.state().model, provider: undefined }
@ -938,7 +940,9 @@ export function RunFooterView(props: RunFooterViewProps) {
maxWidth={18} maxWidth={18}
> >
<text fg={theme().text} wrapMode="none" truncate> <text fg={theme().text} wrapMode="none" truncate>
<Show when={hasActivityMeta() || hasModelStatus() || hasContextHints()}>{sectionSeparator()}</Show> <Show when={hasActivityMeta() || hasModelStatus() || hasContextHints()}>
{sectionSeparator()}
</Show>
<span style={{ fg: theme().text }}>{hint().key}</span>{" "} <span style={{ fg: theme().text }}>{hint().key}</span>{" "}
<span style={{ fg: theme().muted }}>{hint().label}</span> <span style={{ fg: theme().muted }}>{hint().label}</span>
</text> </text>

View file

@ -96,12 +96,7 @@ function promptPartStart(part: Mention) {
return part.source?.text.start ?? Number.POSITIVE_INFINITY return part.source?.text.start ?? Number.POSITIVE_INFINITY
} }
function findPromptPartIndex( function findPromptPartIndex(content: string, text: string, used: Array<{ start: number; end: number }>, hint: number) {
content: string,
text: string,
used: Array<{ start: number; end: number }>,
hint: number,
) {
let searchFrom = 0 let searchFrom = 0
let best = -1 let best = -1
let distance = Number.POSITIVE_INFINITY let distance = Number.POSITIVE_INFINITY

View file

@ -341,7 +341,10 @@ export function turnSummaryWriter(input: { agent: string; model: string; duratio
<text wrapMode="none" truncate> <text wrapMode="none" truncate>
<span style={{ fg: input.theme.block.highlight }}> </span> <span style={{ fg: input.theme.block.highlight }}> </span>
<span style={{ fg: input.theme.block.text }}>{input.agent}</span> <span style={{ fg: input.theme.block.text }}>{input.agent}</span>
<span style={{ fg: input.theme.block.muted }}> · {input.model} · {input.duration}</span> <span style={{ fg: input.theme.block.muted }}>
{" "}
· {input.model} · {input.duration}
</span>
</text> </text>
</box> </box>
), ),

View file

@ -217,7 +217,9 @@ function replayMessage(
commits.push(...next.commits) commits.push(...next.commits)
} }
const summary = config.summaries.has(message.info.id) ? messageTurnSummaryCommit(message, config.providers) : undefined const summary = config.summaries.has(message.info.id)
? messageTurnSummaryCommit(message, config.providers)
: undefined
if (summary) { if (summary) {
commits.push(summary) commits.push(summary)
} }

View file

@ -829,7 +829,8 @@ export function reduceSubagentData(input: {
} }
const detail = ensureDetail(input.data, sessionID) const detail = ensureDetail(input.data, sessionID)
const cancelled = event.type === "message.updated" && isAbortedAssistantMessage(event.properties.info) const cancelled =
event.type === "message.updated" && isAbortedAssistantMessage(event.properties.info)
? cancelSubagentTab(input.data, sessionID) ? cancelSubagentTab(input.data, sessionID)
: false : false
if (event.type === "session.status") { if (event.type === "session.status") {

View file

@ -102,8 +102,7 @@ function assistantMessage(
} }
} }
const provider = (name: string): RunProvider => const provider = (name: string): RunProvider => ({
({
id: "openai", id: "openai",
name: "OpenAI", name: "OpenAI",
source: "api", source: "api",
@ -158,7 +157,7 @@ const provider = (name: string): RunProvider =>
release_date: "2026-01-01", release_date: "2026-01-01",
}, },
}, },
}) })
function runningToolMessage(id: string): SessionMessages[number] { function runningToolMessage(id: string): SessionMessages[number] {
return { return {