Skip to content

Octatrack base 0.7.11: a Part Edit menu row may leave itself or PART out - #1870

Merged
repeat98 merged 23 commits into
repeat98:base/octatrack-nextfrom
twwwy:base/part-menu-hide-part
Nov 21, 2026
Merged

repeat98 merged 23 commits into
repeat98:base/octatrack-nextfrom
twwwy:base/part-menu-hide-part

Conversation

@twwwy

@twwwy twwwy commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

What changed

Joins the cumulative Octatrack base 0.7.13 (#1910), since 0.7.11 and 0.7.12 shipped without it. The shared Part Edit window (FUNC+PART, table ot_part_menu) gets a second record version, with the owner's OK on the agent board (question 31ae5910, reply 88e3564e).

  • struct modwerk_part_menu_ask (menu.abi = MODWERK_PART_MENU_ABI_ASK, 2) wraps the existing record and adds an optional ask(). The base asks it each time the window opens. ABI 1 records are unchanged, and the new field sits in a wrapper so existing positional initializers still build under -Wextra -Werror.
  • ask() may answer MODWERK_PART_MENU_LEAVE_PART (PART's row is left out) or MODWERK_PART_MENU_LEAVE_ROW (the module's own row is left out). A module answers either one only while it holds its pages: an inactive module shows no row. PART comes back as soon as the last record that left it out is gone, even while other rows stay (the owner's host case: Kits removed beside Locks with the window open).
  • With PART left out and one row remaining, FUNC+PART opens a single popup drawn like stock's Part Edit popup, with that module's actions where PART's were, instead of a two-column window with one row. LEFT and RIGHT do nothing there; YES runs the action under the cursor.
  • If every row is left out, the stock window opens.
  • Base 0.7.13 1806a510ab7a85cff6d7c76bc2602787be2518c3d46acba60aa7571718a39788, rebuilt after merging the cumulative branch (Octatrack base 0.8: playback admission, saved effects, restore outcomes, stock OS fixes and screen capture, with FM Synth 0.1.5 and Tape Echo 0.1.9 #1910 at 024c677c6, its own 0.7.13 ae78c478) and current main (shipped 0.7.11 and 0.7.12, whose version records are kept): 814,060 of 851,712 container bytes, 37,652 free, +1,692 over 0.7.12. Packages re-bound; their bytes are unchanged. USB Audio's reviewed recipe takes the new hash of modwerk_events.h: a fresh capture has the same image hash and every reviewed span, so only that source hash changed. The base page's 0.7.13 row is Octatrack base 0.8: playback admission, saved effects, restore outcomes, stock OS fixes and screen capture, with FM Synth 0.1.5 and Tape Echo 0.1.9 #1910's; this change's note is changelog/2026-11-19-octatrack-part-menu-hides-part.md.

Its first user is Kits 0.1.1, which follows as its own pull request once this base lands and has run on a unit (PART hidden while a Kit is active, as Kits 0.1.0 and Octakit did; RELOAD KIT and RENAME KIT beside SAVE KIT).

How I checked it

  • python3 -B sdk/tests/test_machine_events.py: 18 tests pass, including test_part_menu.c on the host with new cases: LEAVE_PART, Kits removed beside Locks with the window open (PART back, Locks kept, RELOAD running as stock's; this case fails on the previous code), two records leaving PART out (it stays out until both are gone), ask returning 0 bringing PART back, LEAVE_ROW keeping PART, every row left out (stock window), the one-row popup (three actions, box position and shadow, LEFT/RIGHT ignored, YES runs the action, reopening on the row chosen), a removed module bringing PART back, and ask called once per open.
  • python3 -B sdk/machines/octatrack/events.py --check: generated files match.
  • Host renders of the cases from the base's own drawing code, shared with the developer before writing the change.
  • npm run pr:ready -- --author twwwy after the merge: pr:ready cannot say Ready on a branch built on the cumulative draft: it diffs against main, so it reports Octatrack base 0.8: playback admission, saved effects, restore outcomes, stock OS fixes and screen capture, with FM Synth 0.1.5 and Tape Echo 0.1.9 #1910's own hook 61 (ev_audio_frame_prepare, claimed by the owner) as this branch's. Against the PR's base, npm run board -- check --base upstream/base/octatrack-next says this branch adds nothing that needs a claim, and npm run check -- --base upstream/base/octatrack-next passed (218 s). The remaining pr:ready line is that this is not an automatic author update, so it is the owner's review. Its agent replay (bold-guides) passed.
  • Emulator rehearsal (adapted ot_emu, a development twin of an earlier build of this base (a36fff5d, before the fix and the merge of 0.7.12), cb8bca03…), with a local Kits 0.1.1 test package c1cb63e5… (abi 2 ask; not part of this pull request). Emulator results, not hardware evidence: see the edge-case rows marked emulator.

Not tested on a unit: the exact base 1806a510 has not run on an MKII yet. As the owner asked, the MKII run waits for the refreshed cumulative candidate with this fix; its development twin then runs with the Kits test package c1cb63e5… over the cases the owner listed. This stays a draft until then.

Edge cases

Case Why this change makes it a risk How run Result
A module answers LEAVE_PART, then stops answering it PART must come back on the next open, not stay hidden host test: ask returns 0 on the second open pass
The module that left PART out is removed or its trial ends its record and ask are gone while the window state remains host test: module removed, window reopened pass; on a unit: not run, no unit run of this base yet
The module that left PART out is removed while another module's row stays, window open the window must not keep PART hidden for a record that is gone (owner's host case at 41a56f1) host test: Locks and Kits, Kits removed with the window open; and two records leaving PART out, removed one at a time pass (failed before this fix); on a unit: not run
Every row is left out the window would open empty host test: stock window opens pass
One row left with PART out new popup drawing and keys: LEFT/RIGHT, YES, NO, the cursor's last row host test and host render pass; on a unit: not run
A LEAVE_ROW record next to one that wants PART LEAVE_ROW alone must never hide PART host test pass
An ABI 1 record (Pattern Sample Locks, Kits 0.1.0) beside an ABI 2 one both versions share the table and its order host test with both record versions pass
FUNC+PASTE+PART copying a Part with the window open or closed the window's key path changed not run not run: needs the unit; Kits 0.1.1's run covers it
The window open when the trial ends or Undo runs ask points into the module's code emulator: Kits trial rolled back with the window open (Kits off there) emulator: pass, see below; with Kits active on a unit: not run
FUNC+PART with every module row left out (Kits installed but off: no sample pages lent) ask answers LEAVE_ROW, so the window must be stock's emulator: Kits trial on the twin; the emulator lends no pages, so Kits is off (PART opens stock's Part window) emulator: pass, stock popup RENAME, RELOAD, SAVE, SAVE ALL; on a unit: not run
Kits' row alone with PART left out (Kits on) the one-row popup with SAVE, RELOAD and RENAME KIT on a unit, with Kits active not run: the emulator cannot make Kits active; next on the MKII
Kits removed or undone while the Part Edit window is open the record and ask disappear under an open window emulator: the trial rolled back with the window open; then DOWN and YES emulator: pass, the popup stayed stock's, DOWN moved to SAVE, YES saved Part 1 (PART 1 SAVED), inventory empty; with Kits active on a unit: not run
Stock PART actions after Kits is gone PART must come back as above, and the host test emulator: pass (SAVE ran); on a unit: not run

Guides

Guides: nothing. The hook contract in events.json (and HOOKS.md, generated from it) documents the new record version; the module-guides table row for the Part Edit window still describes it correctly.

🤖 Generated with Claude Code

twwwy and others added 3 commits November 20, 2026 20:18
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…out, and one row opens as stock's popup

A record of the new version (MODWERK_PART_MENU_ABI_ASK) carries an optional
question the base asks when the window opens. A module leaves PART or its own
row out only while it holds its pages (owner, board 88e3564e).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@repeat98

Copy link
Copy Markdown
Owner

The current cumulative 0.7.11 branch now has its own base and package identities from the project-load fix. Git reports conflicts in the generated base binding, variants, package list and size/version records. Please merge the cumulative branch before the MKII run and regenerate those files, so the run qualifies the build we can actually integrate.

On that build, please include opening Part Edit with all contributed rows hidden, a single visible Kits row, and removing or undoing Kits while the menu is open. Please record whether the stock PART actions remain reachable afterward.

@repeat98

Copy link
Copy Markdown
Owner

I reproduced one more Part Edit case on the host at 41a56f1. I opened the menu with Locks and Kits installed, with Kits hiding PART, then removed only Kits while the menu stayed open. LOCK SAMPLES became the first row and PART stayed hidden. The existing test passes because it removes the last contributor. With Locks still there, pm_clamp sees one row and keeps pm_lo set.

Please restore PART as soon as the last contributor asking to hide it disappears, even when another contributor stays, and cover that case in the host test. Both 0.7.11 and 0.7.12 have shipped since the earlier review. Please save the MKII run for the refreshed cumulative build with this fix.

twwwy and others added 14 commits November 21, 2026 15:22
pm_clamp only restored PART when no row was left, so removing Kits beside
Locks with the window open kept PART hidden. Remember which records left
PART out and restore it as soon as none of them is in the table; the host
test covers Kits removed beside Locks and two records leaving PART out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…se 0.7.13

Generated base files regenerated on main's side. USB Audio's reviewed recipe
takes the new modwerk_events.h hash; its image and spans are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Show zero direct DSP cycles for verified ColdFire modules

* Publish Octatrack hardware measurements and kilobyte gauges
…/part-menu-hide-part

# Conflicts:
#	sdk/machines/octatrack/base-binding.json
#	sdk/machines/octatrack/base-sizes.json
#	sdk/machines/octatrack/base-versions.json
#	sdk/machines/octatrack/module-adapters/controller-policies.json
#	sdk/machines/octatrack/module-adapters/usb-audio-reconstruction.json
#	src/components/BaseChangelog.tsx
#	src/engine/assets/octatrack-base-fills.json
#	src/engine/assets/octatrack-base-sources.json
#	src/engine/assets/octatrack-base-variants.json
#	src/engine/assets/octatrack-base.elemod
#	src/engine/assets/octatrack-module-packages.json
Generated base files and base-bound packages regenerated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants