Skip to content

[Feature][Mobile] Add a Web search action when selecting text in chat messages #12196

Description

@bribeck

Description

When selecting text in a chat message in the T3 Code mobile app (Android, Play Store 1.1.0), the selection menu has no way to search the selected text on the web. Other apps (e.g. Chrome, most messaging apps) offer a "Web search" / "Search" action in the text selection toolbar, which makes it quick to look up product names, terms, or errors mentioned in an assistant response.

Android chat markdown uses a custom selectable renderer (#8779, SelectableMarkdownText.android.tsx / @t3tools/mobile-markdown-text), which may be why the system "Web search" action isn't shown.

Expected behavior

  • Selecting text in a chat message shows a Web search (or Search) action alongside Copy / Select all.
  • Tapping it opens the user's default browser/search app with the selected text as the query (e.g. Android Intent.ACTION_WEB_SEARCH, or a search URL fallback).
  • Ideally the same on iOS (the system "Search Web" / "Look Up" items).

Related

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedfeature request acceptedenhancementRequested improvement or new capability.via-triageFiled through npx t3 triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions