Repository navigation
fix(ui): switch Workshop previews when the selected file type changes - #205872
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR makes Skill Workshop reevaluate the file preview renderer when the selected file type changes. Example: Switch from first.txt to last.md containing '# Fig\n\nRipe fruit.'.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness✅ Ready for maintainer review This PR makes a focused repair for a preview-switching bug still present on current main; no introduced correctness or security defect was identified. Reviewed head: Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Workshop page owns file selection and Gateway read receipts; FileContent presents the resolved file through either the existing sanitized Markdown component or a plain-text element. flowchart TD
A[File selection] --> B[Workshop page owner]
B --> C[Gateway file read]
C --> D[Resolved viewer]
D --> E[Reactive renderer choice]
E --> F[Markdown preview]
E --> G[Plain text preview]
Technical reviewBest possible solution: Keep the existing file-read owner and make its renderer conditional reactive inside the retained preview subtree. Do we have a high-confidence way to reproduce the issue? Current-main source retains the stale renderer selection, and supplied Chromium comparisons demonstrate both incorrect switching directions; this read-only review executed no target code. Is this the best way to solve the issue? The fragment restores reactive branch selection at the existing presentation owner without new state, helpers, requests, or competing renderers. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b6a0808d1235. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +2, Tests +87. Total +89 across 2 files. Added test files: 1. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 26, 2026, 4:15 AM ET / 09:15 UTC. |
|
Merged via squash.
|
* commit '399057400013dcfa1923db08be96c6bf46cf7079': fix: keep known speakers on meeting notes with missing labels (#205923) fix(codex): let saved conversations recover after a remote failure (#201621) fix: distinguish namesakes in Google Meet transcript exports (#205915) refactor: share Discord meeting transcript publication (#205921) test: trim workflow and runtime performance coverage (#205782) fix(android): settle startup before checking archive refresh (#205891) fix: Gateway retains completed reply runtimes after catalog reloads (#195479) fix: clear unused-export failures in dependency checks (#205905) refactor: share browser routing for meeting captions and cleanup (#205916) fix(ui): update Workshop file preview mode (#205872) refactor(android): decouple shared JSON values from node handlers (#202840) fix(ci): remove bot credit from release notes (#205914) fix: pause interrupted shell turns when their result is unknown (#205859) fix(ui): skip publication options for removed workspaces (#205909) fix: preserve indentation in document previews (#205834) improve(ci): avoid full fixture builds for volume checks (#205903) refactor(android): derive connection readiness from its owner (#202898)
…oid-chat-preview-grapheme-boundary * commit '0bea7ecb3029583dd49d83f760d4f40c9e1f543c': (129 commits) fix(android): settle startup before checking archive refresh (#205891) fix: Gateway retains completed reply runtimes after catalog reloads (#195479) fix: clear unused-export failures in dependency checks (#205905) refactor: share browser routing for meeting captions and cleanup (#205916) fix(ui): update Workshop file preview mode (#205872) refactor(android): decouple shared JSON values from node handlers (#202840) fix(ci): remove bot credit from release notes (#205914) fix: pause interrupted shell turns when their result is unknown (#205859) fix(ui): skip publication options for removed workspaces (#205909) fix: preserve indentation in document previews (#205834) improve(ci): avoid full fixture builds for volume checks (#205903) refactor(android): derive connection readiness from its owner (#202898) fix: preserve side chat text when dictating at the limit (#205710) improve(telegram): polling workers start faster and use half the memory (#190890) fix: keep speaker identities distinct in meeting notes (#205860) fix: wait for cancellation before releasing ACP test preparation (#205893) fix: bound workers retained after deleting sessions across agents (#197409) fix(memory): keep a child's memory audience after its parent resets (#205887) refactor(android): give installed skills one data owner (#202892) fix(cli): share process failure listeners across invocations (#205732) ...
What changed
In Skill Workshop’s live Files tab, switching from a text file to Markdown could show a literal
# Headingeven after the selected Markdown file had loaded. Switching from Markdown to text could instead turn a literal heading marker into a heading. The selected filename and returned bytes were correct in both cases.The file preview now reevaluates its choice of renderer when the selected path changes. The loading state still waits for the selected file’s response. Draft support-file content follows its existing rendering path. Related draft preview change
Evidence
# C, then a Markdown file containing# B. The new text appeared inside the old raw preview. A held response showed Loading before that same preview node returned with the new bytes. Reversing the file types reproduced the other direction.Chromium before and after
Each comparison shows the settled Files tab after the selected file’s read returned. Both files contained the same 18 UTF-8 bytes, including the heading marker and blank line. The mounted page used production styles and an in-process Workshop read handler.
Markdown to plain text
Clean comparison
Plain text to Markdown
Clean comparison