anomalyco / anomalyco/opencode
web: clipboard paste doesn't work in prompt input on iOS
Open
@Hona is already working on this.
Since Sep 16, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Summary
Clipboard paste does not work in the opencode web app on iOS devices. Long-press / paste into the prompt input has no effect.
Environment
- opencode version: 2.0.3 (server)
- OS: Linux omarchy 7.2.3-arch1-3 #1 SMP PREEMPT_DYNAMIC Sun, 06 Sep 2026 13:01:04 +0000 x86_64 GNU/Linux (server host)
- Terminal: Unavailable: web UI issue, not terminal
- Shell: Unavailable: web UI issue
- Install/channel: latest
- Active plugins: local plugins found (
fileview.ts,loop-manager.tsin~/.config/opencode/plugins/), no registry plugin entries inopencode.json - Client: iOS (version Unavailable — reporter to confirm), browser Unavailable (likely Mobile Safari / PWA, reporter to confirm), accessing self-hosted web UI remotely
Reproduction
- Open the opencode web app on an iOS device.
- Focus the prompt / chat input.
- Copy text elsewhere on iOS, then long-press -> Paste (or use clipboard / keyboard paste).
- Observe input.
Expected Behavior
Pasted text should appear in the prompt input, same as desktop web.
Actual Behavior
Paste has no effect — clipboard contents do not appear in the input. Seems like clipboard paste doesn't work at all on iOS.
Additional Context
- Frequency: consistently reproducible per reporter (needs iOS version confirmation).
- No related iOS paste issue found — existing paste issues cover Windows Terminal, TUI bracketed paste, VS Code terminal, image paste, but none for iOS web UI. Existing iOS issues cover PWA safe-area overlap (#35480), stop button obscured (#38210), narrow viewport layout (#48739, #48260, #43295, #37545).
- Workarounds tried: none known.
- Suspect areas: mobile web prompt input handling,
preventDefaulton paste/touch events, missingpasteevent listener or clipboard-read permission flow on iOS Safari, virtual keyboard / contenteditable handling.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.