Repository navigation
fix(ui): let a phone release its pane as soon as it is hidden - #748
Merged
Merged
Conversation
A touch page with the default settings and a frozen clock detaches and watches as soon as it is hidden, and attaches again when it is back. Fails without the fix: no detach before any timer runs.
devswha
added a commit
that referenced
this pull request
Oct 10, 2026
…er 4008 - A pane mounted while a phone is put away (one closed from the desktop) inherits the release and lets go at once, whatever releasePaneAway says, so it does not hold herdr's window at the phone's size (#748). - When the PC's shared connection comes back after a 4008 overload close, mounted panes clear their stalled ended/error state: the shared socket has replayed their attaches. Found by Codex review.
devswha
added a commit
that referenced
this pull request
Oct 10, 2026
## Change Release 0.4.6, from main at 2ae281d (24 PRs since v0.4.5: #615, #693-#748). - `package.json` and `herdr-plugin.toml`: 0.4.6. - CHANGELOG: `[Unreleased]` becomes `[0.4.6] - 2026-10-11`. #615's entry moves out of the 0.4.2 section, where its branch's merge left it. #697 and #695 get their links and credits. A Maintenance section covers #738, #733 and #696. The compare links are fixed. - `release-summaries.json`: 0.4.6 in en/ko/ja/zh (5 new, 3 improved, 5 fixed). - `REMOTE_BUNDLE_VERSION` 24 -> 25. Bridge routes were added since v0.4.5 (plugin actions, integrations, pane split/zoom/swap/resize/clear/move/focus, tab move, find, layout ratio, agent rename), so `remote-v25` is published before the app release. ## Validation - `bun scripts/release-notes.ts 0.4.6` renders the summaries and the full changelog. - `bun run typecheck` and `bun run test:unit` pass: 2459 tests, 0 fail. --------- Co-authored-by: devswha <[email protected]>
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.
Change
herdr holds a pane at an attached client's size until that attach ends, and its own TUI cannot take the size back. A phone that left the web UI (lock screen, another app, another tab) kept its attach, so the PC's herdr window stayed at the phone's size.
The release-on-leave path (
releasePaneAway, "Use alongside herdr's own window") was off by default, and even when it was on it waited a 1 s timer after the page went hidden. A mobile page can freeze before that timer runs.Now a touch screen (
pointer: coarse) releases the pane as soon as the document goes hidden, whatever the setting says, and switches to the existing read-only watch. Coming back to the page attaches again through the existingback()path. The existing guards still apply: a queued message that is still waiting, a mirrored pane, and the embedded demo all keep the pane. Desktop behavior does not change.Validation
bun run typecheck: passbun run build: passHERDR_TEST_MODE=unit bun test ./src: 991 pass, 0 fail