File tree Expand file tree Collapse file tree
packages/opencode/src/cli/cmd Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments