Skip to content

0.1.24

Choose a tag to compare

@webdevarif webdevarif released this 07 Jun 23:52
· 17 commits to main since this release
fix(paste): char-type in browsers for web-hosted TUIs

Web-based terminals (Hermes Agent, web Claude Code, Cloud Shell, any
xterm.js app) live inside a browser tab. The browser holds focus and
forwards Ctrl+V into the page, where the TUI in raw mode intercepts it
as a control character — hence the recurring "No image found in
clipboard" from Claude Code's image-paste handler. Shift+Insert doesn't
help here either because the browser has no terminal-pane paste binding
to translate it into clipboard delivery.

Only path that works universally for browser-hosted TUIs is sending the
text as raw key events.

Adds IsBrowser(proc) covering Chrome, Edge, Firefox, Brave, Opera,
Vivaldi, Arc, Zen, LibreWolf. SMART command now three-way dispatches:
  - Browser process       → Type(text)         char-typed via batched
                                               SendInput (~30ms / 100 chars)
  - Editor / terminal     → Paste() shortcut   Shift+Insert path
  - Everything else       → Paste() shortcut   Ctrl+V path

Browser normal use (Gmail, Slack web, etc.) is now char-typed too —
slightly slower than Ctrl+V but functionally invisible at voice text
length, and the upside is web TUIs Just Work.

Bump 0.1.22 → 0.1.23.