Skip to content

fix(flowchat): stabilize virtual item estimates - #2271

Merged
wsp1911 merged 1 commit into
GCWing:mainfrom
wsp1911:refactor-flowchat-v2
Aug 13, 2026
Merged

fix(flowchat): stabilize virtual item estimates#2271
wsp1911 merged 1 commit into
GCWing:mainfrom
wsp1911:refactor-flowchat-v2

Conversation

@wsp1911

@wsp1911 wsp1911 commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

Use data-driven height estimators for unmounted FlowChat items so
TanStack Virtual reserves space according to message content, tool
state, reading width, and Explore expansion state. Preserve measured
DOM sizes while invalidating derived positions when estimate inputs
change.

Also stop the viewport anchor RAF loop when the anchor remains
in-place, and extend the gated viewport diagnostics with bounded
estimate breakdowns for resize investigations.

Use data-driven height estimators for unmounted FlowChat items so
TanStack Virtual reserves space according to message content, tool
state, reading width, and Explore expansion state. Preserve measured
DOM sizes while invalidating derived positions when estimate inputs
change.

Also stop the viewport anchor RAF loop when the anchor remains
in-place, and extend the gated viewport diagnostics with bounded
estimate breakdowns for resize investigations.
@wsp1911
wsp1911 merged commit e90ad99 into GCWing:main Aug 13, 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