Skip to content

Octatrack base 0.7.13: Part Edit's one-row popup draws its names, and stock gets its keys back - #1947

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

repeat98 merged 2 commits into
repeat98:base/octatrack-nextfrom
twwwy:base-part-menu-fixes

Conversation

@twwwy

@twwwy twwwy commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

For the 0.7.13 cumulative draft (#1910), per #1919. Two faults in the Part Edit work from #1870, found on an MKII with Kits 0.1.1 on the combined build 30196561f.

What was wrong

  • The one-row popup drew no text. With Kits alone installed, FUNC+PART showed the popup's box and its cursor bar but no row names. mw_part_menu_draw loaded the text surface (pm_surface, which holds the frame pointer) only after the one-row branch had returned, so pm_draw_list wrote its text through a surface that was never set: frame pointer 0. The rows still worked (YES on the first opened SAVE KIT's list).
  • Arrow keys dead after removal. With the window open when the last contribution goes (a trial rolling back, an Undo), stock's window showed again, but pm_shown stayed set. The base kept taking UP and DOWN for a hidden two-column cursor until NO closed it. The host test asserted this behaviour (press(PM_UP) taken after table[0] = 0).

The fix

  • PM_BIND(frame) binds the text surface before either drawing.
  • With no row shown, the key handler, LEVEL and the UI tick hide the base's window and hand the key to stock.
  • test_part_menu.c: the host model records a text as drawn only after the frame is bound, and the removal cases now expect stock to get the key, LEVEL and the next tick. It fails 11 checks on the previous code and passes on this one.
  • Base 0.7.13 rebuilt: 40f1dd938942e77046328c79c73ca318d32dd6e95e2f035257b978325dacd881, 820,992 of 851,712 container bytes. The five base-bound packages keep their bytes and name the new base. The changelog entry for this Part Edit change now says the popup draws its names and stock's keys come back.

Tested on a unit

Tested on a unit: base 5b9c4b1e, MKII, the development twin of this source (--dev): Kits 0.1.1 alone, beside kept Pattern Sample Locks 0.1.9, and removed or undone with the Part Edit window open.

Not tested on a unit: the committed release image 40f1dd93 (the same source without --dev); it was verified with npm run octatrack:base -- --beta but not booted.

Octatrack MKII, OS 1.40C, development twins RAM-booted (build_core.py with the beta flags and --dev), every install a trial unless named; nothing flashed.

  • Before the fix, twin 3c17ad15 of 30196561f:
    • Kits 0.1.1 c1cb63e5 alone: the popup's rows were blank.
    • After the trial rolled back with the window open, stock's window showed, but DOWN did nothing three times.
  • With the fix, twin 5b9c4b1e:
    • Kits alone: FUNC+PART draws SAVE KIT, RELOAD KIT and RENAME KIT, and DOWN moves through them.
    • Rollback with the window open: stock's window, DOWN and UP move (RENAME, SAVE, RENAME).
    • Locks and Kits as one set trial, then Ctrl-C (Undo) with the window open on LOCKS' actions: stock's window, DOWN to RELOAD, YES showed PART 1 RELOADED.
    • No crash, stall, freeze or skipped track in any verdict.
  • Developer's report (twwwy), twin 5b9c4b1e, Pattern Sample Locks 0.1.9 6fea272e kept, Kits 0.1.1 as a trial beside it: "they all works. the menu works too".

Not run: Kits left inactive with every row hidden (Kits was on in this project), and a power cycle with the base flashed. The twin is the source of this PR plus --dev; the committed base 40f1dd93 was verified with npm run octatrack:base -- --beta but not booted.

Edge cases

Case Why this change makes it a risk How run Result
One-row popup drawn Text goes through the stock text routine and its surface MKII, Kits alone; host test checks the frame is bound before any text Pass
Last row removed with the window open The base must stop taking stock's keys MKII rollback and Ctrl-C with the window open; host: key, LEVEL, tick Pass
A row left while PART comes back (Locks stays) Hiding must happen only with no row left Host case (Kits hiding PART beside Locks, then Kits removed) Pass
Window reopened after removal The remembered row must still apply Host: reopens on the row used last Pass
Two-column window with Locks and Kits Unchanged path; must still draw and take keys MKII, developer's report Pass (reported)
Every row hidden Unchanged path Host test Pass; not run on the unit

Checks

  • npm run check -- --base upstream/base/octatrack-next: passed (227 s).
  • npm run board -- check --base upstream/base/octatrack-next: nothing needs a claim.
  • pr:ready diffs against main, so on a branch of the cumulative draft it reports the draft's own changes as this branch's. It was not run.

What the guides lacked

sdk/octatrack/modules/kits/TESTING.md already says a whole-set trial keeps Kits inactive until Keep (modwerk_runtime_set_busy). I missed it and tested Kits beside Locks in a set trial first, where Kits was simply off. Nothing else was missing.

🤖 Generated with Claude Code

twwwy and others added 2 commits November 22, 2026 01:42
… the last row goes

The one-row popup drew its box but not its rows: the text surface was bound only after that branch returned,
so PM_TEXT wrote through an unbound surface. And with the window open when the last contribution was removed,
stock's window showed while the base still took its arrow keys. Both seen on an MKII with Kits 0.1.1; the host
test now binds the frame before any text and hands keys, LEVEL and the tick back to stock with no row left.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Base 40f1dd93 (820,992 of 851,712 container bytes). The five base-bound packages keep their bytes and name the new base.

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

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing the Part Edit popup. Base changes aren't merged as their own pull request: the owner releases the base from one open draft after testing it on the unit, and that draft is #1910 (Octatrack base 0.7.13). Please move this change there, or turn this into a draft and tell us how it should be combined with #1910. Please also add your test record (see docs/TEST_PROCEDURE.md), and run npm run pr:ready after merging main so the red checks can be looked at.

@repeat98
repeat98 merged commit fdae0fa into repeat98:base/octatrack-next Nov 21, 2026
17 of 19 checks passed
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