@devries-cameron20 / t3code Mirror · read-only / commits / dab2d5c771
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 23, 06:45 UTC

perf(web): the proposed plan card compiles without manual memoization (#20707)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

Julius Marminge committed Oct 16, 2026 at 21:47 UTC dab2d5c771e2fff27e55d8f23e940702793456b8
1 file changed +2 -3
apps/web/src/components/chat/ProposedPlanCard.tsx
+2 -3
@@ -1,5 +1,5 @@
1 import { proposedPlanTitle, stripDisplayedPlanMarkdown } from "@t3tools/shared/proposedPlanText";
2 -import { memo, useCallback, useState, useId } from "react";
2 +import { memo, useState, useId } from "react";
3 import { useFindRevealRef } from "./markdownFindContext";
4 import {
5 isAtomCommandInterrupted,
@@ -85,8 +85,7 @@ export const ProposedPlanCard = memo(function ProposedPlanCard({
85 // While finding, the full plan stays mounted but clipped, so a match past the
86 // preview can be counted and then opened only once it is selected.
87 const showPreview = isCollapsed && !findActive;
88 - const revealForFind = useCallback(() => setExpanded(true), []);
89 - const findRevealRef = useFindRevealRef(revealForFind);
88 + const findRevealRef = useFindRevealRef(() => setExpanded(true));
89 const downloadFilename = buildProposedPlanMarkdownFilename(planMarkdown);
90 const saveContents = normalizePlanMarkdownForExport(planMarkdown);
91