pingdotgg / pingdotgg/t3code

[Bug]: Pasting in code that uses @ replaces text with invalid mentions

Open
#8,331 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs-triage
Dominant language
TypeScript
Stars
23k
Forks
5.9k
Avg merge
11h 14m
Merged PRs (30d)
357

Description

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

apps/desktop

Steps to reproduce

Paste the following text into the compose box in T3 code:

@foo(bar)
Expected behavior

Respect the source text formatting when pasting in decorator functions.

Actual behavior

Transformed to a mention block, which in plain text looks like:

[foo(bar)](foo%28bar%29) 
Image
Impact

Minor bug or occasional failure

Version or commit

0.34.0 @ badae6a

Environment

No response

Logs or stack traces

Screenshots, recordings, or supporting files

No response

Workaround

If I delete the mention block that was pasted and retype it manually I can avoid the issue, but there is no workaround I've found for pasting.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in the apps/desktop compose box and reproduce the issue by pasting @foo(bar) into T3 code. Trace the paste handling that converts decorator-like text into a mention block, then verify that the pasted source formatting is preserved and the text remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.