Skip to content

fix(desktop): honor upward wheel scroll in long threads - #37530

Closed
ferminquant wants to merge 1 commit into
NousResearch:mainfrom
ferminquant:fix/desktop-thread-scroll-anchor
Closed

fix(desktop): honor upward wheel scroll in long threads#37530
ferminquant wants to merge 1 commit into
NousResearch:mainfrom
ferminquant:fix/desktop-thread-scroll-anchor

Conversation

@ferminquant

Copy link
Copy Markdown
Contributor

Summary

  • Clear stale programmatic bottom-pin scroll bookkeeping when Desktop chat sees explicit user scroll intent.
  • Add a regression test for the first upward wheel scroll occurring while a bottom-pin scroll event is still pending.

Test Plan

  • NODE_ENV=test npm run test:ui -- src/components/assistant-ui/streaming.test.tsx -t "honors the first upward wheel scroll" (failed before fix: expected 420, received 1200)
  • NODE_ENV=test npm run test:ui -- src/components/assistant-ui/streaming.test.tsx
  • npm run type-check
  • npx eslint src/components/assistant-ui/thread-virtualizer.tsx src/components/assistant-ui/streaming.test.tsx (0 errors; existing warnings in thread-virtualizer.tsx)

Closes #37527

Notes

  • NODE_ENV=test npm run test:ui for the whole Desktop workspace still reports unrelated pre-existing failures: Vitest treats four Node electron/*.test.cjs files as no-suite files, and src/components/pane-shell/pane-shell.test.tsx has an unrelated widthOverride assertion failure.

@alt-glitch alt-glitch added type/bug Something isn't working P3 Low — cosmetic, nice to have labels Jun 2, 2026
@ferminquant

Copy link
Copy Markdown
Contributor Author

Closing because this PR was opened by an assistant without explicit user instruction. Apologies for the noise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low — cosmetic, nice to have type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Desktop chat mouse-wheel scroll-up snaps back down in long threads

2 participants