You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug sweep 2: multi-class and join modes — a 401 on one class logged the phone out of all of them #102
Closed. Back-filled for the record. Four audits over 8ec2e31 and one more over 59c7a77.
The serious one:onTokenRejected called signOut, so a 401 on one class threw the device out of all of them. Now leaveActive — a 401 on one class drops only that one.
The rest of the multi-class pass:
the membership list was decoded as a whole → now per entry, so one broken row does not take the list with it;
syncNow with KEEP swallowed the sync after a switch → the switch uses its own policy;
leaving a class that was not on screen cleared the timetable fingerprint → now only the one being left;
a notification from the previous class stayed in the shade → switching removes it;
an in-flight sync resurrected rows of a class that had been left → retainOnly sweeps them.
The join-mode pass, which caught one that would have taken production down:
an enum's server_default written through .value → SAEnum stores the member NAME, so .value lands an unreadable string on every existing row and the first ORM read raises LookupError — which on classes is the bot's middleware, i.e. every update at once. Caught before 0010 was applied; tests/test_join_modes.py holds all three sides of it;
burn assigned an attribute → now a conditional UPDATE, and /join burns the code before it is used;
the mode button was a toggle → it now carries the mode it wants;
joining with a personal code was not written to the audit log;
revoking a member did not kill their unissued codes → drop_for;
mint deleted spent codes along with live ones;
_is_iso_date accepted 20260915 and 2026-W38-1;
the 429 on the code screen was drawn as «HTTP 429 Too Many Requests» → now a Russian sentence saying how long to wait.
Activity