Skip to content

Commit 59d45ec

Browse files
author
rsi-pr-agent
committed
fixup! feat(voice-input): live dictation preview for any OpenAI Realtime endpoint (#1775)
Fork-Domain: voice-input Fork-Tier: core
1 parent 740bd49 commit 59d45ec

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎apps/web/src/voice-input/useVoiceInput.fork.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export function useDesktopVoiceInputFork(composerInput: DesktopVoiceInputFork) {
9797
const controller = session.controller;
9898
const canOperate = useEnvironmentScope(input.environmentId, AuthOrchestrationOperateScope);
9999
const latest = useRef(input);
100-
// oxlint-disable-next-line t3code/react-effect-budget -- refreshes the latest-input ref the external voice session callbacks read.
100+
// oxlint-disable-next-line t3code/no-unreasoned-state-sync -- refreshes the latest-input ref the external voice session callbacks read.
101101
useLayoutEffect(() => {
102102
latest.current = input;
103103
});
@@ -122,7 +122,7 @@ export function useDesktopVoiceInputFork(composerInput: DesktopVoiceInputFork) {
122122
cancel: cancelText,
123123
blocksSubmission: textBlocksSubmission,
124124
} = textActions;
125-
// oxlint-disable-next-line t3code/react-effect-budget -- attaches this composer to the external voice session as its draft owner.
125+
// oxlint-disable-next-line t3code/no-unreasoned-state-sync -- attaches this composer to the external voice session as its draft owner.
126126
useLayoutEffect(
127127
() =>
128128
session.attach(
@@ -134,7 +134,7 @@ export function useDesktopVoiceInputFork(composerInput: DesktopVoiceInputFork) {
134134
),
135135
[session, input.ownerKey, processTranscript, transcriptionCommitted],
136136
);
137-
// oxlint-disable-next-line t3code/react-effect-budget -- subscribes to capture-phase document `keydown` DOM events for Escape cancel.
137+
// oxlint-disable-next-line t3code/no-unreasoned-state-sync -- subscribes to capture-phase document `keydown` DOM events for Escape cancel.
138138
useEffect(() => {
139139
const cancel = (event: KeyboardEvent) => {
140140
if (

0 commit comments

Comments
 (0)