fix(web): harden clipboard copy and terminal paste flows#187
Merged
tiann merged 4 commits intotiann:mainfrom Feb 19, 2026
Merged
fix(web): harden clipboard copy and terminal paste flows#187tiann merged 4 commits intotiann:mainfrom
tiann merged 4 commits intotiann:mainfrom
Conversation
10 tasks
Contributor
Author
|
Hi Team, I understand you prefer to open an issue first before adding features but these are changes I’ve worked on for my own setup and thought I would share. |
Unintendedz
pushed a commit
to Unintendedz/hapii
that referenced
this pull request
Feb 19, 2026
Lihengwannafly
pushed a commit
to Lihengwannafly/hapi
that referenced
this pull request
Feb 19, 2026
jasonczc
pushed a commit
to jasonczc/haqi
that referenced
this pull request
Feb 19, 2026
(cherry picked from commit 77cfa71)
doraemonkeys
pushed a commit
to doraemonkeys/hapi
that referenced
this pull request
Feb 20, 2026
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.
Summary
This PR improves copy/paste behavior across desktop + mobile contexts and clarifies copy intent in file view.
Why
Scope
Clipboard reliability
safeCopyToClipboard:navigator.clipboard.writeTextdocument.execCommand('copy')strategyTerminal paste UX
File view copy clarity
i18n
enandzh-CNFiles touched
web/src/lib/clipboard.tsweb/src/routes/sessions/terminal.tsxweb/src/routes/sessions/file.tsxweb/src/lib/locales/en.tsweb/src/lib/locales/zh-CN.tsValidation
bun run typecheckbun run test:webTest coverage added in this PR
Validation run (successful)
Both commands executed after test additions and passed.