fix(node,bun): module frame for handled reports of a failed import (BWD-38 follow-up) #241
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 232 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.326
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #241"
general
weight: 0.35
krassx
Follow-up to #240 (browser, webview, webworker). Independent of it: different packages.
Problem
@bugsee/nodealready has a module-load enricher (#219: BunResolveMessage, and aBuildMessageonly when it carries a position (one without a position yields no frame), NodeERR_MODULE_NOT_FOUND& co.), but it was applied only inside the uncaught-error providers (crashOf). A failed import reported throughclient.logException(every framework adapter's error boundary) bypassed it:ResolveMessagehas no stack frames, socrash.jsonhadframes: []("Unknown location").node:internal/modules/esm/*loader frames.Fix
withModuleLoadFrames(enrichFrames?)inmodule-load-failure.tsis the single definition of "configured enrichers (locals, source context), then the failed module last". Both the providers'crashOfand the client'senrichFramesuse it (the client previously got only the optional locals/source enrichers).@bugsee/bunand the Electron main process inherit it through@bugsee/node; no Bun-specific code was needed.Result
crash.jsonleads with animport()frame whose file is the failed module. Node keeps its loader frames after it.Verification
🤖 Generated with Claude Code
https://claude.ai/code/session_01WeiJxRnbk1iC7HPhhoC2Cr