import type { JSX } from "react"; import { CheckCircle2 } from "lucide-react"; import { translate } from "../../../i18n/index"; import type { WorkspaceLinkAction } from "../../../contexts/workspace/presentation/renderer/actions/workspaceLinkActions"; import { AgentMessageMarkdown, type AgentMessageMarkdownWorkspaceAppIcon } from "../../AgentMessageMarkdown"; import type { AgentTuttiPlanIssueLinkVM } from "../contracts/agentMessageRowVM"; // Friendly, non-error rendering for the daemon's durable plan→Issue reverse // link (messageId "plan-issue:"): a compact "Issue created from this // plan" row with the workspace-issue mention rendered through the standard // markdown mention-chip pipeline, so clicking it opens the Issue exactly like // any other issue mention. export function AgentTuttiPlanIssueLinkCard({ planIssueLink, workspaceRoot, basePath, onLinkAction, workspaceAppIcons }: { planIssueLink: AgentTuttiPlanIssueLinkVM; workspaceRoot: string | null; basePath: string; onLinkAction?: (action: WorkspaceLinkAction) => void; workspaceAppIcons?: readonly AgentMessageMarkdownWorkspaceAppIcon[]; }): JSX.Element { "use memo"; const title = translate("agentHost.agentGui.tuttiModePlanIssueLinkCreated"); return (
); }