Skip to content

fix(mates): restore mention indicator across view switches and DOM rebuilds#308

Open
leiyangyou wants to merge 1 commit intochadbyte:mainfrom
leiyangyou:fix/mention-indicator
Open

fix(mates): restore mention indicator across view switches and DOM rebuilds#308
leiyangyou wants to merge 1 commit intochadbyte:mainfrom
leiyangyou:fix/mention-indicator

Conversation

@leiyangyou
Copy link
Copy Markdown
Contributor

Summary

  • The mate mention processing indicator (dot + blink animation) was lost when switching sessions or when the sidebar DOM was rebuilt
  • Tracks _mentionActiveMateId server-side and re-emits mention_processing on session switch
  • Caches mention-active state client-side in activeMentionMateIds map so renderUserStrip DOM rebuilds preserve the indicator

Test plan

  • Trigger a mate mention - verify processing indicator appears on the mate icon
  • Switch to another session and back - verify indicator persists
  • Trigger a sidebar re-render (e.g. resize) during mention processing - verify indicator survives

…DOM rebuilds

Track active mention mateId server-side and re-send mention_processing on
session switch. Cache mention-active state client-side so renderUserStrip DOM
rebuilds preserve the processing dot and blink animation.
@leiyangyou leiyangyou force-pushed the fix/mention-indicator branch from dff6ca8 to cab1f84 Compare April 10, 2026 11:41
@chadbyte
Copy link
Copy Markdown
Owner

Heads up — this has merge conflicts after the recent refactoring (app.js / sidebar.js decomposition). Could you rebase against main when you get a chance?

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