Skip to content

OPE-216: Session Chat skips history catch-up after BackgroundStop #500

Closed

Description

@ivanfenenko

On resume from inactivity, Session Chat can skip REST history catch-up and leave a stale timeline. Last-turn Review Changes then never loads because the turn stays busy.

User outcome: Coming back to an open Session Chat REST-catches up missed messages even when iOS goes idle-timeout → BackgroundStop without a Background signal.

Cause (device logs): First resume is BackgroundStop then Foreground with no Background. marksStale only treats Background and PathLost, so health stays healthy. fullReload skip reason=stream.reconnected fires 14ms later. History only landed later via pull-to-refresh (40 → 46 → 56 messages). Reconnect catch-up failed (stream.reconnected 8.7s, overflow-recovery 42s / 58s).

Remaining:

  • Treat BackgroundStop as stale (iOS + Android)
  • Regression: BackgroundStop then Foreground refreshes history
  • Keep Foreground-without-background from refetching

Docs: docs/features/message-store/


Imported from Linear OPE-216. Linear status: Done. Priority: High. Created 2026-08-31. Completed 2026-08-31.
Related: OPE-234.

Activity

  1. self-assigned this
    on Oct 11, 2026
  2. added
    bug
    ios
    android
    shared
    priority: high
    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

Labels

androidbugiospriority: highshared

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions