Skip to content

Align ChatMarkdown and FilePreviewPanel with upstream's compiled form - #205

Merged
henrychu04 merged 1 commit into
coder-onlyfrom
t3code/fork-heavy-audit
Oct 17, 2026
Merged

henrychu04 merged 1 commit into
coder-onlyfrom
t3code/fork-heavy-audit

Conversation

@henrychu04

Copy link
Copy Markdown
Owner

Follow-up to the sync review (#204): a hunk-by-hunk read of the six fork-heavy web files against upstream 13aa882.

Result of the read

  • assetUrls, HtmlRenderFrame, AttachmentFilePreview: every difference is the helper-read seam. Nothing missing.
  • RightPanelTabs: differs only by the cut browser/device/preview surfaces and the deliberately uncarried perf(web): right panel tabs no longer all re-render on unrelated chat updates pingdotgg/t3code#20853 per-tab memo.
  • ChatMarkdown and FilePreviewPanel: no missing upstream behaviour, but both still carried the manual memoization upstream removed in the React Compiler rollout (stage 2 kept these files from the fork's side and skipped those hunks).

Changes

  • ChatMarkdown: 31 useCallback/useMemo wrappers removed to match upstream; brandLinkIcon → upstream's isGitHubHost; dead MarkdownAstNode type and isWindowsAbsolutePath import removed; stray lucide/session imports moved into the import block.
  • FilePreviewPanel: 15 wrappers removed (including the fork-only ones around owner, handlePendingChange, reloadFile); upstream's exhaustive-deps lint note restored.
  • ChatView: rewind reads a message's images concurrently (as upstream's prepareRevertedMessageAttachments does) and creates preview URLs only after all reads succeed.

Every Coder: seam in the touched files is unchanged; a fork-line check against the previous versions confirmed only wrapper/deps lines and the items above were removed.

Verification: typecheck:web, vp fmt --check, reactCompilerCoverage and the full test:web:coder suite (393 files / 6201 tests, browser project included) pass.

🤖 Generated with Claude Code

A hunk-by-hunk read of the six fork-heavy web files against upstream
13aa882 (assetUrls, HtmlRenderFrame, AttachmentFilePreview,
RightPanelTabs, FilePreviewPanel, ChatMarkdown) found no missing upstream
behaviour beyond the documented cuts, but two files still carried
pre-compiler shape that upstream removed in the React Compiler rollout:

- ChatMarkdown: 31 useCallback/useMemo wrappers are gone, as upstream's
  are; `brandLinkIcon` is upstream's `isGitHubHost` again; the dead
  `MarkdownAstNode` type and `isWindowsAbsolutePath` import are removed;
  and the lucide and session imports sit in the import block.
- FilePreviewPanel: 15 wrappers are gone, including the fork-only ones
  around `owner`, `handlePendingChange`, and `reloadFile`, and upstream's
  exhaustive-deps lint note on the breadcrumb scroll effect is back.

Every Coder seam in both files is unchanged.

ChatView's rewind now reads a message's images concurrently, as
upstream's prepareRevertedMessageAttachments fetches them, and creates
preview URLs only after every read has succeeded.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@henrychu04
henrychu04 merged commit b6950fc into coder-only Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant