Skip to content

OPE-190: Live-update the Last turn tab on Changes on v1 #620

Closed as not planned

Description

@ivanfenenko

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.diff on either platform. Android only lists it among unlogged event types in SseDiagnosticLogging.kt.
  • ChangesViewModel (iOS and Android) fetches Last turn via getSessionDiff(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, and reviewChangesNavigationTarget are 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.diff updates 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

  1. added
    enhancement
    on Oct 11, 2026
  2. added
    ios
    android
    shared
    todo
    priority: medium
    ready-for-agent
    on Oct 11, 2026
  3. changed the title [-]OPE-190: Live-update last-turn Review Changes on v1[/-] [+]OPE-190: Live-update the Last turn tab on Changes on v1[/+] on Oct 11, 2026
  4. ivanfenenko commented on Oct 20, 2026

    @ivanfenenko
    CollaboratorAuthor

    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 no session.diff event. Parking it. Reopen if v1 Changes-beside-chat still matters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    androidenhancementiospriority: mediumready-for-agentsharedtodo

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions