fix: preserve Shell tab scroll position across periodic refresh#633
fix: preserve Shell tab scroll position across periodic refresh#633CoderLuii wants to merge 1 commit into
Conversation
📝 WalkthroughWalkthroughUpdated the focusTerminal logic to preserve the terminal's viewport position when focusing. The implementation now saves the current viewport position before focusing and restores it afterward, maintaining view continuity while ensuring the terminal receives focus. Changes
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Superseded by the refreshed PR branch and the newer maintainer reply below. The branch has now been rebased onto current |
blackmammoth
left a comment
There was a problem hiding this comment.
Hey @CoderLuii, thanks for the PR. Can you send me a detailed reproduction step for this issue? I tried this both on Windows and Android (using Chrome) and I didn't notice a scroll issue with the shell.
fecacea to
583bb46
Compare
|
@blackmammoth thanks for checking this. I traced the report back to CoderLuii/HolyClaude#35. That downstream report was for the HolyClaude full image on Linux: open the Shell tab, scroll inside a long shell session, wait for the periodic browser refresh, and the terminal viewport jumps away from the line being read. HolyClaude v1.2.1 fixed it downstream by patching the vendored CloudCLI bundle to preserve I refreshed the branch against current Ready for another look. |
Summary
Context
CoderLuii/HolyClaude#35 reported the Shell tab losing scroll position during the periodic browser refresh in the HolyClaude full image on Linux. The downstream reproduction was: open HolyClaude, go to the Shell tab, scroll inside a long shell session, wait for the periodic refresh, and the viewport jumps away from the line being read.
HolyClaude v1.2.1 fixed that downstream by patching the vendored CloudCLI bundle to preserve
buffer.active.viewportYaround the Shellfocus()call. Current CloudCLI source still focuses the terminal without preserving the viewport, so this PR applies the same behavior insrc/components/shell/view/Shell.tsx.Testing
git diff --checknpm cicompleted; npm audit reported 39 existing advisoriesnpm run typechecknpm run buildpassed with existing Browserslist/CSS/chunk-size warningsnpm run lintpassed with 0 errors and existing repo-wide warnings