t3code icon indicating copy to clipboard operation
t3code copied to clipboard

[Bug] Single tildes in agent replies cause accidental strikethrough

Open sea-gold opened this issue 4 weeks ago • 4 comments

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

  1. Open a Claude Code thread in T3 Code.
  2. Ask the agent to respond with the example sentence above.
  3. 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

sea-gold avatar Nov 02 '26 10:11 sea-gold

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.

andirtew avatar Nov 24 '26 08:11 andirtew

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.

gyujeongion avatar Nov 25 '26 19:11 gyujeongion

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.

skyfallstatus avatar Nov 26 '26 12:11 skyfallstatus

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.

linhle123 avatar Dec 01 '26 12:12 linhle123