Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedBot user detected. To trigger a single review, invoke the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Co-authored-by: rcarteraz <6912600+rcarteraz@users.noreply.github.com>
danditomaso
left a comment
There was a problem hiding this comment.
Thanks for the PR. Fundamentally I'm always against error booleans because it makes impossible states possible. A better approach is to expand the enum to include the generic error and base the UI on that.
Impossible state would be something like:
{
hasErrored:true
statusEnum: "success"
}
Description
build-and-packagewas failing on a singletransport-node-serialcontract test: an underlying serial-port error was escaping as a fatal stream error instead of being surfaced as a disconnect status. This change aligns serial transport behavior with the existing Node socket transport so link drops are reported asDeviceDisconnectedevents.Related Issues
N/A
Changes Made
Transport error handling
TransportNodeSerialerror, tear down the port and emitDeviceDisconnected("port-error")Disconnect signal consistency
packages/transport-node/src/transport.tsRegression coverage
port-errorpath to verify consumers observe a disconnect status eventTesting Done
Added targeted regression coverage for the serial-port error disconnect path in
packages/transport-node-serial/src/transport.test.ts.Screenshots (if applicable)
N/A
Checklist
CONTRIBUTING_I18N_DEVELOPER_GUIDE.md for more details)