tinyhumansai/openhuman · error

[overlay] failed to resize overlay window

Error message

[overlay] failed to resize overlay window

What it means

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.

Source

Thrown at app/src/overlay/OverlayApp.tsx:628

    const updateWindowFrame = async () => {
      // Remove all size constraints first, then set the new size, then
      // re-apply constraints. This avoids the ordering problem where the
      // old min/max clamps the new size.
      try {
        await appWindow.setMinSize(null);
      } catch {
        /* ignore */
      }
      try {
        await appWindow.setMaxSize(null);
      } catch {
        /* ignore */
      }
      try {
        await appWindow.setSize(size);
      } catch (error) {
        console.warn('[overlay] failed to resize overlay window', error);
      }
      console.debug(`[overlay] resized to ${width}x${height} (active=${isActive})`);
      // Lock to exact size so the user can't accidentally resize
      try {
        await appWindow.setMinSize(size);
      } catch {
        /* ignore */
      }
      try {
        await appWindow.setMaxSize(size);
      } catch {
        /* ignore */
      }

      // Restore saved position from a previous drag
      const saved = localStorage.getItem(OVERLAY_POSITION_KEY);
      if (saved) {
        try {

View on GitHub (pinned to 7491200858)

Solutions

  1. Check the warned error — Tauri window errors here usually mean the window was closed mid-update or the webview window handle is stale
  2. If the overlay visibly clips content, trigger a content change to force another resize pass
  3. Reopen the overlay window to re-run the sizing sequence with a fresh window handle
  4. If persistent, inspect the Tauri shell log for window-manager errors
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at app/src/overlay/OverlayApp.tsx:628 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of tinyhumansai/openhuman@7491200858 (2026-08-17). Data as JSON: /api/errors/91875edcc344bd94. Report an issue: GitHub.