Skip to content

Say why the session is being checked, in the line that says it is fine - #298

Merged
parawanderer merged 1 commit into
mainfrom
fix/say-why-the-session-is-checked
Nov 21, 2026
Merged

parawanderer merged 1 commit into
mainfrom
fix/say-why-the-session-is-checked

Conversation

@parawanderer

Copy link
Copy Markdown
Owner

Summary

askForACodeIfTheSessionNeedsOne runs after every account restore (a restore can land on a session that already wants a code) as well as after failed fetches. Its "healthy" log line always said "The session answers as healthy after a failed fetch, so the refusal is specific to fetching", so every launch's log read as a fetch problem when nothing had failed. Seen in the #274 device tests, on both the emulator and the phone.

Changes

  • The check takes a reason. The restore caller logs "The restored session answers as healthy; no code needed"; the three fetch-failure callers keep the old line.
  • No behaviour change, and no extra request: on a logged-in session getSecondFactorMethodsIfNeeded only reads login_state and sends nothing to Apple.

Testing

Compiles; log text only, so nothing asserts it.

🤖 Generated with Claude Code

askForACodeIfTheSessionNeedsOne runs after every account restore as well
as after failed fetches, and its "healthy" line always said "after a
failed fetch, so the refusal is specific to fetching". Every launch's log
therefore read as a fetch problem when nothing had failed.

The restore caller now logs "The restored session answers as healthy";
the three fetch-failure callers keep the old wording. Behaviour is
unchanged, and no request is added: on a logged-in session the check
only reads login_state.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@parawanderer
parawanderer merged commit 1f576af into main Nov 21, 2026
4 checks passed

This branch was previously deployed

1 inactive deployment
Android Build — aa6573d6 Deployed Nov 21, 2026 by parawanderer via Instrumented tests (emulator) #382
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