Skip to content

fix(mobile): load bot history at the oldest visible message - #1440

Merged
nixuuu merged 1 commit into
devfrom
fix/thread-loading-failure
Nov 28, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/thread-loading-failure

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 28, 2026

Copy link
Copy Markdown
Member

Change

Mobile bot chats used the end of the rendered list to request older messages. Approval cards can predate the oldest loaded message, leaving the reader scrolling through Slack activity while earlier messages are still missing.

Request the next page when the viewport reaches the oldest loaded message, including when a collapsed event group represents it. After a page arrives, check each visible row's key and position against the updated list so a stale scroll sample cannot trigger another request.

Verification

  • On an Android API 36 emulator, a collapsed group above 48 older cards triggered one page request. Scrolling to the next boundary triggered one more. A longer conversation opened without a page request. The harness used the production list and paging hook with synthetic history.
  • Three tests passed across the gateway bot chat history and domain event group suites. Mobile typecheck and scoped lint passed.
  • iOS runtime behavior remains unverified locally. Repository-wide checks run in CI.

Fixes: #302

@nixuuu
nixuuu enabled auto-merge (squash) November 28, 2026 16:35
@nixuuu
nixuuu merged commit 3be7e8f into dev Nov 28, 2026
24 checks passed
@nixuuu
nixuuu deleted the fix/thread-loading-failure branch November 28, 2026 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant