fmt(js): npm run fix on merge (#73960)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
hermes-seaeye[bot] 2026-07-29 07:13:20 +00:00 committed by GitHub
parent bff2206972
commit 7d3075d0d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 8 additions and 14 deletions

View file

@ -8039,9 +8039,7 @@ async function spawnPoolBackend(profile, entry) {
onWaitTick: reason => {
if (!poolAnnounced) {
poolAnnounced = true
rememberLog(
`[updates] update in progress (${reason}); deferring pool backend start for profile "${profile}"`
)
rememberLog(`[updates] update in progress (${reason}); deferring pool backend start for profile "${profile}"`)
}
},
pollMs: UPDATE_WAIT_POLL_MS,

View file

@ -40,8 +40,7 @@ export function ComboboxInput({
const query = value.trim().toLowerCase()
const isExact = options.some(option => option.toLowerCase() === query)
const visible =
query && !isExact ? options.filter(option => option.toLowerCase().includes(query)) : options
const visible = query && !isExact ? options.filter(option => option.toLowerCase().includes(query)) : options
return (
<Popover onOpenChange={setOpen} open={open}>
@ -98,7 +97,10 @@ export function ComboboxInput({
}}
value={option}
>
<Codicon className={cn('mr-2 size-4', option === value ? 'opacity-100' : 'opacity-0')} name="check" />
<Codicon
className={cn('mr-2 size-4', option === value ? 'opacity-100' : 'opacity-0')}
name="check"
/>
<span className="truncate">{optionLabels?.[option] ?? option}</span>
</CommandItem>
))}

View file

@ -798,11 +798,7 @@ export function ToolsetConfigPanel({ toolset, onConfiguredChange }: ToolsetConfi
{copy.activeBackendHint}
</Pill>
) : (
<Button
disabled={selecting !== null}
onClick={() => void handleSelect(provider)}
size="sm"
>
<Button disabled={selecting !== null} onClick={() => void handleSelect(provider)} size="sm">
{selecting === provider.name ? <Loader2 className="size-3.5 animate-spin" /> : <Check />}
{copy.useBackend}
</Button>

View file

@ -889,9 +889,7 @@ describe('createGatewayEventHandler', () => {
onEvent({ payload: { text: 'stop the docker container' }, type: 'voice.transcript' } as any)
await vi.waitFor(() =>
expect(ctx.submission.submitRef.current).toHaveBeenCalledWith('stop the docker container')
)
await vi.waitFor(() => expect(ctx.submission.submitRef.current).toHaveBeenCalledWith('stop the docker container'))
expect(ctx.voice.setVoiceEnabled).not.toHaveBeenCalled()
})