Repository navigation
Description
On a v1 server, the Last turn tab on Changes should update from the live session.diff event instead of only loading over REST.
TUI v1 patches the open session's last-turn diff from session.diff. Mobile loads Changes over REST when the screen opens or on a manual refresh, with the turn's message ID fixed at navigation time. A turn that finishes while Changes is open, which is common now that Changes sits beside the chat on tablets (#642), shows a stale or empty Last turn set until the user refreshes or reopens.
Parent
OPE-184 — Show remaining live events in Session Chat
Current state (2026-10-11)
- No code consumes
session.diffon either platform. Android only lists it among unlogged event types inSseDiagnosticLogging.kt. ChangesViewModel(iOS and Android) fetches Last turn viagetSessionDiff(sessionId, messageId)only on open and refresh.- The last-turn Review Changes pill this ticket originally targeted was removed in Show branch and working-tree changes on a Session Chat pill #317; Last turn is now a tab on Changes.
SessionChatReviewChanges,LastTurnReviewChangesStore, andreviewChangesNavigationTargetare no longer surfaced in Session Chat.
What to build
While Changes is open for a v1 session, a session.diff event for that session updates the Last turn tab, and follows the newest completed turn when it changes. Reconnect still reseeds from REST. v2 stays capability-gated (supportsSessionMessageDiff, see #551). Both platforms.
Decide as part of this ticket: reuse LastTurnReviewChangesStore as the live holder, or delete the leftover pill code (SessionChatReviewChanges, OpenCodeReviewChangesPill outside the gallery, and their tests).
Acceptance criteria
-
session.diffupdates the Last turn tab for the open v1 session without a manual refresh - A newly completed turn replaces the previous last-turn set
- Reconnect still reseeds from REST
- v2 Last turn stays hidden / gated
- Leftover pill code is either reused or removed, not left dead
- iOS and Android stay in parity
Blocked by
None — can start immediately.
Imported from Linear OPE-190. Linear status: Todo. Priority: Medium. Created 2026-08-18.
Parent: OPE-184.
Related: OPE-277.
Activity
[-]OPE-190: Live-update last-turn Review Changes on v1[/-][+]OPE-190: Live-update the Last turn tab on Changes on v1[/+]ivanfenenko commentedon Oct 20, 2026
Closing as not planned. The v1 gap is real: nothing consumes
session.diff, so an open Last turn tab stays stale until a manual refresh. v2 has no Last turn tab and nosession.diffevent. Parking it. Reopen if v1 Changes-beside-chat still matters.