[PR #1716] [MERGED] fix(tui): preserve scroll position when reflowing due to message stream #10031

Closed
opened 2026-02-16 18:14:35 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/1716
Author: @yihuikhuu
Created: 8/8/2025
Status: Merged
Merged: 8/8/2025
Merged by: @adamdotdevin

Base: devHead: fix-scroll-while-messsage-stream


📝 Commits (1)

  • 9afe9c8 fix(tui): preserve scroll position when reflowing due to message stream

📊 Changes

1 file changed (+11 additions, -1 deletions)

View changed files

📝 packages/tui/internal/components/chat/messages.go (+11 -1)

📄 Description

fixes #1715

This PR preserves the scroll position on reflow, and also reduces some stuttering that seems to happen when scrolling while a message is streaming in.

https://github.com/user-attachments/assets/390f6825-1af9-47ee-922e-169d679dc704


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/1716 **Author:** [@yihuikhuu](https://github.com/yihuikhuu) **Created:** 8/8/2025 **Status:** ✅ Merged **Merged:** 8/8/2025 **Merged by:** [@adamdotdevin](https://github.com/adamdotdevin) **Base:** `dev` ← **Head:** `fix-scroll-while-messsage-stream` --- ### 📝 Commits (1) - [`9afe9c8`](https://github.com/anomalyco/opencode/commit/9afe9c8bb4ed00f79126454ddf8ca088855377f5) fix(tui): preserve scroll position when reflowing due to message stream ### 📊 Changes **1 file changed** (+11 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/tui/internal/components/chat/messages.go` (+11 -1) </details> ### 📄 Description fixes #1715 This PR preserves the scroll position on reflow, and also reduces some stuttering that seems to happen when scrolling while a message is streaming in. https://github.com/user-attachments/assets/390f6825-1af9-47ee-922e-169d679dc704 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:14:35 -05:00
yindo closed this issue 2026-02-16 18:14:35 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10031