Settings → During a workout → "Weigh in before workouts", on by default. Off, tapping Start
begins the session straight away with no body weight on it — what "Start without weighing
in" did, without the sheet. Home and Stats still log weight by hand, and the Home
body-weight footer stops promising "it's also asked before every workout" while it is off.
S.weighIn (DEF true, read as `!== false` so older profiles keep asking, same as checkIn).
startFlow is the single entry point for every Start button, so the check lives there;
"log a past workout" never asked and is unchanged. Three new strings in all 14 locales,
pt-BR as explicit overrides (inherited set and fingerprint unchanged). Test:
sheets.weighin.test.jsx — on / legacy profile / off, through the real store and sheet stack.
Closes#137.
An exercise's restSec runs after every set, warm-up ramp included, so a heavy lift with a
150 s working rest also puts 150 s between two light ramp sets. Exercises may now carry a
second optional field, warmupRestSec: the rest between warm-up ramp sets.
- The break after the LAST ramp set (into the first work set) stays the working rest, because
that is the rest the first heavy set actually needs.
- Without the field nothing changes: ramp sets rest like work sets, exactly as before.
- Like restSec, the field is set by plan files (and by external planners writing routines);
no new UI, no new string, no locale change. It travels with a shared plan the same way
restSec does and is dropped when unset.
Where:
- src/lib/supersetFlow.js: warmupRestSecFor(entry, setIdx, workRestSec), the pure rule,
tested beside it (supersetFlow.test.js)
- src/views/Workout.jsx: the rest started after a checked set goes through it, at all four
start sites (re-check, singleton, unit done, superset round done)
- src/lib/plan-share.js: export/import passthrough with the same clamp as restSec
(plan-share.test.js)
- src/views/Workout.test.jsx: 45 s between ramp sets, 150 s after the last ramp set and
after work sets
Why: a lifter asked for it after two sessions ("warm-up sets have way too large of a rest
period, it should only be 60-90 seconds max") while wanting 90-150 s on the working sets.
The only lever today is one number per exercise.
Tests: cd frontend && npm test -> 1338 passing (93 files), including the new cases.
Compatibility: additive. Old routines, old plan files and old sessions have no field and
behave exactly as before. The API stores routines as opaque JSON, so nothing server-side
changes. The AI Coach's payload allowlist does not include the field (not needed there).
- reminder tick: a due reminder is sent for up to 15 minutes after its time (once per local
date) instead of only on the exact minute — a restart across that minute used to lose the day;
state files are stat'ed and re-read only when they changed
- sendPush prunes 403 (stale VAPID key) like 404/410; optional device targeting
- POST /api/push/subscribe is an upsert that keeps created and stores a deviceId;
GET /api/push/status says whether the server holds an endpoint
- rest timers keyed per user+device; cancel without a device id keeps the old account-wide
behaviour
- sw.js: payload parsed inside waitUntil (never a silent push), pushsubscriptionchange
re-subscribes and registers the new endpoint
- lib/push.js: syncPushSubscription() (called once per signed-in boot from App.jsx and when
Settings opens) re-registers a lost row, replaces a subscription made against another key,
pushSupported() is false off https; deviceId() per browser
- Settings: the notifications switch shows what the server holds
- tests: server-reminder (window, dedupe, trained day), server-push-status (upsert, status,
per-device timers), lib/push.test.js
- useRevealActiveChip sets the strip's own scrollLeft instead of scrollIntoView, which
walked every scrollable ancestor and jumped the page when the strip sat above the fold;
.chips contain overscroll on both axes.
- Every .sheet cap (and .center) carries env(safe-area-inset-top); the dead
-webkit-overflow-scrolling is gone.
- viewport-guard: with the keyboard down and the page displaced, a text field that kept
focus (WebKit does not blur on button taps) is blurred and the correction runs; while
Modals has the body pinned it unpins for one scroll and pins back where it was.
Modals blurs a page field when a sheet opens; ticking a set blurs the row's input.
- Android: shortEdges cutout mode so --sat is real, adjustResize for the keyboard.
Apps built with the iOS 26+ SDK must adopt the UIScene-based app
lifecycle; the AppDelegate-only lifecycle this project's iOS shell
uses is no longer supported and crashes on launch:
Application failed to launch: UIScene life cycle is required for
apps built with this SDK.
This adds a SceneDelegate (window/root VC still come from
Main.storyboard, it just forwards deep links / Universal Links to
Capacitor's ApplicationDelegateProxy, since AppDelegate's own
open-url/continue-activity callbacks aren't invoked under the scene
lifecycle), wires AppDelegate's
application(_:configurationForConnecting:) to use it, and adds the
UIApplicationSceneManifest to Info.plist.
No deployment target, bundle id, or signing settings changed — apps
built with older Xcode/SDKs are unaffected.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
A push to main or a v* tag on GitHub is forwarded to gitlab.com by a workflow, fast-forward
only, main before the tags so the tag pipeline finds its commit on main. Pull mirroring on
gitlab.com is paid, so the push runs from this side; it needs a project token with the single
scope write_repository (Maintainer role, for the protected main and v*) as the secret
GITLAB_MIRROR_TOKEN, handed to git through a credential helper rather than a URL.
README, CONTRIBUTING, MOBILE and the changelog now say what the site says: issues and pull
requests on GitHub, the GitLab mirror only for the CI that builds the release artefacts, the
merge requests still open there reviewed until they are through.
Nav, footer, the Elsewhere pads and every deep link point at github.com; GitLab keeps a pad
and a footer link as the mirror whose CI signs the APK. Stars, forks, issues and the About
timeline come from api.github.com again (new cache keys so a warm GitLab-era entry is not
misread). The dead-pad rules from the suspension weeks are gone. Cache-bust 17.
The api job ran npm test on a bare checkout. That was fine while the Coach tests needed
nothing, but api/coach/node-fetch.js imports undici now, so the first run after the return
to GitHub failed on ERR_MODULE_NOT_FOUND. Same install as test:api on GitLab.
docker-publish used to put latest on every main push, and — because a release run also
evaluated is_default_branch as true — on every release too; publishing thirteen releases at
once left latest on whichever build finished last. Now a release publishes X.Y.Z, X.Y and
latest, a main push publishes edge only, exactly like registry.gitlab.com.
The README, CONTRIBUTING, MOBILE and SELF_HOSTING pages said the GitHub repo was offline and
GitLab was the only home. The account is back: GitHub gets the tags, the releases v1.2.9 to
v1.3.5 with APK and checksum, the GHCR images and the Pages demo; GitLab keeps its CI, issues
and merge requests. Links now name both, the pages.yml comment no longer calls itself dormant.
build:apk was a manual job on main since it cost ~8 shared-runner minutes; the project runner
on the VM pays for it now, so every main push produces the APK (same key as the release,
artifact at /-/jobs/artifacts/main/browse?job=build:apk) and a broken Android build is caught
before the tag. Merge requests keep the manual button.
build:ios: mobile bundle + xcodebuild archive without a signing identity → unsigned .ipa
(AltStore/Sideloadly), tag builds also into the generic package registry opengym-ios/<ver>/.
Only exists once IOS_RUNNER_TAG names a registered Mac runner; untested until then.
Same capability, other direction. The child writes as `coach`, so its own
directories come out coach-owned -- and this process cannot unlink inside them
without CAP_DAC_OVERRIDE. fs.rmSync then throws EACCES from a `finally`,
which turns a run that actually succeeded into a failed one:
EACCES: permission denied, rmdir '/tmp/coach-test-XXXX/.claude/backups'
The child's user now clears its own files (argv array, no shell, paths from
this module's own mkdtemp) and the server removes the directory it still owns.
Best effort on both halves: a leaked temp directory beats a failed job.
Every Coach run failed instantly on Kubernetes -- "Claude Code native binary
... exists but failed to launch. This usually means the binary does not match
this system's libc" -- with a musl binary on a musl host, which the SDK's own
--version printed happily one shell command earlier.
The message is the Agent SDK's guess at any spawn failure. The real errno was
EACCES, and the cause is the job directory rather than the binary: libuv
chdir()s into cwd BEFORE dropping to the child's uid, so handing the directory
to `coach` locks out the very process that has to enter it first. mkdtemp
creates 0700, and `drop: [ALL]` leaves root without CAP_DAC_OVERRIDE to
ignore that with -- so the child never starts.
cf7e4cc fixed the same class of bug for the fixture provider by skipping the
chown when the child stays root. It does not help here: claude and codex do
drop, and the chdir still happens before they do.
The directory now stays owned by the server and `coach\' reaches it through
the group (0770, coach gid). The child writes, the parent still chdirs and
still cleans up, nothing else on the container can read it. chmod before
chown, while the server is still the owner: CAP_FOWNER is not in the set
either, so the other order fails with EPERM.
Verified in the running container: chown -> EACCES, group handover -> exit 0,
child writes, parent removes.
- Apply progression targets to each unfinished side
- Convert per-side weights and drops between kg and lb
- Preserve partially completed sets when finishing early
- Calculate volume from each side's actual completed work
- Keep L/R tracking for planned rest-pause sets
- Auto-complete the rated side when logging RIR/RPE
- Add regression tests for these flows
Validation: 1341 frontend tests passed; production build passed.
Reproduces issue #71 in the exercise picker: pick lower arms + dumbbell,
switch to upper arms, and assert the dumbbell filter stays selected since
both body parts have dumbbell exercises.
Selecting a body part after choosing an equipment type reset the
equipment filter to 'all equipment', even when the new muscle group
still had exercises for that equipment. The body-part chips called
setEq('') unconditionally.
Remove those resets from the per-body-part chips in the exercise picker
and the library. The existing eqOn fallback (eqOpts.includes(eq) ? eq : '')
already drops the filter for the current view when the new body part has
nothing under it, without discarding the user's choice. The 'All',
Favourites and Chosen chips still clear it, since they span every body part.
Fixes#71
The body-part and equipment filters in the Library (and the exercise
picker, the muscle explorer) are `.chips` rows that overflow sideways.
On a phone you swipe them; index.css hides the scrollbar. On a desktop
browser there was no way to reach the chips past the right edge — a
mouse wheel scrolls the page, and there's no visible handle.
lib/hchips.js adds a click-drag: press anywhere on a strip and pull it
along, the way a swipe does on a phone. One delegated pointerdown
listener on the document.
- 6px slop before a press becomes a drag, so a click still selects a chip
- the click the browser fires after a drag is swallowed, so releasing
over a chip doesn't toggle that filter
- mouse only (pointerType 'touch'/'pen' already scroll natively);
primary button only; non-overflowing rows are left alone
- grab / grabbing cursor as the hint, on rows that actually overflow
(data-xscroll, set on hover), gated to (hover:hover) and (pointer:fine)
Closes#68
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DBkhHLqWtSYrPdsNE11PiP
The printable one-page plan layout (lib/plan-share.js planPrintHTML) was
web-only: printPlan() renders it into a hidden iframe and calls
window.print(), which Android's WebView does not implement.
On mobile the same HTML is handed to the OS print flow via a small
first-party `Print` Capacitor plugin (one method, printHtml), which is
where the user picks "Save as PDF" / "Save to Files" or a real printer.
Web is unchanged.
- Android (PrintPlugin.java): load the HTML into an off-screen WebView and,
once loaded, drive it through the system PrintManager. A strong ref keeps
the WebView alive until the job spools. Registered in MainActivity next
to InstallPlugin.
- iOS (PrintPlugin.swift + .m): UIPrintInteractionController with a
UIMarkupTextPrintFormatter. Files added to App.xcodeproj.
- lib/mobile.js: printHtml() wrapper (registerPlugin('Print')).
- sheets.jsx: the MOBILE branch of "Print / Save as PDF" calls printHtml;
the web branch still calls printPlan.
No new dependency — the OS renders the PDF. Native code is not exercised by
the pipeline; run the manual APK job and check on device.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DBkhHLqWtSYrPdsNE11PiP
The /api location re-resolves BACKEND on every request, which needs a resolver
address, and that address was hardcoded to 127.0.0.11 — Docker's embedded DNS.
Nothing listens there on another runtime, and an unreachable resolver does not
fail fast: every /api request hangs until it times out, with nothing in the
error log to say why. On Kubernetes that means the app shell loads and the whole
API is dead.
RESOLVER now carries it, defaulting to 127.0.0.11 so Docker and every existing
compose file are unchanged. Kubernetes sets it to the kube-dns service address;
Podman to whatever its network provides. Documented next to the four other
render-time settings in SELF_HOSTING.md, since it belongs to the same "fitting
it into an existing stack" problem.