fix(vscode): avoid navigation reload on chunk load failure
Browser-style chunk recovery used location.reload inside VS Code webviews, where navigation reload is unsupported. Preserve import retries and let the original failure reach the error boundary instead. Validated with focused regression tests, UI type-check and lint, and the VS Code webview build. The reported gray-screen crash has not been reproduced.
This commit is contained in:
@@ -110,6 +110,10 @@ opening a connection. Session sync still uses the OpenCode SSE bridge and
|
||||
global session polling. Sending the control stream to the webview origin caused
|
||||
repeated `403` responses and URL-token requests to `/auth/url-token`.
|
||||
|
||||
Shared lazy imports retry a failed chunk load, but skip browser-navigation
|
||||
recovery in VS Code. `window.location.reload()` is unsupported inside webviews;
|
||||
the original import error must reach the UI error boundary instead.
|
||||
|
||||
## Extension guideline
|
||||
|
||||
When adding new bridge route families:
|
||||
|
||||
Reference in New Issue
Block a user