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

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
hermes-seaeye[bot]
2026-08-28 18:38:38 +00:00
committed by GitHub
parent a792d0794f
commit 9048530318
4 changed files with 11 additions and 8 deletions
+2 -3
View File
@@ -515,11 +515,10 @@ const ChatViewContent = memo(function ChatViewContent({
// spinning forever. Gated on the route matching so a stale latch from another
// session can't blank the current one.
const resumeExhausted = isPrimary && isRoutedSessionView && resumeExhaustedSessionId === routedSessionId
const routedHasHistory = Boolean(
routedSessionId &&
sessions.some(
session => sessionMatchesStoredId(session, routedSessionId) && sessionShouldHaveTranscript(session)
)
sessions.some(session => sessionMatchesStoredId(session, routedSessionId) && sessionShouldHaveTranscript(session))
)
const loadingSession = routedSessionIsLoading({
@@ -63,4 +63,3 @@ export function routedSessionIsLoading({
// runtime is bound but messages are still suppressed.
return !activeSessionId || knownHistory
}
@@ -3507,13 +3507,16 @@ describe('resumeSession warm-cache mapping integrity', () => {
const runtimeIdByStoredSessionIdRef = {
current: new Map([['stored-1', 'runtime-warm']])
} satisfies MutableRefObject<Map<string, string>>
const sessionStateByRuntimeIdRef = {
current: new Map([['runtime-warm', cachedState]])
} satisfies MutableRefObject<Map<string, ClientSessionState>>
const persistedAuthority = deferred<{
messages: Array<{ content: string; role: 'assistant' | 'user'; timestamp: number }>
session_id: string
}>()
const publications: Array<{ older: boolean; latest: boolean }> = []
setSessions([storedSession({ message_count: 4 })])
@@ -172,10 +172,10 @@ interface SessionActionsOptions {
busyRef: MutableRefObject<boolean>
creatingSessionRef: MutableRefObject<boolean>
ensureSessionState: (sessionId: string, storedSessionId?: string | null) => ClientSessionState
getRouteToken: () => string
getRoutedStoredSessionId: () => null | string
holdSessionTranscriptView?: (runtimeId: string) => () => void
navigate: NavigateFunction
getRouteToken: () => string
getRoutedStoredSessionId: () => null | string
holdSessionTranscriptView?: (runtimeId: string) => () => void
navigate: NavigateFunction
onFreshDraftRouteIntent?: () => void
requestGateway: <T>(method: string, params?: Record<string, unknown>) => Promise<T>
resetViewSync: () => void
@@ -1039,6 +1039,7 @@ export function useSessionActions({
// transport, so a turn finishing between snapshot and reattach
// cannot leave a stale partial on screen.
const shouldRefreshPersistedTranscript = !isWatchWindow()
const suppressUnprovenWarmTranscript =
!resumedSameSelectedSession && shouldRefreshPersistedTranscript && !hasValidProvenance
@@ -1256,6 +1257,7 @@ export function useSessionActions({
(persisted.messages.length || !activatedMessages.length)
) {
acceptedPersistedDisplayTranscript = Boolean(expectedProvenance)
// The REST hydration is a newest-tail page; graft it onto any
// older pages the previous view already backfilled so
// re-activating a scrolled-back session keeps its history.