[Bug] Single tildes in agent replies cause accidental strikethrough
What happened
In the latest T3 Code Windows desktop app, Claude Code replies sometimes show large sections of text with strikethrough when they contain ordinary ranges written with ~.
For example, this should display as normal text:
1~3月的数据不完整,建议使用4~9月的数据进行对比。
Instead, the two single tildes are treated as Markdown delimiters. Everything between them gets crossed out, and the tildes disappear. This is especially noticeable in Chinese replies, where 1~3月, 4~9月, etc. are common.
How to reproduce
- Open a Claude Code thread in T3 Code.
- Ask the agent to respond with the example sentence above.
- Check the rendered reply.
Expected behavior
Single ~ characters in numeric ranges should remain visible. ~~text~~ should still work as Markdown strikethrough.
Possible fix
The chat renderer uses remark-gfm, which enables singleTilde by default. Setting singleTilde: false in the chat Markdown configuration should fix this without affecting double-tilde strikethrough.
Related: #16105 covers the same parsing behavior in sent prompts. #9021 proposed a fix but was closed without merging.
Environment
- T3 Code: latest release
- Windows desktop
- Claude Code provider
Note: apps/mobile has the exact same single-tilde strikethrough bug (tracked in #41858, which was auto-closed as a duplicate of this issue), and open PR #29270 currently modifies zero files under apps/mobile.
Mobile uses a separate Markdown stack (apps/mobile/src/lib/markdownDocument.ts lines 14 & 491 using remarkGfm without { singleTilde: false }, plus apps/mobile/src/native/EnrichedMarkdownText.tsx / react-native-enriched-markdown), and it also missed the web user-prompt fix from #16105 / #35859. Please make sure apps/mobile is included when fixing this.
Confirming this still reproduces on macOS T3 Code Beta (0.1.11) with Korean agent replies (e.g., 10~20분이고 80~90%입니다 strikes through 20분이고 80 and drops both tildes).
Since #35859 already passed { singleTilde: false } to CHAT_USER_MARKDOWN_REMARK_PLUGINS, applying the same option to CHAT_MARKDOWN_REMARK_PLUGINS and CHAT_MARKDOWN_REMARK_PLUGINS_WITH_BREAKS (as in #29270) would resolve this for CJK users. +1 for merging #29270.
Still reproduces on macOS 0.1.13-nightly.20261125 (Claude provider). It isn't only numeric ranges: macOS iCloud paths contain com~apple~CloudDocs, so any bare iCloud path in an agent reply strikes through "apple" and drops both tildes.
Confirming this also hits ordinary English replies on 0.1.11 whenever a model uses ~ for "about" twice on one line (e.g., (~$70–$80) and pay Databricks a software fee (~$20–$30) strikes through everything between the two tildes). +1 on #29270.