Show readable GitHub sign-in failure pages

RA
6h ago
+1344-285

GitHub OAuth callback failures previously returned raw JSON without a readable explanation or retry option.

This change displays HTML error pages with retry links while preserving HTTP status codes and OAuth state validation.

  • Preserve Peer Lobby and valid task destinations when retrying sign-in.
  • Use the signed return cookie for retry navigation without requiring the previous OAuth state to match.
  • Start a fresh OAuth authorization when retrying.
  • Restore random_token(24) and retain the existing signed cookie format.
  • Prevent return cookies from exceeding Chromium's 4,096-byte limit, falling back to / for oversized destinations.
  • Update regression tests and remove obsolete state-token logic.

Validation:

  • Web tests: 237 passed, 0 failed, 2 ignored.
  • Portable and Rust gates passed locally.
  • Interactive Review completed for 088b50f2.
  • Live GitHub OAuth and production deployment were not tested.

Close #644