chore: generate

This commit is contained in:
opencode-agent[bot] 2026-06-05 09:48:43 +00:00
parent 0c0d193474
commit a468680965
3 changed files with 16 additions and 15 deletions

View File

@ -223,7 +223,7 @@ export class RunFooter implements FooterApi {
onThemeRelease: (theme) => {
void this.renderer
.idle()
.catch(() => { })
.catch(() => {})
.finally(() => this.destroyTheme(theme))
},
})
@ -374,7 +374,7 @@ export class RunFooter implements FooterApi {
public onClose(fn: () => void): () => void {
if (this.isClosed) {
fn()
return () => { }
return () => {}
}
this.closes.add(fn)
@ -569,7 +569,7 @@ export class RunFooter implements FooterApi {
return this.idle()
}
await this.renderer.idle().catch(() => { })
await this.renderer.idle().catch(() => {})
})
}
@ -819,7 +819,7 @@ export class RunFooter implements FooterApi {
this.patch(patch)
}
})
.catch(() => { })
.catch(() => {})
}
private handleVariantSelect = (variant: string | undefined): void => {
@ -861,7 +861,7 @@ export class RunFooter implements FooterApi {
this.patch(patch)
}
})
.catch(() => { })
.catch(() => {})
}
private clearInterruptTimer(): void {
@ -974,9 +974,11 @@ export class RunFooter implements FooterApi {
this.themes.push(theme)
this.setTheme(theme)
this.renderer.setBackgroundColor(theme.background)
this.flushing = this.flushing.then(() => this.scrollback.setTheme(theme)).catch((error) => {
this.flushError = error
})
this.flushing = this.flushing
.then(() => this.scrollback.setTheme(theme))
.catch((error) => {
this.flushError = error
})
})
}
@ -1006,7 +1008,7 @@ export class RunFooter implements FooterApi {
this.renderer.clearPaletteCache()
void this.renderer
.getPalette({ size: 256 })
.catch(() => { })
.catch(() => {})
.finally(() => {
this.paletteRefreshRunning = false
if (!retry && !this.paletteRefreshQueued) {

View File

@ -585,7 +585,9 @@ export async function resolveRunTheme(renderer: CliRenderer): Promise<RunTheme>
// Palette-only terminal reloads can leave renderer.themeMode stale, but
// ANSI slot zero is not the terminal background when OSC 11 is absent.
const pick = colors.defaultBackground ? mode(RGBA.fromHex(colors.defaultBackground)) : renderer.themeMode ?? mode(RGBA.fromHex(bg))
const pick = colors.defaultBackground
? mode(RGBA.fromHex(colors.defaultBackground))
: (renderer.themeMode ?? mode(RGBA.fromHex(bg)))
const theme = resolveTheme(generateSystem(colors, pick), pick)
const indexed = indexedPalette(colors, 256)
const shared = await import("../tui/context/theme")

View File

@ -345,10 +345,7 @@ export const { use: useTheme, provider: ThemeProvider } = createSimpleContext({
}
onMount(() => {
void Promise.allSettled([
resolveSystemTheme(store.mode),
syncCustomThemes(),
]).finally(() => {
void Promise.allSettled([resolveSystemTheme(store.mode), syncCustomThemes()]).finally(() => {
setStore("ready", true)
})
})
@ -791,7 +788,7 @@ export function createSyntaxStyleMemo(factory: () => SyntaxStyle) {
retained.add(style)
void renderer
.idle()
.catch(() => { })
.catch(() => {})
.finally(() => {
if (!retained.delete(style)) return
style.destroy()