mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-16 13:03:31 +08:00
The desktop app was still falling back to raw text in release builds for some fenced code blocks, which left bash snippets visually wrong and too heavy for chat use. This change switches the Shiki path to the JavaScript regex engine, restores tighter code-block defaults for chat, and bumps the desktop app version to 0.1.4 for the release artifacts. Constraint: The packaged Tauri app must render markdown code blocks consistently without relying on WebView WASM behavior Constraint: Chat code blocks should stay compact and should not show line numbers unless a caller explicitly requests them Rejected: Keep tuning fallback-only CSS | did not address the packaged highlighter path failing to initialize Rejected: Leave line numbers on by default | too noisy for assistant replies and bash snippets Confidence: high Scope-risk: moderate Reversibility: clean Directive: If code blocks regress again, inspect the highlighter engine path before adjusting chat spacing CSS Tested: cd desktop && bun run lint Tested: cd desktop && bun run test CodeViewer.test.tsx MarkdownRenderer.test.tsx Sidebar.test.tsx Tested: cd desktop && bun run build:macos-arm64 Not-tested: Windows packaged build after the engine switch