Skip to content

Commit 7d719e8

Browse files
committed
fix type errors
1 parent 65bdd7f commit 7d719e8

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

packages/opencode/src/cli/cmd/run/scrollback.writer.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,6 @@ export function entryWriter(input: {
301301
opts?: ScrollbackOptions
302302
}): ScrollbackWriter {
303303
return createScrollbackWriter(
304-
// @ts-expect-error @opentui/solid scrollback helper still exposes solid-js JSX types
305304
(ctx) => <RunEntryContent commit={input.commit} theme={input.theme} opts={input.opts} width={ctx.width} />,
306305
entryFlags(input.commit),
307306
)

packages/opencode/src/cli/cmd/tui/context/theme.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ function pickPrimaryColor(
534534
const contrast = Math.abs(luminance(item.color) - luminance(bg))
535535
const vivid = chroma(item.color)
536536
if (contrast < 0.16 || vivid < 0.12) return []
537-
return [{ ...item, score: vivid * 1.5 + contrast }]
537+
return [{ key: item.key, color: item.color, score: vivid * 1.5 + contrast }]
538538
})
539539
.sort((a, b) => b.score - a.score)[0]
540540
}

0 commit comments

Comments
 (0)