(title: string | undefined, history: RunPrompt[])
| 107 | } |
| 108 | |
| 109 | function splashInfo(title: string | undefined, history: RunPrompt[]) { |
| 110 | if (title && !SessionApi.isDefaultTitle(title)) { |
| 111 | return { |
| 112 | title, |
| 113 | showSession: true, |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | const next = history.find((item) => item.text.trim().length > 0) |
| 118 | return { |
| 119 | title: next?.text ?? title, |
| 120 | showSession: !!next, |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | function footerLabels(input: Pick<RunInput, "agent" | "model" | "variant">): FooterLabels { |
| 125 | const agentLabel = Locale.titlecase(input.agent ?? "build") |
no test coverage detected