Repository navigation
fix(terminal): send a secret entered before the reconnect's snapshot arrived - #244
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 (3)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
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 #242.
Cause
After a reconnect the client clears what it knows about the server's features and learns them again from the
snapshotframe. The terminal's output can arrive first, and the masked input shows as soon as output is on screen. A Send in that gap madesendSecretanswer "unsupported" locally and send nothing, so the password field stayed with an error.submitalready waits for the snapshot (up to 2 s) before it decides;sendSecretdid not. It became visible on 2026-10-01 after the snapshot got slower: it now asks herdr for the foreground process of every shell pane (#224).Fix
sendSecretwaits for the connection's snapshot the same way, then sends or answers unsupported.Evidence
scripts/secret-input-regression.tsalone, 25 runs with frame logging: 5 failures before, each with the snapshot arriving after the first output and nosecretframe sent; 0 failures in 25 runs after.src/lib/ws.test.ts(new, a fake WebSocket): a secret entered before the snapshot is sent once the snapshot lists masked input; it fails with the oldsendSecret. A snapshot without the feature still answers unsupported and sends nothing.bun run typecheck;bun run test:unit656 pass.