You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Structured references are styled while composing a prompt, but projected user messages render the original text as plain text and show attachments separately below it.
For example, a selected skill currently becomes:
Compare the workspace provider options. /api-design
[ skill | API design ]
The same underlying inconsistency exists for file and agent mentions: composer extmarks communicate structure inline, but timeline rendering loses that styling and relies on separate badges or previews.
Proposed direction
Introduce one shared user-message mention renderer that segments message text using the structured attachment mention ranges and styles each recognized reference inline:
@file references
@agent references
/skill references
Render a separate badge or preview only when the attachment has no valid inline mention or needs richer presentation, such as an image preview.
The renderer should validate that each stored range still matches its mention text and fall back safely when ranges are stale or overlap.
Scope
This is a follow-up to #41188. That PR keeps the existing timeline convention and adds structured skill attachments; it should not special-case skill rendering before files and agents share the same treatment.
Acceptance criteria
Structured file, agent, and skill mentions retain recognizable inline styling after submission.
Inline mentions and separate badges are not duplicated unnecessarily.
Attachments without valid mention ranges still render through the existing badge/preview UI.
Multiple mentions, Unicode text, stale ranges, and overlapping ranges have focused tests.
I am taking this issue. I will implement a shared mention renderer for file, agent, and skill references, including stale/overlapping range fallbacks and focused Unicode/multiple-mention tests. I will follow up with a fork PR.
Activity
MagnumGoYB commentedon Aug 11, 2026
I am taking this issue. I will implement a shared mention renderer for file, agent, and skill references, including stale/overlapping range fallbacks and focused Unicode/multiple-mention tests. I will follow up with a fork PR.