Repository navigation
fix(mobile): make group chat usable and draw member mentions as chips - #125
Merged
Merged
Conversation
…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>
|
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
@membermentions also stayed plain text, while model mentions render as chips.What changed
groupMentionOccurrences, finds@handlementions 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
@primaryas a chip.Tradeoffs
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
@astralook like plain text. On the branch, the chips draw, the menu opens, and a chip tap opens that member's thread.@astraand@opusrender as group chips that keep the raw handle for copy.threadGroup.test.ts,composerContext.test.ts, andenrichedLinkPresentation.test.ts. Typecheck passes for client-runtime, mobile, and web.check:changedfails twoChatMarkdown.permissionsbrowser tests, and those two fail onmaintoo.🤖 Generated with Claude Code