Skip to content

fix(mobile): distinguish thread catch-up from a dropped connection - #1009

Merged
nixuuu merged 2 commits into
devfrom
canopy/zdiagnozuj-problem-i-27ae
Nov 19, 2026
Merged

nixuuu merged 2 commits into
devfrom
canopy/zdiagnozuj-problem-i-27ae

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Mobile thread catch-up

Opening a saved conversation started the outage deadline before the first history window arrived. Each partial batch briefly set the view to syncing while the same deadline continued to run. After 12 seconds the thread could report an unavailable gateway even as the replay advanced.

The initial thread watch now waits for its window. An incoming controls frame or partial batch confirms transport activity. The view stays in catch-up until a ready snapshot or batch arrives. A real drop, premature end, or permission error still goes through normal watch recovery. The sidebar continues to use its own overview stream. This change addresses the misleading status during successful loads and does not establish a cause for a separate HTTP 403.

Verification

Tested locally on nix-pc at 449af29.

  • The new Connect regression exercises initial controls, partial replay across the outage deadline, an actual stream error, reconnection, catch-up completion, a controls refresh, and a terminal permission error.
  • All 22 distinct cases passed across mobile-thread-sync-status, connection-recovery, and thread-watch-failures. The checks covered exponential backoff, permission failures, a premature end, and checkpoint recovery. The temporary directory checks passed.
  • A local run of the same Connect scenario held the partial replay open for 13 real seconds, then dropped the stream. It completed successfully in 14.0 seconds on the PR revision.
  • Mobile TypeScript and oxlint on the changed files passed. Native device verification is pending. Auto-merge is off.

Copy audit

“Reconnecting…” becomes “Connecting…” on initial open and “Syncing…” during catch-up. “Retrying…” is reserved for recovery. The accessible label derives from the displayed status. Existing thread progress and retry actions are reused. No new terms, errors, empty states or variable-length names. The two fixed labels fit the reserved status width in Chromium text-fit checks at 320, 390 and 1280 px in both themes. This was a copy fit check, not a native device run.

Fixes: #507

@nixuuu

nixuuu commented Nov 19, 2026

Copy link
Copy Markdown
Member Author

Verified commit 65d7ad6 on nix-pc after resolving the documentation conflict. All 22 tests in mobile-thread-sync-status, connection-recovery and thread-watch-failures passed, and check:tmp reported a clean temporary directory. All 15 GitHub checks passed on this revision. Physical iPhone verification remains pending.

@nixuuu
nixuuu merged commit c7f88b7 into dev Nov 19, 2026
27 of 29 checks passed
@nixuuu
nixuuu deleted the canopy/zdiagnozuj-problem-i-27ae branch November 19, 2026 07:25
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