From b576e33051cd6147ceb1f188d4d35ce90c0370be Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 31 Jul 2026 16:07:06 +0000 Subject: [PATCH] fmt(js): `npm run fix` on merge --- apps/desktop/electron/native-oauth.test.ts | 5 +---- .../src/app/chat/composer/empty-composer.test.ts | 7 +------ .../chat/composer/hooks/use-voice-conversation.ts | 3 +-- ui-tui/src/app/useComposerState.ts | 8 +------- ui-tui/src/app/useSubmission.ts | 12 +----------- 5 files changed, 5 insertions(+), 30 deletions(-) diff --git a/apps/desktop/electron/native-oauth.test.ts b/apps/desktop/electron/native-oauth.test.ts index bf58ca996ef8..bc341f33efb7 100644 --- a/apps/desktop/electron/native-oauth.test.ts +++ b/apps/desktop/electron/native-oauth.test.ts @@ -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 --- diff --git a/apps/desktop/src/app/chat/composer/empty-composer.test.ts b/apps/desktop/src/app/chat/composer/empty-composer.test.ts index fe8305d2c45b..60498efcd0b1 100644 --- a/apps/desktop/src/app/chat/composer/empty-composer.test.ts +++ b/apps/desktop/src/app/chat/composer/empty-composer.test.ts @@ -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') diff --git a/apps/desktop/src/app/chat/composer/hooks/use-voice-conversation.ts b/apps/desktop/src/app/chat/composer/hooks/use-voice-conversation.ts index 5f4be4b637e0..55978c428474 100644 --- a/apps/desktop/src/app/chat/composer/hooks/use-voice-conversation.ts +++ b/apps/desktop/src/app/chat/composer/hooks/use-voice-conversation.ts @@ -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 diff --git a/ui-tui/src/app/useComposerState.ts b/ui-tui/src/app/useComposerState.ts index 188e3c572708..fd62037448a3 100644 --- a/ui-tui/src/app/useComposerState.ts +++ b/ui-tui/src/app/useComposerState.ts @@ -309,13 +309,7 @@ export function useComposerState({ gw, submitRef, sys }: UseComposerStateOptions ) const handleTextPaste = useCallback( - ({ - bracketed, - cursor, - hotkey, - text, - value - }: PasteEvent): MaybePromise => { + ({ bracketed, cursor, hotkey, text, value }: PasteEvent): MaybePromise => { if (hotkey) { const preferOsc52 = isRemoteShellSession(process.env) diff --git a/ui-tui/src/app/useSubmission.ts b/ui-tui/src/app/useSubmission.ts index 28ffaff9ca3f..cb29e85990c1 100644 --- a/ui-tui/src/app/useSubmission.ts +++ b/ui-tui/src/app/useSubmission.ts @@ -283,17 +283,7 @@ export function useSubmission(opts: UseSubmissionOptions) { send(full) }, - [ - appendMessage, - composerActions, - composerRefs, - handleBusyInput, - interpolate, - send, - sendQueued, - shellExec, - slashRef - ] + [appendMessage, composerActions, composerRefs, handleBusyInput, interpolate, send, sendQueued, shellExec, slashRef] ) const submit = useCallback(