Repository navigation
Conversation
…em after a USB error A member who leaves diagnostics sharing off had no trail of a failed sync, install or base update: the link dropped every diagnostic event when nobody listened (octatrack-link.ts diagnostic()), and Report a problem asked for what the Octatrack runs by hand. The link now keeps its last 100 diagnostic events in the page's memory (link-trail.ts), the same records shared diagnostics carry, whether or not the member shares. Nothing is sent by itself; shared diagnostics go to the same listeners as before, and the EP0 counter read stays for sharing only. - Copy details and Save report beside the link, sync, self-test and base update errors (SupportActions): what failed, the base with its layout, the model text and the events, readable and as JSON lines (support-report.ts, parseSupportFile reads a saved file back). - Report a problem fills in "It is running" and the last error, and offers the recent events as an attachment the member sees and can remove. The Worker checks each event against the shared diagnostics' rules and puts them in the GitHub issue beside the log. - A failed base update names the layout when two bases share a version (describeBase, moved to base-variants.ts). - Privacy page and the Diagnostics section say what the page keeps locally. - ?preview=usb-link&refusal=7 shows a refused sync with the new actions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Worker renders and checks attached USB events with it, so it is shared code under the same licence as the diagnostics contract; notices regenerated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
A member who keeps diagnostics sharing off can now hand over what went wrong over USB: Copy details and Save report sit next to every link, sync, self-test and base-update error, and Report a problem fills in what the link knows and offers to attach the recent USB events. Nothing is sent by itself. Members who share diagnostics see no change in what is sent. Site and Worker only: no base, no module, no unit run needed.
octatrack-link.tsdiagnostic()returned early). A member who doesn't share had no record of a failed sync, install or base update and could only describe it in words. After a failed sync, Report a problem asked for what the Octatrack runs by hand. Also, a failed base update that only changed the USB Audio layout said "came back on base 0.8.1, not the new one", because the three throws named the base by version only.link-trail.ts), whether or not the member shares. They are the same records shared diagnostics carry (numbers, codes, hashes, no names). A reload clears them. The sharing path is unchanged: the same listeners get the same events. The EP0 counter read before a sync still happens only when sharing is on, so a member who doesn't share gets no extra USB request.SupportActions(Copy details, Save report) appears next to the hub's link error, a failed sync in the sync dialog, a failed self-test, a failed base update or USB Audio change, and the install guide's connect error. Copy gives what failed, the message, the base with its layout, IDENTIFY's model text, the browser family and the last 20 events. Save writes a.txtfile: readable lines first, then the same data as JSON lines, whichparseSupportFilereads back (support-report.ts).OCTATRACK 1.40C), not MKI or MKII. Recent events are attached by default; the dialog shows the base with its layout and the event lines, and Remove USB events takes them out. They go only with Post report, through the same/api/configuration-reportsrequest. The Worker checks each event against the shared diagnostics' rules (validateDiagnostic) and refuses anything else (server/support-attachment.ts). The events are stored with the report's configuration and appear in the GitHub issue as a collapsed block next to the log. The form's notice now says that attached USB events are published too.describeBasemoved fromUnitPanel.tsxintobase-variants.tsand names the base in the three base-update errors, so two layouts of one version read e.g. "0.8.1 (USB Audio off)"./?preview=usb-link&refusal=7makes the pretend unit refuse every sync (a module in use), so the failed sync dialog shows its Copy details, Save report and Report a problem.src/dev/octatrack-link-fake.ts):link-trail.test.ts(7: a refused sync is kept with no listener; EP0 is read only when sharing; bounded and copied; unit and base kept while the unit is away; pre-link failure shaped like the shared record;describeBaseon a release with all seven layouts),support-report.test.ts(6: copy text, newest 20 only, save and parse round trip, the Worker accepts a real trail and refuses free text, names, extra fields, other events, more than 50, bad model or layout; the GitHub block sits beside the log within 60,000 characters),SupportActions.test.ts(4, jsdom: copy and save send nothing; a clipboard refusal says "Copy failed"; Report a problem prefills, shows, removes and re-attaches the events and posts them only on submit), and a new case inconfiguration-report-flow.test.ts(events reach the GitHub issue; a tampered event gets a 400 and stores nothing). The suites around it pass: 19 files, 332 tests (link, base variants, LoadDialog, hub, install guide, overview, unit panel, diagnostics, configuration reports, privacy, issues, App guide).npm run pr:ready(merged main at 470f568): every check passed except one test outside this change,src/components/ModuleCaution.test.ts("reserves Heavy CPU for POLY8 and Grain…"), which still expects SYNTIZ to read High CPU after SYNTIZ 0.1.1-experimental: cheaper on the ColdFire while it plays #1978 changed its performance evidence on main. That test fails on main too and needs its ownFix:. It also neededsupport-report.tslisted as shared site and Worker code inLICENSES/platform.json(notices regenerated), because the Worker imports it./modwerk-diagnosticsonly knew shared records. It now says a member who doesn't share can hand over Copy details, a savedmodwerk-support-*.txtor a report's USB events block, read withparseSupportFile(both skill copies).docs/APP_DEVELOPMENT.mdis over 40 KB, so its private diagnostics section was left alone; the code comments inlink-trail.tsandsupport-report.tscarry the rule.Notes for review
noteErrorkeeps the last error text the page showed (link notices and the dialogs' own errors) only to prefill the editable "What happened?" field. It never goes into the attachment or the saved JSON lines.link_failedevent in the trail can carry the base while a trial reconnects. The attachment strips it to{event, phase, failure}, the same shape the collector shares, so the Worker's check takes it.SUPPORT_ATTACHMENT_BYTES(48 KiB), and the attachment is capped at 50 events.🤖 Generated with Claude Code