{"record":{"id":"79b6d0f2291865f6","repo":"Yeachan-Heo/oh-my-codex","slug":"failed-to-reconcile-standalone-hud-resize-recon","errorCode":null,"errorMessage":"failed to reconcile standalone HUD resize: ${reconcile.stderr}","messagePattern":"failed to reconcile standalone HUD resize: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/team/tmux-session.ts","lineNumber":3042,"sourceCode":"  for (const paneId of [existingHudPaneId, ...duplicateHudPaneIds]) {\n    if (!paneId) continue;\n    const proof = readExactPaneProofSync(paneId);\n    if (proof.status === 'unavailable') throw new ExactPaneProofUnavailableError(proof);\n    if (proof.status === 'gone') throw new Error(`tmux pane is not proven live: ${paneId}`);\n    ownedHudPanePids.set(paneId, proof.pid);\n  }\n  for (const paneId of duplicateHudPaneIds) {\n    killExactPaneSync(paneId, ownedHudPanePids.get(paneId), requireAuthorizedLeaderPane);\n  }\n  if (existingHudPaneId) {\n    if (isNativeWindows()) {\n      const exactHudPaneId = requireLiveExactPaneSync(\n        existingHudPaneId,\n        ownedHudPanePids.get(existingHudPaneId),\n      );\n      requireAuthorizedLeaderPane();\n      const reconcile = runTmux(buildHudResizeArgs(exactHudPaneId));\n      if (!reconcile.ok) throw new Error(`failed to reconcile standalone HUD resize: ${reconcile.stderr}`);\n    } else {\n      requireAuthorizedLeaderPane();\n      runTmux(buildScheduleDelayedHudResizeArgs(\n        existingHudPaneId,\n        HUD_RESIZE_RECONCILE_DELAY_SECONDS,\n        HUD_TMUX_TEAM_HEIGHT_LINES,\n        ownedHudPanePids.get(existingHudPaneId),\n      ));\n      requireAuthorizedLeaderPane();\n      runTmux(buildReconcileHudResizeArgs(\n        existingHudPaneId,\n        HUD_TMUX_TEAM_HEIGHT_LINES,\n        ownedHudPanePids.get(existingHudPaneId),\n      ));\n    }\n    runTmux(['select-pane', '-t', requireAuthorizedLeaderPane()]);\n    return existingHudPaneId;\n  }","sourceCodeStart":3024,"sourceCodeEnd":3060,"githubUrl":"https://github.com/Yeachan-Heo/oh-my-codex/blob/3ad79a8a6fe6e95fdbb8c00e40716fffe4011ce2/src/team/tmux-session.ts#L3024-L3060","documentation":"Thrown by restoreStandaloneHudPane on Windows when an existing HUD pane is found and the immediate resize reconciliation (runTmux(buildHudResizeArgs(...))) fails. The message embeds the tmux stderr. resize-pane failing means the HUD pane exists but cannot be resized to the expected team height, so the restore aborts after the pane is already reconciled as live and authorized.","triggerScenarios":"On native Windows (isNativeWindows()), an existing HUD pane passes requireLiveExactPaneSync and leader authorization, then the resize-pane command in buildHudResizeArgs returns !ok — e.g. pane in a layout that forbids resizing, pane too small/large, or tmux error.","commonSituations":"Window layout (even-horizontal, main-pane, etc.) blocks manual pane sizing; the terminal window is too small for HUD_TMUX_TEAM_HEIGHT_LINES; MSYS/Windows tmux port quirks with resize-pane; pane became part of a zoomed window.","solutions":["Run the resize command manually with the pane id and read the embedded stderr (e.g. tmux resize-pane and check size limits)","Enlarge the terminal/window so the requested HUD height fits","Change the window layout to a resizable one (select-layout even-vertical / tiled)","Retry after unzooming the window (resize-pane -Z toggles zoom)"],"exampleFix":null,"handlingStrategy":"validation","validationCode":"function windowTallEnough(lines: number): boolean { return process.stdout.rows ?? 0 > lines + 2; }\nif (isNativeWindows() && !windowTallEnough(HUD_TMUX_TEAM_HEIGHT_LINES)) throw new Error('enlarge terminal before restore');","typeGuard":null,"tryCatchPattern":"try { restoreStandaloneHudPane(id, cwd, opts); } catch (e) { if (e instanceof Error && e.message.startsWith('failed to reconcile standalone HUD resize')) { /* run resize manually, fix layout/terminal size, retry */ } else throw e; }","preventionTips":["Ensure terminal height exceeds the HUD pane height plus leader needs","Use resizable layouts (avoid locked/zoomed windows)","On Windows, verify the tmux port supports the resize args used"],"tags":["tmux","windows","resize","layout-constraint"],"backgroundTag":"tmux-resize-pane-failed","analyzedSha":"3ad79a8a6fe6e95fdbb8c00e40716fffe4011ce2","analyzedAt":"2026-08-27T22:18:39.783Z","schemaVersion":2},"datasetVersion":"2026-08-28T00:17:15.603Z"}