Skip to content

feat(tui): render structured mentions inline - #41752

Open
MagnumGoYB wants to merge 1 commit into
anomalyco:v2from
MagnumGoYB:inline-mentions
Open

feat(tui): render structured mentions inline#41752
MagnumGoYB wants to merge 1 commit into
anomalyco:v2from
MagnumGoYB:inline-mentions

Conversation

@MagnumGoYB

@MagnumGoYB MagnumGoYB commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Issue for this PR

Closes #41197

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

The V2 TUI rendered user-message text plainly, then showed files and skills as separate badges; agent mentions were not rendered. This adds a shared renderer that verifies every persisted display-width range against the text before styling file, agent, and skill mentions inline. Invalid, overlapping, or partial-wide-character ranges remain as badges, while image attachments keep their preview.

How did you verify your code works?

  • bun run test in packages/tui: 631 passed, 5 skipped.
  • bun typecheck in packages/tui.
  • Pre-push bun turbo typecheck --concurrency=3: 33 packages passed.
  • Prettier and git diff --check.

Screenshots / recordings

Not included. This changes terminal text styling; focused tests cover valid mixed mentions, Unicode display widths, stale ranges, and overlap fallback.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. contributor and removed needs:compliance This means the issue will auto-close after 2 hours. labels Aug 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant