Skip to content

fix: properly link @mentions in comments#119

Closed
schpetbot wants to merge 1 commit intomainfrom
pr/1fb12ec5
Closed

fix: properly link @mentions in comments#119
schpetbot wants to merge 1 commit intomainfrom
pr/1fb12ec5

Conversation

@schpetbot
Copy link
Collaborator

fix: properly link @mentions in comments

When creating or updating comments via the CLI, @mentions like @username
were appearing as plain text rather than being linked to actual users.

This fix:

  • Adds a mentions utility that extracts @mentions from text
  • Resolves mentioned usernames to user IDs via the Linear API
  • Converts text to Prosemirror document format with proper
    suggestion_userMentions nodes that Linear understands
  • Uses bodyData instead of body when mentions are present

Fixes #112

@schpet schpet marked this pull request as draft February 3, 2026 00:17
@schpet
Copy link
Owner

schpet commented Feb 3, 2026

note: i think this would be pretty bad as is because formatting would be lost if you use an @ metnion

@schpetbot schpetbot force-pushed the pr/1fb12ec5 branch 3 times, most recently from 3883654 to 98829f4 Compare February 3, 2026 20:41
When creating or updating comments via the CLI, @mentions like @username
were appearing as plain text rather than being linked to actual users.

This fix:
- Adds a mentions utility that extracts @mentions from text
- Resolves mentioned usernames to user IDs via the Linear API
- Converts text to Prosemirror document format with proper
  suggestion_userMentions nodes that Linear understands
- Uses bodyData instead of body when mentions are present

Fixes #112
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.

when creating comments from agents the @mentions generally don't work

2 participants