Skip to content

fix(web): retain FlowChat anchors through delayed Virtuoso compensation - #1853

Merged
wsp1911 merged 1 commit into
GCWing:mainfrom
wsp1911:dev2
Jul 29, 2026
Merged

fix(web): retain FlowChat anchors through delayed Virtuoso compensation#1853
wsp1911 merged 1 commit into
GCWing:mainfrom
wsp1911:dev2

Conversation

@wsp1911

@wsp1911 wsp1911 commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fix FlowChat viewport drops caused by delayed Virtuoso compensation and inaccurate tool-card height estimates.

Type and Areas

Type: Regression fix

Areas: Web UI, FlowChat scroll stability, diagnostics tooling, tests, docs

Motivation / Impact

Retained semantic anchors now survive delayed Virtuoso scrollBy compensation instead of expiring after a fixed timeout. Tool-card collapse estimates use the visible card root rather than hidden inner scroll content, preventing excessive footer reservations and viewport instability.

Verification

  • pnpm --dir src/web-ui run test:run src/flow_chat/components/modern/FlowChatViewportCoordinator.test.ts src/flow_chat/components/modern/VirtualMessageList.session-boundary.test.tsx
  • 47 tests passed.
  • pnpm run type-check:web
  • Focused ESLint passed.
  • git diff --check passed.

Reviewer Notes

The collapse intent TTL remains as a measurement-settlement fallback, but semantic element anchors now release only on user navigation, viewport ownership transfer, session reset, or DOM disconnection.

Checklist

  • This PR is focused and does not include secrets, temporary prompts, generated scratch files, or unrelated artifacts.
  • Relevant verification is recorded above.
  • User-facing documentation is updated where applicable.

- Replace the fixed element-anchor TTL with active and retained lifecycle phases.
- Keep delayed Virtuoso compensation under viewport coordinator ownership.
- Synchronize stream-end reservation changes with semantic anchor restoration.
- Standardize tool-card collapse measurement on visible card roots.
- Add FlowChat log analysis tooling, documentation, and regression tests.
@wsp1911
wsp1911 merged commit 3708cb1 into GCWing:main Jul 29, 2026
7 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.

1 participant