Skip to content

fix(mobile): make group chat usable and draw member mentions as chips - #125

Merged
ScriptedAlchemy merged 10 commits into
mainfrom
t3/mobile-group-chat-mention-chips
Nov 16, 2026
Merged

ScriptedAlchemy merged 10 commits into
mainfrom
t3/mobile-group-chat-mention-chips

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

Why

Group chat was hard to use on mobile. The member chip looked like plain text, an "Invite"-only card sat above the composer on every eligible thread, Invite was clipped to a lone "I", and Stop did nothing while only a member was running. @member mentions also stayed plain text, while model mentions render as chips.

What changed

  • Mobile group bar. It shows only while a group is active, and the member chip has a visible border. Invite and End group share one "…" menu, so the member row keeps its width on a phone.
  • Mobile Stop. It stays enabled while any member runs, and it stops every member the same way web does.
  • Mention chips. One shared scan, groupMentionOccurrences, finds @handle mentions for both routing and rendering. Web and mobile draw them as chips in the feed, and the mobile composer draws them too. Tapping a member's chip opens their work. Copy keeps the raw @handle.

Scope

  • Covers the web timeline, the mobile feed, and the mobile composer. The web composer already drew these chips. It now also draws @primary as a chip.
  • Leaves out the right-rail overlap from the original report. It only shows in the wide layout and is not group related.

Tradeoffs

  • The tight bar puts Invite and End group in a menu instead of shrinking each control. End group stays one tap away and names who the thread continues with.
  • Web does not draw a chip for a mention inside bold or italic text, because routing does not address anyone there either.

Blast Radius

The mention scan now drives audience routing, so a routing change would show up here. The routing rules are unchanged and have test coverage. Mobile markdown keys its link regex on the mentions in the text, so streaming in a thread with no group does no extra work.

Verification

  • Ran base and branch on an iOS 27.2 iPhone 17 simulator against an isolated copy of real data, with an active group added. On base, the member chip and @astra look like plain text. On the branch, the chips draw, the menu opens, and a chip tap opens that member's thread.
  • Checked web through the DOM. @astra and @opus render as group chips that keep the raw handle for copy.
  • 68 tests pass across threadGroup.test.ts, composerContext.test.ts, and enrichedLinkPresentation.test.ts. Typecheck passes for client-runtime, mobile, and web. check:changed fails two ChatMarkdown.permissions browser tests, and those two fail on main too.
  • Not run: Stop while only a member runs, which needs a paid member turn, and Android.

🤖 Generated with Claude Code

ScriptedAlchemy and others added 8 commits November 15, 2026 23:04
…he bar

The seat chip used bg-subtle on bg-card. Those tokens match in the default dark theme, and the light pair is only a few steps apart, so Open work and Remove looked like plain text.

Co-authored-by: Cursor <cursoragent@cursor.com>
A thread with no group rendered a card that contained only Invite. Invite stays in the composer /invite command and the command palette.

Co-authored-by: Cursor <cursoragent@cursor.com>
Stop looked only at the primary run and an open discussion, so a seated model could keep working. It now follows groupIsWorking and interrupts the whole group.

Co-authored-by: Cursor <cursoragent@cursor.com>
@handle naming a group member was plain text outside the web composer. One mention scan now chips those names in the web timeline and on mobile, in the feed and the composer.

Co-authored-by: Cursor <cursoragent@cursor.com>
…mary alias

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Invite sat at the end of the scrolling member row, so with two members it was clipped to a lone "I". Also drops a duplicate group-member mention type.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Invite and End group beside the member row left it too narrow for one member on a phone, cutting the chip to "GPT-6". Both now live in one menu, and End group says who the thread continues with.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Mobile rebuilt its link regex and chip table on every streamed token in every thread, and a new group object on any thread event redrew every row's markdown. Both now key on content. The mobile mention regex accepts only the endings the shared scan does, web chips no mention routing would ignore (bold or italic), the web composer chips @primary, mobile composer taps ignore departed seats, and the group menu gets a larger hit area.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 8e97d9d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

ScriptedAlchemy and others added 2 commits November 16, 2026 02:49
They closed over props.group, which gets a new identity on every thread update, so the compiler-memoized handlers changed and every markdown row re-rendered.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ScriptedAlchemy
ScriptedAlchemy merged commit 41f4887 into main Nov 16, 2026
13 checks passed
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.

1 participant