Skip to content

Fix: an Octatrack sync refused as in use names the effect, track and slot - #2456

Merged
repeat98 merged 3 commits into
mainfrom
fix/sync-in-use-precheck
Nov 30, 2026
Merged

repeat98 merged 3 commits into
mainfrom
fix/sync-in-use-precheck

Conversation

@repeat98

@repeat98 repeat98 commented Nov 30, 2026 •

Copy link
Copy Markdown
Owner
  • What was wrong or hard: 83 USB syncs on 42 units (31 Oct to 30 Nov 2026) were refused because a track was using a module the sync changes or removes. Most people tried again within 30 minutes: they were hunting for the track. The message named the modules but not where they were.

  • What this changes: After such a refusal the message now names the effect, the track and the slot when the base reports it (base 0.8.2 and later): "Track 3 runs Tape Echo as its FX2 effect, and this sync updates it, so the Octatrack can't change it now. Pick another effect for FX2 on Track 3, then sync again." Without a slot it gives one hint per kind of module: a machine the sync takes out gets "look in all four Parts of this bank and save each Part you change"; a machine the sync only updates gets "no page of it may be open"; effects get "look for X as an effect on the tracks". The base checks Parts only for machines that leave (machine_admission.c), so updated machines no longer get the Parts advice. A real check before the sync needs a base request that does not exist yet (owner's decision, not in this PR).

  • How I checked it: npm run pr:ready. Tests with the pretend Octatrack: slot 14 names track 6 FX2; slot 3 names Tape Echo and "updates"; a set with slot 10 names only the effect, not the machine; slot 0 gives the Parts hint for a removed machine and the effect hint for an effect; an updated machine gets the open-page text; at most five names. Reviewed by a second agent; its finding (Parts advice for updated machines) is fixed.

  • Tested on a unit: base ad5835d6 (development twin of 0.8.5), MKII, 30 Nov 2026. With Tape Echo and FM Synth kept on the twin, this branch's OctatrackLink sent the syncs and the unit refused them, as 0.8.4 does. Tape Echo on T3 FX2 gave "Track 3 runs Tape Echo as its FX2 effect, and this sync removes it…". FM Synth on Part 2 T5 (working copy) gave the all-Parts advice. The unit came back each time with its set unchanged.

  • Edge cases:

Case Why this change makes it a risk How run Result
Effect in use, slot reported The slot-to-track mapping must be right (FX1 1-8, FX2 9-16) Test; twin ad5835d6, Tape Echo on T3 FX2 pass
Machine in use in an inactive Part Must give the Parts advice, not a wrong track Test; twin ad5835d6, FM Synth on Part 2 T5 pass
Machine only updated Must not send people to the Parts Test pass
Base before 0.8.2 (no slot) Falls back to the hints Test pass
  • What the guides lacked or got wrong, and where I fixed it: nothing.

🤖 Generated with Claude Code

repeat98 and others added 3 commits November 30, 2026 10:01
…t, and the Parts for a machine

The base reports the effect slot after refusal 7 (0.8.2 on) but no read of a
release base tells the site beforehand what each track runs, so no pre-check
is possible without a base change. The refusal text now names the effect in
the reported slot (machines never run there), says whether the sync updates
or removes it, and without a slot points machines at the bank's four Parts,
working and saved (machine_parts.c), effects at the tracks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s out to the Parts

The base checks the bank's Parts only for machine package members that leave
(machine_admission.c `dropped`) or a contributed machine whose signature changes
(machine_contributors.c same_machine). A member updated in place is refused only
while one of its pages is open (machine_ui_lifetime). The change now lists the
members it takes out (`holds`) apart from the ones it updates (`keeps`), and the
refusal text gives the Parts hint to the first and an open-page hint to the second.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the bug Something isn't working label Nov 30, 2026
@repeat98

Copy link
Copy Markdown
Owner Author

Ran on the owner's Octatrack MKII (30 Nov 2026): the refusal message now names the track and slot, and the unit comes straight back. Scrap project, no audio judged.

What ran
  • Base: development twin ad5835d6 (the dev build of cumulative 0.8.5 ddb56b72), with Tape Echo 0.1.9 and FM Synth 0.1.5 installed and kept on the twin.
  • Driven through: this branch's OctatrackLink, via the developer tool service. This branch does not know the base's new IN USE pre-check, so it sends the sync and the unit refuses it, exactly as on 0.8.4.
Case Result
Tape Echo on T3 FX2 (Part 1), sync a set without Tape Echo Refused (code 7). Message: "Track 3 runs Tape Echo as its FX2 effect, and this sync removes it, so the Octatrack can't change it now. Pick another effect for FX2 on Track 3, then sync again. If another track runs it too, the next sync names that one." Unit back to normal, set unchanged
FM Synth on T5 in Part 2 (working copy, not saved), Part 1 active, sync without FM Synth Refused (code 7). Message ends: "Look for FM Synth as a track's machine in all four Parts of this bank, and save each Part you change: the Octatrack checks the saved Parts too." Unit back to normal
  • Not run: the "updated machine with its page open" text, and a base before 0.8.2 without the slot.

🤖 Generated with Claude Code

@repeat98
repeat98 marked this pull request as ready for review November 30, 2026 13:12
@repeat98
repeat98 enabled auto-merge (squash) November 30, 2026 13:12
@repeat98
repeat98 merged commit ef36175 into main Nov 30, 2026
26 of 27 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