Skip to content

feat(core): align session recovery and Cloudflare policy with Fluxdo - #131

Merged
fannnzhang merged 2 commits into
mainfrom
feature/align-session-cf-fluxdo
Sep 27, 2026
Merged

fannnzhang merged 2 commits into
mainfrom
feature/align-session-cf-fluxdo

Conversation

@fannnzhang

Copy link
Copy Markdown
Contributor

Summary

  • Move session recovery and Cloudflare challenge strategy into Rust: cooldown (3 failures → 30s, ineffective clearance → 60s), Auto vs ManualBypass, background hidden WebView join, and cf-mitigated: challenge detection without a Server-header gate.
  • Recover login through previous _t, WebView candidate probe, same-request browser-transport retry (30m decline TTL), fingerprint/_rt merge, and Discourse User API Key + QR (discourse://, fire://, fluxdo://).
  • Hosts only present challenges, extract cookies, and run RSA/deep-link surfaces. Docs and iOS/Android wiring stay on this single path.

Test plan

  • Cold start with valid cookies: no unexpected login screen; inconclusive probe must not force logout
  • Trigger a foreground CF challenge, fail it 3 times, confirm 30s cooldown and no stacked CF UI
  • Background/hidden CF verify joins the in-flight presentation instead of opening a second modal
  • After a still-challenged proof, confirm the current request retries via browser transport and can roll back
  • Login WebView fingerprint completion records _rt / cookies into the Rust session
  • User API Key redirect (discourse://auth_redirect) and QR (fire://qr-login / fluxdo://qr-login) complete into the same login finalize path
  • iOS Simulator Fire + FireTests build; Android host compiles against regenerated UniFFI session bindings

Made with Cursor

fannnzhang and others added 2 commits September 26, 2026 23:06
Keep strategy in Rust so hosts only present challenges and extract cookies, with cooldown, candidate-cookie probe, browser-transport retry, and User API Key/QR recovery on one path.

Co-authored-by: Cursor <cursoragent@cursor.com>
Format the session and Cloudflare modules, allow the extra cookie
self-heal argument that clippy denies, and commit the Fire.xcodeproj
output from XcodeGen 2.46.0.

Co-authored-by: peter rich <fannnzhang@users.noreply.github.com>
@fannnzhang
fannnzhang merged commit c4a7431 into main Sep 27, 2026
11 checks passed
@fannnzhang
fannnzhang deleted the feature/align-session-cf-fluxdo branch September 27, 2026 02:26
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.

2 participants