Repository navigation
fix(web): respect manual scrolling in partner chat - #704
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes Partner chat’s streaming autoscroll behavior so manual user scrolling is respected (matching the main chat surface), and adds a regression test to prevent reintroducing “force scroll to bottom on every stream event”.
Changes:
- Replaces PartnerChat’s manual scroll management with the shared
useChatAutoScrollhook and wires up scroll root attributes + handlers. - Removes imperative “scroll to bottom” calls from stream event handling and re-arms live-follow when a new user turn is sent.
- Adds a Node-based regression test that asserts PartnerChat delegates scroll behavior to the shared hook and avoids fighting user scroll during streaming.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| web/components/partners/PartnerChat.tsx | Switches Partner chat to useChatAutoScroll, stops scroll forcing during streaming, and re-arms live-follow on new turns. |
| web/tests/partner-chat-autoscroll.test.ts | Adds regression checks that PartnerChat uses the shared autoscroll hook and does not scroll-to-bottom on stream events. |
Comments suppressed due to low confidence (2)
web/components/partners/PartnerChat.tsx:535
scrollToBottom's parameter isScrollBehavior; "instant" is not a valid DOM scroll behavior and will not type-check. Use "auto" for an immediate jump.
scrollToBottom("instant");
web/components/partners/PartnerChat.tsx:601
scrollToBottomis declared as(_behavior: ScrollBehavior) => void; passing "instant" is not a validScrollBehaviorand will break type-checking.
scrollToBottom("instant");
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| cancelled = true; | ||
| }; | ||
| }, [partnerId, sessionKey, scrollToBottom, tryAttach]); | ||
| }, [partnerId, sessionKey, scrollToBottom, shouldAutoScrollRef, tryAttach]); |
1 of 2 tasks
pancacake
added a commit
that referenced
this pull request
Jul 26, 2026
Maintenance release on top of v1.5.4, with two new ways to bring a model. - OpenAI Codex is a first-party OAuth provider (#690): browser sign-in against your own ChatGPT plan replaces the API-key fields, credentials stay in <user-root>/private/openai-codex/ with owner-only permissions, and the managed profile is owner-bound so it is never handed out through grants or made active over an already-configured LLM. - Eden AI joins as the 35th LLM binding (#671), an OpenAI-compatible gateway addressed as <provider>/<model>. - Knowledge bases answer from a real document inventory instead of guessing from retrieval hits: a per-KB inventory rides the system prompt and a new kb_files tool enumerates on demand with glob/substring filters, mounted under rag's gate and deniable per partner. - The rag tool cites the chunks, entities, and reports retrieval actually returned (#694) rather than an echo of its own query; the local LightRAG pipeline still surfaces nothing to cite. - GraphRAG indexing runs on a worker thread with its own asyncio loop (#695), so UVICORN_LOOP=asyncio is no longer needed, and two config faults that broke the first run are fixed (#699). - Assorted: unique optimistic message ids (#698, a v1.5.4 regression that dropped the assistant reply from the visible thread), partner-chat manual scrolling respected (#704), claude-opus-5 recognized as effort-based (#703), Kimi models omit temperature outright, and deeptutor start keeps relaying logs on legacy Windows code pages (#702). - Typing: narrow the loopback callback server to asyncio.Server and gate the msvcrt lock path on sys.platform so it type-checks off Windows. Release notes: assets/releases/ver1-5-5.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes an issue where Partner chat forcibly scrolls to the bottom while a response is streaming, preventing users from reviewing earlier messages.
useChatAutoScrollinPartnerChat.Related Issues
Module(s) Affected
web(Frontend)testsChecklist
pre-commit run --all-filesand fixed any issues.Additional Notes
pre-commit run --all-filesin Linux. All hooks passed except Prettier, which requests formatting changes to unrelated existing frontend files; those unrelated changes are not included in this PR.PartnerChat.tsxfile.