Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Inline code `~/` renders as a folder chip named after the home directory #47935

OpenMarvinJWendt(GitHub profile, opens in a new tab) opened this issue 1 comment
MarvinJWendt(GitHub profile, opens in a new tab)commented

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

Not sure

Steps to reproduce

  1. Get an agent reply that contains ~/ in inline code, e.g. "a leading ~/ in...".
  2. Look at the rendered message.

Expected behavior

The message shows ~/ as written.

Actual behavior

~/ turns into a folder chip labeled with my home directory name, so the sentence reads "a leading [folder icon] mjw in..." and the reader cannot see that the agent wrote ~/. A lone ~ stays plain inline code, and ~/ in a fenced code block renders as text. Screenshot attached.

dyn-0f546290d0d24e95c0abe557b3954426

Impact

Cosmetic issue

Version or commit

0.1.13

Environment

Windows 11, WSL2 (Ubuntu)

  1. MarvinJWendt(GitHub profile, opens in a new tab) added labelsneeds-triage

  2. A possible fix is to blacklist ~/ from the dir detection. I doubt any model want's to name the home dir by writing exactly ~/. It would most likely use /home/<user> if it wants to name that dir in chat.

Sign in to join this conversation.