Repository navigation
refactor(chat-mode): thin mobile Chat UI seams and fix Zen, tags, fork, and Classic toggle - #562
Merged
Merged
Conversation
orbitingflea
force-pushed
the
refactor/chat-mobile-ui-seams
branch
from
December 3, 2026 16:15
25a102f to
8e3aaaf
Compare
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
Reduce mobile Chat Mode upstream diff churn behind thin
fork/chatMode/seams while fixing mobile P1 regressions in Zen filtering, thread shell tag preservation, active-run Fork gating, Classic thread creation, and pre-upgrade outbox compatibility.Closes #524, Closes #521, Closes #511, Closes #522, Closes #520, Closes #518, Closes #517, Closes #514.
What changed
apps/mobile/src/fork/chatMode/(chatFeedPresentation.ts,ChatEditedMark.tsx,ClassicThreadToggle.tsx,classicThreadHandoff.ts) and relocated fork tests out ofapps/mobile/src/lib/(projectThreadStartTurn.test.tsrestored to0/0vsdfba2c3b056;chatModeParity.test.tsremoved fromlib/).resolveChatFeedDisplay(display)inthreadActivity.ts, keepingzenandactivityGroupForVisibilityverbatim upstream so completed errors, pending approvals, and unanswereduser_input_requestcards stay visible under Zen in Chat mode.chatTerminalAssistantMessageIds,canShowChatAssistantMeta,chatFeedDisplay, and<ChatEditedMark />fromThreadFeed.tsx, and gated<AssistantForkButton>explicitly on!assistantTurnStillInProgress.tagsinthreadDetailToShell(use-thread-selection.ts) and stamped...chatThreadInitialTags(creation.chat)inpendingThreadCreationShell(pending-thread-creation.ts).classicThreadinside per-flowNewTaskFlowState(keyed byflowKeyand pruned on route exit/cancel/promotion, with a one-shot standalone picker handoff), gated<ClassicThreadToggle />inNewTaskRouteScreen.tsxonlistScopes.length > 0 && searchText.trim().length === 0, mounted<ClassicThreadHint />inNewTaskDraftScreen.tsxhero and short-viewportcontextControls(zero chrome on default drafts), and added"Classic thread"/"Classic"to all 11 mobile i18n catalogs.projectThreadStartTurn.tsto passchatthrough only when defined so pre-upgrade outbox entries stay Classic.Scope
apps/mobile/(noapps/server,apps/web, or native iOS/Android files).git diff --numstat dfba2c3b056..HEAD -- apps/mobile/:fork/code/test/config (excluding i18n):+345/-30(375 churn, 16 files) ->+133/-35(168 churn, 19 files,-55.2%).+22/-11->+44/-11(+22lines for"Classic thread"and"Classic").apps/mobile/src/fork/:+50/-0(2 files) ->+1445/-0(9 files); totalapps/mobile/:+1622/-46across 39 files.Tradeoffs
<ClassicThreadToggle />insideNewTaskRouteScreen.tsxwith a"Classic"hint shown onNewTaskDraftScreen.tsx(hero and short-viewportcontextControls) only when enabled, mirroring Web's project menu while keeping default drafts chrome-free.ClassicThreadToggle.test.tsxinapps/mobile/vite.config.ts(+1line) to satisfyt3code(no-dom-test-environment)and run under the React Compiler transform.Blast Radius
Mobile Chat feed presentation, assistant reply meta/fork controls, thread shell tag synthesis, new-task draft/project picker flow, and outbox turn bootstrap. Classic thread flows remain unchanged.
Verification
pnpm i18n:check: passed acrossapps/web,apps/mobile,apps/desktop.pnpm --filter @t3tools/mobile typecheck: passed (0 errors).pnpm run knip:check: passed.vp check: passed (0 errors across 8,549 files; 8,945 files formatted).pnpm --filter @t3tools/mobile test: 368/368 test files, 4,095/4,095 tests passed (includingreactCompilerCoverage.test.ts1,213/1,213 anddependency-graph.test.ts2/2).