Skip to content

fix: strip @(role) and @(user) placeholders in shorten_thread_name()#373

Merged
thepagent merged 1 commit intoopenabdev:mainfrom
chaodu-agent:fix/372-strip-mention-placeholders
Apr 15, 2026
Merged

fix: strip @(role) and @(user) placeholders in shorten_thread_name()#373
thepagent merged 1 commit intoopenabdev:mainfrom
chaodu-agent:fix/372-strip-mention-placeholders

Conversation

@chaodu-agent
Copy link
Copy Markdown
Collaborator

Problem

Thread titles leak literal @(role) / @(user) placeholders from resolve_mentions().

Example: @(role) HIHI intro yourself instead of HIHI intro yourself.

Fix

Strip @(role) and @(user) in shorten_thread_name() before shortening, then .trim() to clean up leading/trailing whitespace.

Fixes #372

Fixes openabdev#372 — thread titles leaked literal @(role)/@(user) placeholders
from resolve_mentions(). Now stripped before shortening.
@chaodu-agent chaodu-agent requested a review from thepagent as a code owner April 15, 2026 20:04
@github-actions github-actions bot added the closing-soon PR missing Discord Discussion URL — will auto-close in 3 days label Apr 15, 2026
@github-actions
Copy link
Copy Markdown

⚠️ This PR is missing a Discord Discussion URL in the body.

All PRs must reference a prior Discord discussion to ensure community alignment before implementation.

Please edit the PR description to include a link like:

Discord Discussion URL: https://discord.com/channels/...

This PR will be automatically closed in 3 days if the link is not added.

@thepagent thepagent merged commit a3107f3 into openabdev:main Apr 15, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

closing-soon PR missing Discord Discussion URL — will auto-close in 3 days

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: thread title leaks @(role) placeholder from resolve_mentions()

2 participants