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 24, 10:15 UTC
fix(web): reset markdown widgets when the previewed file changes (#9910)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Julius Marminge committed
Sep 5, 2026 at 00:15 UTC
3e1333319aacff96856a3c161b8787ff6b0ddd6b
1 file changed
+4
apps/web/src/components/files/FilePreviewPanel.tsx
+4
@@ -1266,7 +1266,11 @@ export default function FilePreviewPanel({
1266
</div>
1267
) : relativePath && file.data ? (
1268
isMarkdown && renderMarkdown ? (
1269
+ // Markdown reconciles in place across text updates, so a file
1270
+ // switch needs a new key or the previous file's disclosure and
1271
+ // wrap state carries into the next document.
1272
<RenderedMarkdownSurface
1273
+ key={relativePath}
1274
environmentId={environmentId}
1275
cwd={cwd}
1276
relativePath={relativePath}