[Bug]: Pasting in code that uses @ replaces text with invalid mentions
Nobody has claimed this yet.
- 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)
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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