Problem#
Web and mobile disagree about which final answers stay visible after a run settles.
- Web keeps every assistant message with
phase: "final_answer" visible (retainedAssistantReplyEntryIds in apps/web/src/components/chat/MessagesTimeline.logic.ts).
- Mobile keeps one only when a steer comes directly after it (
answersBeforeSteers in apps/mobile/src/lib/threadActivity.ts).
A Codex run can continue after a final answer without a steer, for example in a goal continuation. Web still shows the earlier answer. Mobile folds it into "Worked for", and zen mode hides it.
Change#
Mobile now keeps every final_answer message visible, both in run folds and in zen mode, as web does. Commentary and messages without a phase fold as before. The steer segments from #35408 still split the fold. If a segment has no hidden work left, it gets no fold.
The change touches only apps/mobile/src/lib/threadActivity.ts. It needs no contract, server, or web change.
Scope#
This carries the mobile part of the closed #27991, on top of the phase field that #34501 added. The Claude adapter part of #27991, which tags end_turn text as final_answer, has no visible effect today because Claude continuations start new runs. It will follow separately with #35462.
Fixes #36110. Refs #8879.
Verification#
I extended the existing phase case in apps/mobile/src/lib/threadActivity.test.ts ("hides tool calls or everything but the final answer") with a same-run continuation and no steer: answer, tool call, then a later answer. The case runs for each phase and checks both the run fold and zen mode.
- On
main (15d1ef5e090) with only the test applied: 1 failed and 51 passed. The final_answer row fails at threadActivity.test.ts:1469, because the answer is folded away.
- On this branch: 52 passed. Commentary,
partial_answer, and phase-less messages still fold.
vp run check:changed passes: format, lint, knip, typecheck (2 packages), the mobile feed tests, and React Compiler.
maria-rcks verified #27991 earlier in a real Linux web client. On main, a Codex goal run that continued in the same run hid its first final answer. #27991 kept both answers visible across expand, collapse, and reload. Web handles that case on main now, and this change gives mobile the same behavior.
Reproduced on an Android emulator against unmodified main (6790f85f53a) with a replayed Codex run. Mobile folds the first final answer into "Worked for", while web keeps both visible. Captures are in #36110:
Web (main) | Android (main), collapsed | Android (main), expanded |
|---|
 |  |  |
Not checked yet: an "after" capture of this branch on a device. I will add one before review.
Implemented with Claude Opus 5.5 through Claude Code in T3 Code, with an independent Claude Opus 5.5 review.
🤖 Generated with Claude Code
Codex Review Summary: ❌ Failed
This comment shows the latest Codex review activity on this pull request.
We couldn’t complete this review. Comment
@codex reviewto try again.c23a8e4ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.