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

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
hermes-seaeye[bot] 2026-07-31 16:22:58 +00:00 committed by GitHub
parent 5835201de1
commit daa1befaf6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 5 additions and 22 deletions

View file

@ -207,10 +207,7 @@ test('parseTokenResponse cannot read a persisted set (the reload bug #73271)', (
})
test('parseStoredTokenSet rejects a non-normalized server response', () => {
assert.throws(
() => parseStoredTokenSet({ access_token: 'AT-server' }),
/missing accessToken/i
)
assert.throws(() => parseStoredTokenSet({ access_token: 'AT-server' }), /missing accessToken/i)
})
// --- refresh timing ---

View file

@ -1,11 +1,6 @@
import { describe, expect, it } from 'vitest'
import {
composerPlainText,
normalizeComposerEditorDom,
renderComposerContents,
RICH_INPUT_SLOT
} from './rich-editor'
import { composerPlainText, normalizeComposerEditorDom, renderComposerContents, RICH_INPUT_SLOT } from './rich-editor'
function editor(): HTMLDivElement {
const el = document.createElement('div')

View file

@ -287,8 +287,7 @@ export function useVoiceConversation({
// start — don't auto-start the next sentence, the user chose to stop.
const stoppedByUser =
stoppedDuringSetup ||
(speechStartSequenceRef.current > 0 &&
$voicePlayback.get().sequence > speechStartSequenceRef.current)
(speechStartSequenceRef.current > 0 && $voicePlayback.get().sequence > speechStartSequenceRef.current)
speechStartSequenceRef.current = 0

View file

@ -26,8 +26,6 @@ describe('/queue collapsed paste submission', () => {
const paste: ComposerToken = { kind: 'paste', label: '[[ paste [2 lines] ]]', text: 'one\ntwo' }
const image: ComposerToken = { kind: 'image', index: 1, label: imageToken(1), path: '/tmp/image.png' }
expect(expandPasteTokens([paste, image])(`${paste.label} and ${image.label}`)).toBe(
`one\ntwo and ${image.label}`
)
expect(expandPasteTokens([paste, image])(`${paste.label} and ${image.label}`)).toBe(`one\ntwo and ${image.label}`)
})
})

View file

@ -309,13 +309,7 @@ export function useComposerState({ gw, submitRef, sys }: UseComposerStateOptions
)
const handleTextPaste = useCallback(
({
bracketed,
cursor,
hotkey,
text,
value
}: PasteEvent): MaybePromise<ComposerPasteResult | null> => {
({ bracketed, cursor, hotkey, text, value }: PasteEvent): MaybePromise<ComposerPasteResult | null> => {
if (hotkey) {
const preferOsc52 = isRemoteShellSession(process.env)