修复新会话可能出现响应不显示的情况
This commit is contained in:
@@ -250,7 +250,10 @@ function reduceHydrateDetail(
|
||||
...(current ?? createEmptySession(conversationId)),
|
||||
externalId: nextExternalId,
|
||||
persistedTurns,
|
||||
liveMessage: hasPersistedAdvance ? null : (current?.liveMessage ?? null),
|
||||
liveMessage:
|
||||
hasPersistedAdvance && current?.syncState !== "awaiting_persist"
|
||||
? null
|
||||
: (current?.liveMessage ?? null),
|
||||
optimisticTurns: shouldDropOptimistic ? [] : optimisticTurns,
|
||||
syncState: shouldDropOptimistic ? "idle" : (current?.syncState ?? "idle"),
|
||||
activeTurnToken: shouldDropOptimistic
|
||||
|
||||
Reference in New Issue
Block a user