Skip to content

Fix: a sync before the Octatrack's restore says the saved modules are still loading - #2129

Merged
repeat98 merged 2 commits into
mainfrom
fix/octatrack-sync-before-restore
Nov 24, 2026
Merged

repeat98 merged 2 commits into
mainfrom
fix/octatrack-sync-before-restore

Conversation

@repeat98

Copy link
Copy Markdown
Owner

What works now: a sync sent in the first moments after the Octatrack starts, before it has loaded its saved modules, says so: "The Octatrack hasn't loaded its saved modules yet, so nothing changed." It asks to wait until Status shows them, then sync again if anything is missing. What was broken: the site said "The Octatrack can't run this module file", although nothing was wrong with the modules and the unit loaded them moments later. Who must act: nobody beyond review; it is a site change and works with every base in the field. On a unit: not run (site message only, see below).

  • What was wrong or hard: right after a start, before the base's restore has run, the base refuses every change and gives no loader refusal: modwerk_modset_check_set (sdk/machines/octatrack/elekloader/modset.c) returns 0 with RUNTIME_OK while !restored. The site then fell back to the plain "can't run this module file". Shared diagnostics have five such sync failures in 30 days, on three units (bases a6b457a1, 94101a5a and 0.8.1 eb667962). Each came right after a health reading with saved 0 and nothing live, and in each the restore brought back the same modules 2 to 98 seconds later. Musically: a player who had just switched on synced their whole set again, was told the module file was bad, and then had everything back anyway.
  • What this changes: after a rejected sync the link already reads the self-test record for the loader's refusal. It now also reads that record's saved (0 until this start's restore has run, in every base since 11 October 2026). A rejection with refusal 0 and saved 0 gets the new message. Every other refusal keeps its own text. The fake unit gains restoring to model it.
  • How I checked it: a new test in octatrack-link.test.ts reproduced the old message and passes with the change. All 30 test files in src/engine/elekloader/ and src/dev/ pass (521 tests). npm run pr:ready passed.
  • Tested on a unit: Not tested on a unit: the change is the site's message only. No built package or base changes, and the field records above show the base state it reads.
  • Edge cases: none, because no built package or base changes. A rejection with refusal 0 after the restore has run (saved not 0) still shows the plain text. The test for refusal 1 with saved 0 still gets the plain text.
  • What the guides lacked or got wrong, and where I fixed it: nothing.
Possible base follow-up (not in this pull request)

The base could report RUNTIME_BUSY instead of RUNTIME_OK while !restored. Then the site's three-second busy retry would also cover the usual few seconds after a start. That is a base change for the 0.8.2 draft (#2079) and needs a unit run. This site fix already covers every base in the field.

🤖 Generated with Claude Code

… still loading

Right after a start, before the base's restore has run, the base rejects every change
with no loader refusal (modset.c modwerk_modset_check_set) and its record's saved is 0.
The site showed "The Octatrack can't run this module file". Shared diagnostics had five
such failures on three units in 30 days, each followed within seconds to a minute by the
restore bringing back the same modules. The link now reads that state and says to wait
until Status shows the saved modules.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the bug Something isn't working label Nov 24, 2026
@repeat98
repeat98 enabled auto-merge (squash) November 24, 2026 17:00
@repeat98
repeat98 merged commit 57bce90 into main Nov 24, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant