Repository navigation
fix(terminal): preserve Ctrl+V text paste - #90
Merged
Merged
Conversation
devswha
added a commit
that referenced
this pull request
Nov 28, 2026
…ow's account (#4956) ## Problem A user's Windows PC was bound to an account the account service no longer has (it was folded into the account of the same verified email). **Move this PC to this account** then never finished: the move waits for a whole snapshot read of the source before its switch, the service answered the hidden 404 for the gone account, and the PC retried for ever with no error shown (and could not cancel once the destination's admission was taken). Companion service change: ovis-sh/account#90 answers such a PC `403 not_listed`, with `account_gone: true` only when the account no longer exists (never for a removal by a living account). ## Fix - **A move out of a gone account finishes.** While a move journal stands (`movingOut`), the source no longer listing the PC neither clears its binding nor stops the switch: there is nothing left to apply from it, and the move carries the PC into the destination. - **A PC whose account is gone moves by itself.** On `not_listed` with `account_gone`, the PC keeps its binding (rows and all, as it did with the hidden 404) and `GET /api/account/status` says `account_gone: true`. Its own window, signed in to another account, moves it there with no question: at once after a sign-in there (`ACCOUNT_SESSION_EVENT`), else within a minute. A removal by an account that still exists never says `account_gone`, so the PC leaves as before and is never put back. - The fake service mirrors `account_gone`; `docs/account.md` and a changelog fragment. No new control: nothing is shown, the PC just appears in the signed-in account's PC list. `/api/account/status` gains one additive field. ## Tests - `server/account/account-move.contract.test.ts`: a move out of a deleted account finishes (red on main: `aborted`/`binding_changed` with the service fix, a hang without it); a PC whose account is gone stays bound and says `account_gone` (red without the fix: it left); a PC its living account removed leaves and is never said to be in a gone account. 27 pass. - Staging (real service with #90, real Ovis server, isolated test herdr): a PC bound to a deleted account, the window signed in to B in a real browser -> moved into B in 14 s, listed in B. An Ovis 0.5.13 PC in the same state: the move ends `binding_changed`, the PC leaves, Add this PC puts it in B. A PC in another email's living account: nothing moves. - `bun run check fast` passed locally on the first commit (3796c4b); this head runs on CI.
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.
Ctrl+V in the terminal lens was sent as control byte
0x16, which could invoke an agent's image-paste shortcut and report “No image in clipboard” instead of pasting copied text.Let the browser dispatch its native paste event so xterm handles clipboard text and bracketed paste. Other terminal control keys keep their existing behavior.
Validation: reproduced the failure in Chromium (expected clipboard text, received
0x16), then passedbun run test:uiandbun run typecheck. The browser regression covers Korean text, multiline text, Ctrl+Shift+V, and Ctrl+C.