Repository navigation
refactor: untangle Top 5 + MIDI chain-wipe fix + guard rails - #23
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Snapshot of every audio:* handler's fallbacks (I-004), desktop config read/write (I-002), plugin clone harness (I-006), tone switcher parity across both IIFEs (I-003), and a test-file inventory (I-001). Each guarded spot was broken on purpose and the matching test failed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Only paths change (one more '..', contracts/ import). test-inventory now checks the two lanes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
npm test now means the fast lane; test:engine runs tests/engine/ on demand. No new jobs, nothing added to build or release workflows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Code moved unchanged; main, pane-hosts and python import it from there, soundfont-manager re-exports SoundfontQuality. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…desktop config
Reads still treat a bad file as {}; the next write now saves the old bytes
as slopsmith-desktop.json.corrupt first, so window bounds, LAN access and
pane settings can be recovered.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
clone_slopsmith now returns non-zero when any plugin clone fails (ALLOW_MISSING_PLUGINS=1 keeps the old behaviour), and the desktop plugin copy no longer swallows errors; only the optional .html is skipped when absent. All 38 plugin repos/branches checked reachable. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ddon() setOutputDeviceType, getDeviceMetrics, scoreChord, setChart, listInputDevices, listSources and detectNotes now share one guard / try / warn / fallback helper. Handler snapshot unchanged; IPC contract snapshot unchanged. Handlers that validate arguments, swallow errors silently or have no try are left as they are. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rialise the song preload - bypassSwitchToTone / makeMidiToneSwitcher in IIFE 1 replace the two bypass and three MIDI switcher copies (IIFE 2 uses the window exports). - IIFE 2's bypass switcher now carries tonePresetNameMap like IIFE 1's, so the chain panel's preset-name lookup works for those songs too. - IIFE 2's song preload runs under the same chain lock as tone-mapping applies (window._aeWithToneChainLock), re-checking the song generation after the wait, so two rebuilds no longer clear/load the chain at once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ARCHITECTURE.md (layout + 8 rules), tests/boundaries.test.js enforcing them in the fast lane (CI), a pre-commit guard script with npm run hooks:install, CLAUDE.md conventions, CONTRIBUTING.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
songShouldRebuildChain() said yes whenever the song's bypass mappings resolved, even with a valid MIDI PC config for the song. Playback then takes the MIDI path (program changes to an existing VST, no rebuild), so the song-start clear deleted that VST and nothing put it back. A valid MIDI PC config now keeps the chain; Tone Automation still takes precedence. Checked in the packaged app: the VST stays through load and tone changes, program changes reach it; bypass mode still rebuilds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What
A structural cleanup that keeps behaviour the same (codebase-untangler), plus one bug fix. The audit is in
REFACTOR_AUDIT.mdand the handover is in.untangler/HANDOVER.md.Top 5 fixed:
tests/engine/.npm testnow runs only the fast lane, and CI gets a ~2 s "Fast tests" step.desktop-config.ts. An unreadableslopsmith-desktop.jsonis kept as.corruptinstead of being silently replaced.ALLOW_MISSING_PLUGINS=1to opt out.callAddon()replaces 7 copies of the guarded addon handler.Bug fix (60218a7): MIDI program-change mode no longer wipes the effect chain when a song loads.
Guard rails:
ARCHITECTURE.mdtests/boundaries.test.jsnpm run hooks:install)CLAUDE.mdCONTRIBUTING.mdVerification
tscis clean.Stacked on the heard-clocks PR.
🤖 Generated with Claude Code