Skip to content

fix(terminal): preserve Ctrl+V text paste - #90

Merged
devswha merged 1 commit into
mainfrom
fix/terminal-clipboard-paste
Sep 27, 2026
Merged

devswha merged 1 commit into
mainfrom
fix/terminal-clipboard-paste

Conversation

@devswha

@devswha devswha commented Sep 27, 2026

Copy link
Copy Markdown
Owner

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 passed bun run test:ui and bun run typecheck. The browser regression covers Korean text, multiline text, Ctrl+Shift+V, and Ctrl+C.

@devswha
devswha merged commit c99d204 into main Sep 27, 2026
@devswha
devswha deleted the fix/terminal-clipboard-paste branch September 27, 2026 07:08
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant