docs/plans/2026-04-17-codeblock-regression.md
Reproduce the reported code block regression in the running docs app, identify the root cause, and fix it with fresh verification.
codeblock regression and asks whether it was verified in
browser-use.http://localhost:3001/.docs/solutions/logic-errors/2026-03-23-code-block-tab-should-indent-every-selected-line.mddocs/solutions/logic-errors/2026-03-26-code-block-language-change-must-trigger-redecorate.mddocs/solutions/logic-errors/2026-03-27-code-block-format-must-rebuild-code-lines.mddocs/solutions/logic-errors/2026-03-28-link-validation-must-not-treat-double-slash-as-internal-path.mddocs/solutions/logic-errors/2026-04-03-editor-key-protocols-must-cover-expanded-selection-and-repeated-escalation.mdbrowser-uselocalhost:3001 is not a trustworthy repro surface right now. The active
docs dev server is hanging behind Turbopack cache corruption and missing
.sst files under apps/www/.next/dev/cache/turbopack.localhost:3002 reproduced the real browser-facing
regression on /docs/code-block: the route fell into the "This page couldn’t
load" error state with PlateError: [CODE_HIGHLIGHT] Error: Could not highlight with Highlight.js.setCodeBlockToDecorations tried to recover from registered
language highlight failures, but called editor.api.debug.error(...) inside
the catch. In dev, debug.error throws, so the intended plaintext fallback
never ran./docs/code-block loads successfully in browser. The page
now logs a warning and falls back to plaintext for the Python sample instead
of crashing the route.