Repository navigation
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 intoNov 21, 2026
Conversation
… 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>
Contributor
There was a problem hiding this comment.
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
merged commit Nov 21, 2026
fdae0fa
into
repeat98:base/octatrack-next
17 of 19 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
mw_part_menu_drawloaded the text surface (pm_surface, which holds the frame pointer) only after the one-row branch had returned, sopm_draw_listwrote 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).pm_shownstayed 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 aftertable[0] = 0).The fix
PM_BIND(frame)binds the text surface before either drawing.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.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 withnpm run octatrack:base -- --betabut not booted.Octatrack MKII, OS 1.40C, development twins RAM-booted (
build_core.pywith the beta flags and--dev), every install a trial unless named; nothing flashed.3c17ad15of30196561f:c1cb63e5alone: the popup's rows were blank.5b9c4b1e:PART 1 RELOADED.5b9c4b1e, Pattern Sample Locks 0.1.96fea272ekept, 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 base40f1dd93was verified withnpm run octatrack:base -- --betabut not booted.Edge cases
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:readydiffs againstmain, 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.mdalready 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