Repository navigation
feat(chat): add an opt-in Paste and send button to the composer - #2907
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 1 minute. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
…t; keep its setting in its own key
|
Review round (Codex Terra xhigh on 420db03; omo was CLEAR there). Fixed in aa5a67d:
Both new Composer tests failed before the fix. |
|
Codex Terra xhigh re-review on aa5a67d: no HIGH. Prior fixes confirmed (edit-then-clear, legacy-tab settings save, cross-tab draft written before the read answers). Remaining MEDIUMs, left as they are after the one fix round:
|
# Conflicts: # src/lib/settings.legacy-fixture.ts # src/lib/settings.ts
Deploying ovis with
|
| Latest commit: |
024c9d3
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://0c160cb4.ovis.pages.dev |
| Branch Preview URL: | https://feat-paste-and-send.ovis.pages.dev |
|
Local merge gate (owner-approved): head merges origin/main (settings key list conflict, both kept), |
Fixes #2493
What
An opt-in Paste and send icon button (lucide
ClipboardPaste, beside Attach) in the chat composer. It reads this device's clipboard on the press (never the PC's) and sends its text through Send's own path, so it is queued while the agent works, refused or kept in the box exactly as a typed message would be.The issue proposed no setting; per the maintainer's rule that the composer's row stays minimal, it is behind a new device setting, Settings → Chat → Composer → Paste and send button (
composerPasteSend, off by default). With it off, nothing changes.Behaviour:
send()once the box is drawn with it, so draft protection, the cross-tab send lock, acknowledgement and the comment carry all apply unchanged. A refused or unconfirmed send leaves the pasted text in the box; nothing is retried.Design: the Codex and Claude apps have no such button; it follows Ovis's own terminal key bar Paste (#1853). DESIGN.md is updated.
Screenshots (demo app, 1280 and 390, dark and light)
Desktop dark / light:


Phone 390 dark / light:

Empty clipboard note (desktop dark, phone light):


Settings (desktop dark, phone light):


Validation
src/components/ComposerPasteSend.test.tsx(11 cases) and the newsettings.test.tscase failed on origin/main (12 fail), pass now.bun teston ComposerPasteSend, settings, paletteSettings, conventions, i18n, changelog-fold, ComposerRestored and ComposerCrossTab: all pass.bun run check fast(run on old-desktop through the heavy runner): ok (typecheck, build, unit 11680 pass / 0 fail).