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

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
hermes-seaeye[bot] 2026-07-25 06:30:23 +00:00 committed by GitHub
parent 0c48d2bda9
commit 760112adb6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -174,9 +174,7 @@ export function useSubmitPrompt(deps: SubmitPromptDeps) {
// drain is for the current view (no storedSessionId, or it matches the
// foreground), the foreground runtime is correct and must be kept.
const isBackgroundQueueDrain = Boolean(
options?.fromQueue &&
options?.storedSessionId &&
options.storedSessionId !== selectedStoredSessionIdRef.current
options?.fromQueue && options?.storedSessionId && options.storedSessionId !== selectedStoredSessionIdRef.current
)
let sessionId: null | string = options?.sessionId ?? (isBackgroundQueueDrain ? null : activeSessionIdRef.current)