{"record":{"id":"91875edcc344bd94","repo":"tinyhumansai/openhuman","slug":"overlay-failed-to-resize-overlay-window","errorCode":null,"errorMessage":"[overlay] failed to resize overlay window","messagePattern":"\\[overlay\\] failed to resize overlay window","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"app/src/overlay/OverlayApp.tsx","lineNumber":628,"sourceCode":"\n    const updateWindowFrame = async () => {\n      // Remove all size constraints first, then set the new size, then\n      // re-apply constraints. This avoids the ordering problem where the\n      // old min/max clamps the new size.\n      try {\n        await appWindow.setMinSize(null);\n      } catch {\n        /* ignore */\n      }\n      try {\n        await appWindow.setMaxSize(null);\n      } catch {\n        /* ignore */\n      }\n      try {\n        await appWindow.setSize(size);\n      } catch (error) {\n        console.warn('[overlay] failed to resize overlay window', error);\n      }\n      console.debug(`[overlay] resized to ${width}x${height} (active=${isActive})`);\n      // Lock to exact size so the user can't accidentally resize\n      try {\n        await appWindow.setMinSize(size);\n      } catch {\n        /* ignore */\n      }\n      try {\n        await appWindow.setMaxSize(size);\n      } catch {\n        /* ignore */\n      }\n\n      // Restore saved position from a previous drag\n      const saved = localStorage.getItem(OVERLAY_POSITION_KEY);\n      if (saved) {\n        try {","sourceCodeStart":610,"sourceCodeEnd":646,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/app/src/overlay/OverlayApp.tsx#L610-L646","documentation":"Resizing the overlay window (appWindow.setSize after clearing min/max constraints) failed during the overlay's content-size update. The failure is warned and the frame-update sequence continues (positioning still runs), so the overlay may render content sized for the new layout inside a window still at its old size — clipped or padded — until the next resize attempt.","triggerScenarios":"Thrown at app/src/overlay/OverlayApp.tsx:628 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the warned error — Tauri window errors here usually mean the window was closed mid-update or the webview window handle is stale","If the overlay visibly clips content, trigger a content change to force another resize pass","Reopen the overlay window to re-run the sizing sequence with a fresh window handle","If persistent, inspect the Tauri shell log for window-manager errors"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"749120085864ce16e0f273c7b86fac7740b39c5b","analyzedAt":"2026-08-17T21:21:45.363Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}