aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_xbox.py
AgeCommit message (Collapse)AuthorFilesLines
2026-11-16fix(xbox): a refused console list no longer blanks the tab; tab iconDanilo M.1-0/+10
xccs answers 403 from its gateway while every other Xbox Live endpoint answers, and that one failure marked the whole tab offline. The console list now fails on its own, the tab says console control is unavailable, and the rest reads. The Xbox tab gets the Xbox glyph like the others. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16fix(xbox): a redrawn hold never fires, and start clears the flagDanilo M.1-0/+5
A power button rebuilt mid-hold lost its pointerup, so letting go early still turned the console off; hold.js now drops a hold whose button is no longer in the page. status.xbox is written 0 on start, in case a crash left it at 1. The "ago" texts move on each minute, and missing storage names and achievement percentages no longer print null. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16fix(xbox): keep the reader alive and the flags rightDanilo M.1-3/+62
- run() survives any exception from tick(); _http turns http.client.HTTPException into OSError. - Signing out or in again resets the slow-read clock, so the profile is read at once instead of after 10 minutes. - After stop() nothing sets status.xbox back to 1; its compare and write is under a lock. - api() uses a copy of the auth taken under the lock; command() maps a missing auth to "not signed in". - Action and sign-in errors carry Xbox Live's own message when the HTTP error body has one. - type_of caches only a 404; other errors retry on the next tick. - Sign-in: start_login is locked, a poller only ends its own flow, and a failed token save ends it as "failed". - state() is loading only until the first presence read. - Drop a stale placeholder comment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16feat(xbox): Xbox Live reads, presentation flag and console commandsDanilo M.1-0/+104
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16feat(xbox): device code sign-in from the tabDanilo M.1-0/+34
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16feat(xbox): Xbox Live auth chain and token fileDanilo M.1-0/+92
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16feat(xbox): shape Xbox Live responses for the tabDanilo M.1-0/+96
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>