Skip to content

fix(flow-chat): stabilize history turn navigation#1393

Merged
limityan merged 1 commit into
GCWing:mainfrom
limityan:yanzhn/fix-1281-turn-navigation-release
Jul 2, 2026
Merged

fix(flow-chat): stabilize history turn navigation#1393
limityan merged 1 commit into
GCWing:mainfrom
limityan:yanzhn/fix-1281-turn-navigation-release

Conversation

@limityan

@limityan limityan commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • keep header turn state tied to the real visible viewport while pending turn navigation retries in the background
  • preserve static initial-history scroll ownership when users read older content, including bottom-guard, manual-scroll, and return-to-latest paths
  • keep latest content reachable after static anchor-window jumps by preserving tail space and deferring latest scroll until the latest DOM is restored
  • add release-compatible E2E coverage for long-session header turn navigation

Validation

  • pnpm --dir src/web-ui run test:run src/flow_chat/components/modern/ModernFlowChatContainer.history-state.test.tsx src/flow_chat/components/modern/VirtualMessageList.layout.test.ts src/flow_chat/components/modern/VirtualMessageList.session-boundary.test.tsx
  • pnpm run type-check:web
  • pnpm run desktop:build:release-fast
  • pnpm --dir tests/e2e exec wdio run ./config/wdio.conf.ts --spec ./specs/l1-chat-turn-navigation-release.spec.ts
  • node tests/e2e/scripts/run-long-session-interaction-matrix.mjs --profile scroll
  • final independent architecture/product subagent review: no remaining must-fix

Fixes #1281
Related to #1381

@limityan
limityan force-pushed the yanzhn/fix-1281-turn-navigation-release branch from a053aca to 4f89930 Compare July 2, 2026 12:36
@limityan
limityan merged commit 5022709 into GCWing:main Jul 2, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: 轮次列表点击后关闭但不会跳转到对应轮次

1 participant