Skip to content

The agent that grows with you

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

hermes-seaeye[bot]daa1befaf61f
diff --git a/apps/desktop/electron/native-oauth.test.ts b/apps/desktop/electron/native-oauth.test.ts
index bf58ca996ef..bc341f33efb 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 fe8305d2c45..60498efcd0b 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 5f4be4b637e..55978c42847 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/__tests__/queueSubmission.test.ts b/ui-tui/src/__tests__/queueSubmission.test.ts
index 26193d8d3d7..149811fad64 100644
--- a/ui-tui/src/__tests__/queueSubmission.test.ts
+++ b/ui-tui/src/__tests__/queueSubmission.test.ts
@@ -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}`)
})
})
diff --git a/ui-tui/src/app/useComposerState.ts b/ui-tui/src/app/useComposerState.ts
index 9ec084463e0..8454ebd61fc 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<ComposerPasteResult | null> => {
+ ({ bracketed, cursor, hotkey, text, value }: PasteEvent): MaybePromise<ComposerPasteResult | null> => {
if (hotkey) {
const preferOsc52 = isRemoteShellSession(process.env)