Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
Merge branch 'fix/honor-link-open-target'
vastsab35051f6e5da
diff --cc apps/desktop/src/components/Markdown.tsxindex f9bb19f18,b14b0d877..84116d415--- a/apps/desktop/src/components/Markdown.tsx+++ b/apps/desktop/src/components/Markdown.tsx@@@ -37,9 -37,9 +37,10 @@@ importIconWorkflow,} from "./icons";import { TooltipButton } from "./ui";+import { CitationBadge, useHostedSearchCitationSources } from "./CitationBadge";import { createPortal } from "react-dom";import { api } from "../lib/api";+ import { openHttpUrl } from "../lib/open-http-url";import {rehypeSourcePositions,sourcePositionProps,@@@ -501,8 -500,6 +501,7 @@@ function Anchor(const openFileRef = useOpenChatFileRef();const openUrl = useAppStore((s) => s.openUrlInWorkPanel);const showToast = useAppStore((s) => s.showToast);- const linkOpenTarget = useAppStore((s) => s.settings?.linkOpenTarget ?? "workpanel");+ const citationSources = useHostedSearchCitationSources(href);const [menuPosition, setMenuPosition] = useState<{ top: number; left: number } | null>(null);const menuRef = useRef<HTMLDivElement | null>(null);@@@ -582,12 -579,8 +581,12 @@@}};- // Plain click previews in the work panel (or external browser based on setting).- // Modified clicks fall through to _blank, which main routes to shell.openExternal.+ // Plain click follows Link open destination. Modifier clicks fall through+ // to _blank, which main routes to shell.openExternal.+ if (citationSources.length > 0) {+ return <CitationBadge sources={citationSources} />;+ }+const onClick = (e: React.MouseEvent<HTMLAnchorElement>) => {if (e.metaKey || e.ctrlKey || e.shiftKey || e.altKey) return;if (!href) return;