fix(FN-1135): retry xterm imports when MIME errors occur

- Add retryDynamicImport helper in TerminalModal with targeted retry detection for MIME type and dynamic import fetch failures
- Retry xterm module imports with backoff delays (500ms, 1500ms, 3000ms) and preserve original error reporting when retries are exhausted
- Add TerminalModal tests covering successful retry recovery, exhausted retry fallback to init error UI, and no-retry behavior for non-retryable failures
- Add a changeset patch for @gsxdsm/fusion describing the terminal initialization fix
This commit is contained in:
gsxdsm
2026-04-07 22:50:17 -07:00
parent 69bb0290aa
commit 9a332c4b61
3 changed files with 177 additions and 5 deletions

View File

@@ -0,0 +1,5 @@
---
"@gsxdsm/fusion": patch
---
Fix terminal failing to initialize on first page load with MIME type error. The terminal now automatically retries dynamic xterm.js imports when the server returns an HTML response instead of JavaScript.