Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

fix(desktop): keep window bootstrap within architecture ratchet

Tioit-Wangd5866bc303b8
diff --git a/apps/desktop/electron/main/bootstrap/window.ts b/apps/desktop/electron/main/bootstrap/window.ts
index a97d52758..ee293303e 100644
--- a/apps/desktop/electron/main/bootstrap/window.ts
+++ b/apps/desktop/electron/main/bootstrap/window.ts
@@ -722,8 +722,7 @@ export async function createWindow({
windowState.workPanelBaseBounds = { ...appliedBounds };
windowState.workPanelLastAppliedBounds = { ...appliedBounds };
};
- // Custom window controls (Windows/Linux) need maximize state to swap the
- // maximize/restore glyph.
+ // Windows/Linux window controls use maximize state for the restore glyph.
if (process.platform !== "darwin") {
// Native-runner E2E fixture: establish the initial native state before
// the renderer mounts, then let WindowControls query it through IPC.