Skip to content

OPE-189: Truncate Session Chat live when a turn is reverted #619

Closed

Description

@ivanfenenko

When a revert is staged in the open session, Session Chat should hide the reverted turns live, and bring them back if the revert is cleared, without a leave/re-enter.

Parent

OPE-184 — Show remaining TUI v2 live events in Session Chat

Current state (2026-10-11)

  • Done: a committed revert truncates the open timeline on both platforms. The reverted message and everything after it are dropped, with a server reload when the revert point isn't loaded (Fix blocking and major v2 issues found by the simulation test run #337; iOS MessageSync.swift, Android MessageSync.kt, covered by V2LiveTurnTimelineTest).
  • Missing: a staged revert (v2 session.revert.staged / session.revert.cleared, v1 revert on session.updated) doesn't affect the timeline. The turns stay visible after staging. The revert point only drives commands and the composer chip (SessionChatCommands), and is re-read from the server only after this device's own revert.
  • Upstream web hides messages at or after the staged revert point (packages/app/src/session/timeline/controller-projection.ts).

What to build

While Session Chat is open, a staged revert, including one started from another client, hides the turns from the revert point onward. Clearing the revert shows them again. Committing it keeps today's truncate. Reconnect still reseeds from REST. Both protocols, both platforms.

Acceptance criteria

  • A staged revert (v1 and v2) hides the matching turn and everything after it in the open Session Chat
  • A revert staged from another client is reflected live
  • Clearing the revert shows the hidden turns again
  • Messages before the revert point stay visible
  • Committed-revert truncation keeps working as today
  • Reconnect still reseeds from REST
  • iOS and Android stay in parity

Blocked by

None — can start immediately.


Imported from Linear OPE-189. Linear status: Todo. Priority: Low. Created 2026-08-18.
Parent: OPE-184.
Related: OPE-211.

Activity

  1. added
    enhancement
    on Oct 11, 2026
  2. added
    ios
    android
    shared
    todo
    priority: low
    ready-for-agent
    on Oct 11, 2026
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: lowready-for-agentsharedtodo

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions