Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions apps/desktop/electron/native-oauth.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 ---
Expand Down
7 changes: 1 addition & 6 deletions apps/desktop/src/app/chat/composer/empty-composer.test.ts
Original file line number Diff line number Diff line change
@@ -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')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 1 addition & 7 deletions ui-tui/src/app/useComposerState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
12 changes: 1 addition & 11 deletions ui-tui/src/app/useSubmission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down