Skip to content

fix(ui): avoid stripping non-path @mentions#172

Closed
codenomadbot[bot] wants to merge 6 commits intodevfrom
codenomad/pr-171
Closed

fix(ui): avoid stripping non-path @mentions#172
codenomadbot[bot] wants to merge 6 commits intodevfrom
codenomad/pr-171

Conversation

@codenomadbot
Copy link
Contributor

@codenomadbot codenomadbot bot commented Feb 14, 2026

This is a small follow-up to #171.

Why

packages/ui/src/lib/prompt-placeholders.ts was stripping @ from any @token that didn’t have a file attachment, which could unintentionally rewrite normal text (e.g. @user mentions, emails).

What changed

  • Tighten the @... stripping logic so it only applies to path-like tokens and avoids email/mention contexts.
  • Remove an unused helper/import in packages/ui/src/components/prompt-input/usePromptPicker.ts.

Notes

I can’t push commits directly to the original PR’s head branch (it appears to be a fork PR), so this PR applies the fix on an org-owned branch.

--
Yours,
CodeNomadBot

Avoid rendering tool trace/read output parts on user messages while keeping the primary prompt text visible.
Avoid showing a misleading download icon for file:// attachments in the message stream.
@shantur
Copy link
Collaborator

shantur commented Feb 16, 2026

Superseded by #169

@shantur shantur closed this Feb 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments