fix: prime bypasses the stale service worker; never saves an empty capture
After the 2026-11-10 Wodify redeploy, prime captured zero actions and every query reported NOT PRIMED. It looked like another endpoint move. It was not: every allowlisted path and response shape is unchanged. The app's service worker was serving the old OutSystems runtime to pages running the new screen code. That mixed app throws in Controller.callServerDataSource before any data action is sent, so there was nothing to observe. Measured per tab setting: bypassing the service worker alone fixes it; disabling the HTTP cache alone does not. - cdp.open_page: Network.setBypassServiceWorker on the prime tab. Per-tab, nothing in the profile is unregistered or cleared. - cdp.close: close the tab the session opened. Every prime leaked one. - prime: refuse to save a capture with no actions, leave the existing cache alone, and say why. Page errors are collected and reported, which is what separates "the browser's copy of the app is broken" from "Wodify moved its endpoints". - Skill/: the cron prompts applied the generic exit-code table to `list` commands. For `list`, 3 is session expired, 4/5 are stale / not primed, 6 is an unindexed class id. Exit 5 was not handled at all. Also document the `waitlist` value of the YOU column. - CLAUDE.md / README: record the diagnosis, the measurements, the Firebase red herring, and both exit-code tables. Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
1 parent
cd7924d890
commit
a15efa0874
9 files changed
+498
-16
No files matched your search
@@ -97,6 +97,13 @@ cannot be obtained any other way:
|
||||
Results are cached at `~/.cache/wodify/session.json`, mode `600`. That file holds live
|
||||
credentials: never commit it, never log it.
|
||||
|
||||
`prime` loads the app **from the network**, bypassing the PWA service worker for its own
|
||||
tab (nothing in the profile is unregistered or cleared), and closes that tab when it is
|
||||
done. After a Wodify redeploy the worker can otherwise keep serving the old runtime to the
|
||||
new screens -- an app that throws before it sends a single data request. If a prime
|
||||
captures nothing it says why (`page_errors`), refuses to overwrite the existing cache, and
|
||||
exits 1.
|
||||
|
||||
### Priming against a remote profile
|
||||
|
||||
If the logged-in Chrome is on another host, tunnel first:
|
||||
@@ -122,6 +129,17 @@ result:
|
||||
| `SessionExpiredError` | 2 | Session dead — a human must log in again, then re-prime |
|
||||
| `VersionStaleError` | 3 | Wodify redeployed — re-prime |
|
||||
|
||||
Those exit codes are for the action commands (`bookings`, `schedule`, `workout`, …). The
|
||||
`list` commands use a different set, because 2 is taken by argument errors there:
|
||||
|
||||
| `list date` / `list workout` | Exit |
|
||||
|------------------------------|------|
|
||||
| bad date or class id | 2 |
|
||||
| session expired | 3 |
|
||||
| Wodify redeployed — re-prime | 4 |
|
||||
| not primed | 5 |
|
||||
| class id not in the local index — run `list date` for its day first | 6 |
|
||||
|
||||
A silently wrong "no workout today" is worse than an error, so there is no fallback path that
|
||||
guesses.
|
||||
|
||||
|
||||
Reference in new issue
Block a user