fix(ui): stabilize workplace chat scrolling

This commit is contained in:
LZH-YS1998
2026-07-13 23:02:39 +08:00
parent 4e7aa75ba5
commit 4bc18dcd27
46 changed files with 5937 additions and 1258 deletions
@@ -260,6 +260,8 @@ function sessionReducer(state: Session[], action: SessionAction): Session[] {
detailLoaded: existing.detailLoaded ?? incoming.detailLoaded,
fullLoaded: existing.fullLoaded ?? incoming.fullLoaded,
hasMore: incoming.hasMore ?? existing.hasMore,
summaryHasMore: incoming.summaryHasMore ?? existing.summaryHasMore,
fullHasMore: incoming.fullHasMore ?? existing.fullHasMore,
detailLoading: incoming.detailLoading ?? existing.detailLoading,
detailError: incoming.detailError ?? existing.detailError,
viewGeneration: incoming.viewGeneration ?? existing.viewGeneration,
@@ -314,6 +316,8 @@ function sessionReducer(state: Session[], action: SessionAction): Session[] {
detailLoaded: nextSession.detailLoaded ?? s.detailLoaded,
fullLoaded: nextSession.fullLoaded ?? s.fullLoaded,
hasMore: nextSession.hasMore ?? s.hasMore,
summaryHasMore: nextSession.summaryHasMore ?? s.summaryHasMore,
fullHasMore: nextSession.fullHasMore ?? s.fullHasMore,
detailLoading: nextSession.detailLoading ?? s.detailLoading,
detailError: nextSession.detailError ?? s.detailError,
viewGeneration: nextSession.viewGeneration ?? s.viewGeneration,