Skip to content

fix(native-chat): use quote icon for Add to chat - #27631

Merged
brennanb2025 merged 3 commits into
mainfrom
brennanb2025/add-to-chat-quote-icon
Oct 12, 2026
Merged

brennanb2025 merged 3 commits into
mainfrom
brennanb2025/add-to-chat-quote-icon

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Selecting text in an agent reply offers an “Add to chat” button that inserts the selection as a quote. Its chat bubble with a plus suggested a new chat message, so the button now shows a quote mark.

What Changed

Before: The button showed a chat bubble with a plus.

After: The button shows a quote mark. The label, quotation text, and timing are unchanged. In particular, a double-clicked word still waits 500 ms so a third click can finish selecting the paragraph before the button appears.

Mechanism: Replaced the button’s Lucide icon in NativeChatSelectionQuote.tsx. No selection or composer logic changed.

Why

The action inserts selected text into the composer as a blockquote, so a quote mark describes it more clearly. We kept the existing timing after reviewing a shorter wait: that wait could briefly show the word button during a slower triple-click before replacing it with the paragraph button.

Linked Issue

N/A (maintainer change; no existing issue).

Visual Proof

Before:

Before: chat bubble with plus

After:

After: quote mark

Rendered hidden Electron check:

Quote icon beside selected agent reply

Testing

  • ORCA_BACKGROUND_LAUNCH=1 pnpm test src/renderer/src/components/native-chat/NativeChatSelectionQuote.test.tsx — 7 tests passed.

  • orca-ci-checks with Bun 1.4.3 — 26/26 checks passed, including lint, code quality, localization, and typechecks.

  • Local hidden-renderer Electron QA — 1 test passed on the pushed commit. The double-click offer was absent at 450 ms, appeared by 750 ms with the Quote icon, and clicking it inserted the selected reply as a blockquote. The screenshot above captures the rendered offer.

  • Remote-machine Electron QA remained blocked before rendering: macOS test setup missed its CLI build, Windows fallbacks hit agent startup and native rebuild errors, and the Linux host was unreachable. The local hidden-renderer run verified the UI behavior.

  • No new automated test: the final code changes only an icon; the existing quote-selection tests cover behavior.

  • I manually tested these changes locally

  • Automated tests added/updated, or explained why not below

Review

Two review rounds found and removed the shorter delay. A final pass found no issue in the icon-only diff.

Agent skill upstream boundary

  • Not applicable; this change copies no skill-installer source or resources.

Notes

Renderer-only icon change. No security, cross-platform, SSH, mobile, compatibility, or performance mechanism changed.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • Before/after screenshots attached
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered
  • CI checks and build verified (all PR checks passed)

@brennanb2025 brennanb2025 changed the title fix(native-chat): quote icon on Add to chat, and show it sooner after a double-click fix(native-chat): use quote icon for Add to chat Oct 12, 2026
@brennanb2025

brennanb2025 commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor Author

The “Add to chat” button used a chat-plus icon even though it inserts selected reply text as a quote. It now shows a quote icon. The label, inserted text, and original 500 ms selection delay remain the same.

During review, a proposed shorter delay was found to briefly show the wrong selection during slower triple-clicks; that change was removed. The final PR diff changes only the icon. No review findings remain open, and no code changes were deferred.

Verified: the focused quote-selection suite passed (7/7), orca-ci-checks passed (26/26), and all PR CI checks passed, including the five Node 24 test shards. The final icon-only diff passed a second review and the readiness check. A local hidden-renderer Electron test passed on the pushed commit: the offer stayed absent at 450 ms after a double-click, appeared by 750 ms with the Quote icon, and inserted the selected reply as a blockquote when clicked. A fresh rendered screenshot is attached to the PR. Remote-machine QA stopped before rendering because of setup failures and an unreachable host.

@brennanb2025
brennanb2025 marked this pull request as ready for review October 12, 2026 03:04
@brennanb2025
brennanb2025 merged commit 8d113f5 into main Oct 12, 2026
32 checks passed
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