Repository navigation
fix(terminal): pan a grid that is not the browser's own on a small screen - #241
Merged
Merged
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configurationConfiguration used: Repository: devswha/herdr-web-ui/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (4)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
# Conflicts: # CHANGELOG.md
devswha
added a commit
that referenced
this pull request
Oct 1, 2026
Release v0.3.39: moves the Unreleased notes under 0.3.39 and bumps `package.json` and `herdr-plugin.toml`. In this release, all fixes: a password sent right after a reconnect (#244), typing and keys outliving their connection (#235), panning a terminal whose grid is not the browser's own on a phone (#241), omo's question form in the chat (#237 by @nahwan-kim), and a held pane resumed by a late herdr answer plus a new shell taken for OmO (#243). No remote bundle change: `REMOTE_BUNDLE_VERSION` stays 9. Changelog housekeeping that was waiting for a release: - Compare links at the bottom now cover 0.3.31 to 0.3.39 (they stopped at 0.3.30), and `[Unreleased]` compares from v0.3.39. - Five references that were a bare `#N` are full PR links with their author: #164 is the issue PR #199 fixed, #154 the issue PR #155 closed, and #45 and #6 are PRs. No other wording of released entries changed. `bun scripts/release-notes.ts 0.3.39` prints the notes and exits 0.
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.
Closes #230
What was wrong
A terminal whose grid is not the browser's own was clipped by
.pane-terminal { overflow: hidden }with no way to move it: an observe connection (the operator's grid) and a mirrored pane on a PC whose herdr cannot attach (pane-geometrywithfixed: true). On a 390 px phone a wide grid showed its left part only, and the view sat at the top of the grid, so the prompt on the last rows was out of reach.Gesture model
overflow: autounderdata-adopted-grid). A one-finger drag pans it in both directions through the existing touch handlers (touch-actionstaysnone); in a desktop window the wheel and the scrollbars pan it.overflow: hidden, the same fit, and a vertical drag is still the wheel that scrolls herdr's history. Nothing is lost on an adopted grid: an observer's wheel reports were already dropped (read-only) and a mirror reports no mouse, so a drag there scrolled nothing before.No new control, setting or string.
Verification
scripts/windows-lens-browser-qa.tsnow asserts, with real touch events (CDPInput.dispatchTouchEvent) at 390x844:data-adopted-grid,overflow: hidden, nothing to pan, and a drag down still scrolls herdr's historyWithout the fix the script fails at "the view opens on the rows with the prompt".
Screenshots (local,
/tmp/pan-evidence):before/windows-mirror-phone.png,windows-mirror-phone.png,windows-mirror-phone-panned-right.png,windows-mirror-phone-panned-top.png,windows-mirror-small-window.png,attach-phone-history.png,observe-phone.png,observe-phone-panned-right.png.bun run typecheck,HERDR_TEST_MODE=unit bun test ./src(277 pass) andbun run test:uipass. The firsttest:uirun timed out once insecret-input-regression.ts(the password field still attached after Send); the rerun passed.Not verified
terminalAttach: false).