[Feature][Mobile] Add a Web search action when selecting text in chat messages
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 23k
- Forks
- 5.9k
- Avg merge
- 11h 14m
- Merged PRs (30d)
- 357
Description
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
- #5342 — native text selection within assistant responses (closed)
- #6456 — reply to selected assistant response text (closed)
- #8779 — Android selectable markdown
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.
Research direction
Start with SelectableMarkdownText.android.tsx and the @t3tools/mobile-markdown-text integration, then trace how text-selection actions are exposed on Android. Check whether the existing native selection behavior can provide a Web search action, and review the corresponding iOS path if present. Done means selected chat text offers Search/Web search and opens the default browser or search app with that text as the query.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native, typescript
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100