fix(browser,webview,webworker): module frame for handled reports of a failed dynamic import (BWD-38) #240
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.39) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 272 lines diff across 3 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.336
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #240"
general
weight: 0.35
krassx
Problem
BWD-38: a failed dynamic
import()reported throughclient.logException(e.g. a framework adapter's error boundary) shippedframes: []and showed as "Handled TypeError at Unknown location". The stackless-context enricher from #218 was wired only into the windowerror/unhandledrejectionproviders, not into the clients.@bugsee/webviewand@bugsee/webworkerbuild their own client and had the same gap.Fix
createBrowserFrameEnricher(asyncOrigin?)in@bugsee/browser: the single definition of the browser-engine enricher order (async-origin call site first, then the stackless context for what is still empty).@bugsee/webviewand@bugsee/webworker. The Electron renderer launches through@bugsee/browser, so it is covered.Result
crash.jsoncarries oneimport()frame whose file is the failed module, so the location is the chunk and occurrences group together. The importer's call site is not recoverable (browsers don't expose it). The description lines (recent scripts, page, online) remain window-handler-only.Not changed (audited)
Errors with frames (allnode:internal) and the module/importer in the message.ResolveMessage/BuildMessage) but the message names module and importer. Separate follow-up, needs its own parser.Verification
frames: []) before the wiring. New: browser logException (+ async-origin off), webview, webworker, and the shared helper's ordering.🤖 Generated with Claude Code
https://claude.ai/code/session_01WeiJxRnbk1iC7HPhhoC2Cr