From 66af8304668183482891bb4967a60efb819ea3c3 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 22 Feb 2026 05:34:48 +0000 Subject: [PATCH] Fixed Monaco squiggly lines after page refresh After a page refresh, restored task tab models would show unresolved import errors because source models hadn't been created yet. When compilation completed and source models were created, the previous setCompilerOptions trick didn't reliably force Monaco to revalidate. Replaced it with refreshOpenTaskEditors() which triggers model re-analysis by resetting each model's value, ensuring Monaco picks up the newly available source models. https://claude.ai/code/session_012HLoMtD1iDiFoRSpiZtw5C --- ui/src/App.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ui/src/App.tsx b/ui/src/App.tsx index 94619f4f..c57e7bae 100644 --- a/ui/src/App.tsx +++ b/ui/src/App.tsx @@ -434,8 +434,7 @@ export function App() { return [...prevTabs]; }); // Force TypeScript to revalidate restored models now that source models exist - const opts = monaco.typescript.typescriptDefaults.getCompilerOptions(); - monaco.typescript.typescriptDefaults.setCompilerOptions(opts); + refreshOpenTaskEditors(); return; }