You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Address two Claude bot review concerns posted after the prior approval
(2026-04-09 17:21:58):
1. Cleanup pattern: main() body had no try/finally, so the cleanup loop
never ran when an error propagated to the .catch() handler that called
process.exit(1) synchronously. Wrapped main() body in try/finally;
moved cleanup loop into finally; replaced process.exit(1) with
process.exitCode = 1 so the finally block actually runs on error.
2. Silent routing failures: hardcoded prefixed keys with if-guards meant
a missing key (renamed server, renamed tool) printed only the routing
demo header then "All servers disconnected." with zero indication that
no routing was demonstrated. Replaced silent if-guards with assertive
lookups that throw a clear error identifying the missing key.
Renamed result/text variables to alertsResult/alertsText/weatherResult/
weatherText since de-indenting the call blocks would put two const result
declarations in the same scope. No semantic change to the demo output.
Local typecheck:all, lint:all, and build:all all pass.
Co-Authored-By: Tadao <tadao@travisfixes.com>
0 commit comments