Repository navigation
Fix cuecue osc-output and the bugs that could stop a show - #6
Merged
Merged
Conversation
It imported an OscOutput that @cuecue/osc doesn't export and never opened its OSC client. It now sends the message, prints it, and exits with an error code when sending fails. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- app: output failures are caught and logged (new logger option), and so are failed commands from inputs; reset after end is ignored; a cue's duration stops when another cue starts, and 'next' uses the session's cues - outputs return their promises, so the app can catch their failures - pubnub and socketio inputs emit the transformed command - socketio ServerOutput sends to the namespace transformCommand returns - osc plugins can be destroyed before init - store-mysql: a pool of one connection, no crash on connection errors, destroy() works 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.
Fixes
cuecue osc-outputand the bugs that could stop a show. Each bug was reproduced first (a test, or a script on the built packages), and each new test fails without its fix.cuecue osc-outputIt imported an
OscOutputthat@cuecue/oscdoesn't export, never opened its OSC client, and calledsend(…, callback)andclose(), which don't exist. It now sends the message, prints it, and exits with an error code when sending fails. Tested with a node-osc server, and with the built command.What could stop a show
cue(),interact()…, and the app didn't await its sends: a rejection was unhandled, and Node exits on it. AnHttpOutputto a server that is down stopped the app atstart(). Now:Application#sendToOutputs(), which catches and logs each failure (newloggeroption,consoleby default) without stopping the other outputs;Error(status.erroristrue, not an error);resetafterendstopped the app (this.sessionisnull), for example withPOST /commands {"command":"reset"}.resetandresetInteractionsare now ignored without a session, and so is the recovery ofonIdlewhen the session ended meanwhile.errorevent, which stops the process, anddestroy()always threw (this.debug is not a function, and a transition inside another one). The store now uses a mysql2 pool of one connection (same order of queries as before), which replaces a lost connection;destroy()ends it;autoConnectconnects afterinit().Wrong results
durationuncued the next cue: cue A (duration: 1), then cue B before A's end → B was uncued a second later. The duration now stops when another cue starts, and it is one timer instead of a check every 10 ms.after_duration: 'next'goes to the next cue of the session, so cues added withdefinecount.transformCommandthat renamesgotocuegave["go", "intro"]. They now emit the transformed command.ServerOutputpassed the message as the namespace whentransformCommandreturned one.init().Not changed
POST /commands(like the app's defaultvalidateCommand) still acceptskill, without authentication.HttpInputstill has a hardcoded session secret.Checks
npm run format:check,npm run lint,npm run build,npm test: 82 tests on Node 24; 72 pass and 10 are skipped on Node 22. The scripts that stopped the process (HTTP output down,resetafterend, MySQL down) now keep it running. Changesets:fix-cli-osc-output.md,fix-show-stoppers.md.🤖 Generated with Claude Code