Skip to content

Model:Cycles: a Status page over the link - #2131

Merged
repeat98 merged 8 commits into
mainfrom
site/model-cycles-status
Nov 26, 2026
Merged

repeat98 merged 8 commits into
mainfrom
site/model-cycles-status

Conversation

@repeat98

@repeat98 repeat98 commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

The Model:Cycles gets a Status page, the recipe's fifth step. Your Model:Cycles (#model-cycles/unit, beta only, linked from the machine page) connects over Web MIDI and shows the base the unit runs, the modules loaded on it and its audio load. It reads all three over the link every two seconds and lays them out in the same console cells as the Octatrack's and the Zoom pedal's Status.

#2077, #2125 and #2126 are on main, and main is merged in (26 November 2026), so the diff is this page alone. A second commit fixes the machine page's button: it asked useBetaUi, the Octatrack base path's context, which is open to everyone since that base's release, so every visitor saw a button to a page only beta testers can open. It asks hasBetaUi now, as the build preview beside it does, and core-build-preview-gate.test.ts checks it (it fails on the old code).

  • What works:
    • Against a simulated unit in the tests: the base and its set identity, the live modules and the module memory, and the load meters and chart.
    • A base without the loader or the load probe says what it lacks.
    • A unit that doesn't answer the link reads as "no Modwerk base", with a link to build one. Missing MIDI says which browsers work.
  • What is broken: nothing known, but it hasn't run against a real unit.
  • What it means musically: nothing you hear. You can see what your Model:Cycles runs and how busy its audio is.
  • Ran on a unit: no. There is no Model:Cycles at this computer.
  • Who must act: @durchgemacht, please open the page against your unit on the release base ec928894 and tell me what it shows. Every base now answers ident, mods and load, so the page reads release and development bases alike.
  • Next: that check on a unit.

Not tested on a unit: no Model:Cycles at this computer; the reads are the ones #2126 ran on durchgemacht's unit, now over one line.

Edge cases

Case Why this change makes it a risk How run Result
A base with modules and the load probe the page parses ident, mods and load from one line ModelCyclesUnit.test.ts with a simulated unit pass: set f2fe7324, frames, 63.6 KB free, 73.8 %
A base without the loader or the load probe it refuses mods and load as a bad request simulated unit that refuses both pass: says what the base lacks
Stock OS or a base without the link no reply to ident simulated port that never answers pass: "no Modwerk base", link to build
No Model:Cycles, or two findUnit needs exactly one port pair empty MIDI access pass: "No Model:Cycles over USB"
The page open while an agent loads a module the page's requests every two seconds go between the MCP's parts not run not run: needs a unit
A real unit in Chrome Web MIDI with SysEx in the browser not run not run: no unit here
A visitor on a released build the button must not lead a visitor to a page they can't open core-build-preview-gate.test.ts with USB_LINK off pass: no button for a visitor, a button for a beta tester

Guides: the recipe row and the Model:Cycles guide name the Status page; nothing was missing for this change.

What the commit adds
  • src/components/ModelCyclesUnit.tsx: the page. It reuses Meter and LoadChart from OctatrackLoad.tsx and the hub layout from octatrack-link.css. The three meters show audio now, the busiest block now and the busiest block since power-on. The cells hold the base, the module memory and the live modules.
  • mc-link.ts: readMcStatus reads ident, mods and load over one line, and treats a bad-request refusal as "this base lacks it".
  • App.tsx, beta.ts, registry.ts (MC_UNIT_ROUTE), MachinePages.tsx: the route, the lazy load and the button on the machine page, all beta only.
  • machine.json stack status started, the recipe row, the guide and a changelog entry.
  • Checks: npm run pr:ready (26 November 2026): every app check passed (3,427 tests); sdk:check failed here only because this computer lacks m68k-elf-readelf, and this pull request changes no SDK code. After merging Improvement: Model:Cycles downloads for beta testers #2230, the related suites and tsc again.

🤖 Generated with Claude Code

repeat98 and others added 2 commits November 24, 2026 18:01
…page

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Your Model:Cycles (#model-cycles/unit, beta): the base the unit runs, its live modules and its audio load, read over the USB MIDI SysEx link every two seconds (readMcStatus: ident, mods and load over one line), in the Octatrack's console cells. A unit that does not answer the link reads as having no Modwerk base, with a link to build one.

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

Copy link
Copy Markdown
Contributor

Done as you asked on #2077: every Model:Cycles base now carries ident, mods, the loader, load and the log (new log request 0x24, log only, no mem needed). mem, keys and the RAM boot are dev-only. Release base 4d4d91d2 (≈150 KiB of the 256 KiB mod area), its image tested flashed incl. the loader edge cases and Transfer beside the link. #2125 pins it (kit build byte-identical), #2126's device_log uses log. ident/mods replies unchanged.

@durchgemacht

Copy link
Copy Markdown
Contributor

Works on my Model:Cycles. Release base 4d4d91d2, image ec928894 flashed, the page at 7edea6a run locally in Chrome:

  • Connected · Modwerk base · 0 modules
  • Base: Set 15eddb5a · 38052 bytes
  • Module memory: 64.0 KB free
  • Audio load around 70 %, chart updating
  • A module on trial (mc_link.py try hello.mwrm --seconds 30): "1 module" with hello in the list, then back to 0 after the undo

Not run: the page open while the MCP loads a module, and Edge.

# Conflicts:
#	docs/MACHINE_RECIPE.md
#	sdk/machines/model-cycles/README.md
# Conflicts:
#	docs/MACHINE_RECIPE.md
#	sdk/machines/model-cycles/README.md
npp1993 added a commit that referenced this pull request Nov 26, 2026
…modules and the load over the link (#2131's page for both machines)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
repeat98 and others added 4 commits November 26, 2026 10:03
#2077, #2125 and #2126 are on main now. The recipe row, the README and
the machine page keep main's wording and add the Status page back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The machine page asked useBetaUi, the Octatrack base path's context,
which is open to everyone since that base's release, so every visitor
saw a button to a page only beta testers can open. It asks hasBetaUi
now, as the build preview beside it does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	docs/MACHINE_RECIPE.md
#	sdk/machines/model-cycles/README.md
@repeat98

Copy link
Copy Markdown
Owner Author

@durchgemacht #2131 is ready to test. It's up to date with main now that #2077, #2125 and #2126 are in.

gh pr checkout 2131, npm ci, npm run dev, then in Chrome with the unit on USB open the Model:Cycles machine page and click Your Model:Cycles (a dev build shows the beta pages). It should show the base, the loaded modules and the audio load. A screenshot of what it shows is all I need.

One more, since beta testers can now download the base from the site (#2230): recovery from the Modwerk base has never been run. With the Modwerk base on the unit, hold FUNC while powering on, press TRIG 4 (OS UPGRADE), and send your stock OS 1.13 .syx to MIDI IN on the TRS jack (a DIN interface through a TRS-to-DIN adapter). Does it come back on stock 1.13?

🤖 Generated with Claude Code

@repeat98
repeat98 marked this pull request as ready for review November 26, 2026 11:02
@repeat98
repeat98 merged commit 24a9cea into main Nov 26, 2026
27 of 28 checks passed
npp1993 added a commit that referenced this pull request Nov 26, 2026
…main, Octatrack base 0.8.2): the Rytm's unit page and diagnostics fields kept, main's beta gate on machine pages carried to the ladder link

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