From 521eb9392bad097e812df261435552b2a2be0ce8 Mon Sep 17 00:00:00 2001 From: "claude[bot]" <41898282+claude[bot]@users.noreply.github.com> Date: Wed, 22 Oct 2025 15:59:21 +0000 Subject: [PATCH 1/4] Fix: Allow opening external links in Tauri app MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Created openUrl utility to intelligently handle URL opening for Tauri and web - Updated markdown component to use openExternalUrl for external links - Updated UnifiedChat tool renderer to use Markdown component for proper link parsing - Links in web search results and tool outputs now work in both Tauri and web Fixes #280 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Anthony --- frontend/src/components/UnifiedChat.tsx | 16 +++---- frontend/src/components/markdown.tsx | 17 ++++++++ frontend/src/utils/openUrl.ts | 57 +++++++++++++++++++++++++ 3 files changed, 82 insertions(+), 8 deletions(-) create mode 100644 frontend/src/utils/openUrl.ts diff --git a/frontend/src/components/UnifiedChat.tsx b/frontend/src/components/UnifiedChat.tsx index a8b97b7d3..d3b3db8e6 100644 --- a/frontend/src/components/UnifiedChat.tsx +++ b/frontend/src/components/UnifiedChat.tsx @@ -245,9 +245,9 @@ function ToolCallRenderer({ {query ? `Searched: "${query}"` : "Web Search"} - {/* Search result - indented to align with text */} -
- {isExpanded ? output : preview} + {/* Search result - indented to align with text, render as markdown for links */} +
+ {hasMore && (
- {/* Tool output - indented */} -
- {isExpanded ? output : preview} + {/* Tool output - indented, render as markdown for links */} +
+ {hasMore && (
-
- {isExpanded ? output : preview} +
+ {hasMore && ( + + + + ); }