Skip to content

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

docs(window): clarify native scenario isolation

Linuxdazhao3e1808cf0fd1
diff --git a/docs/project/windows-native-snap-replay.md b/docs/project/windows-native-snap-replay.md
index 8e5a38ba6..87e505df4 100644
--- a/docs/project/windows-native-snap-replay.md
+++ b/docs/project/windows-native-snap-replay.md
@@ -70,6 +70,12 @@ The native driver verifies cursor positions, crosses the drag threshold near
the press point and waits for Windows to enter the target HWND's move/size
loop before sweeping to the edge. An accepted button injection alone is not
proof that a drag began; failure to enter that loop fails acceptance.
+Keyboard maximize/restore runs before physical resizing. Windows Server can
+retain the earlier user-resized restore width after a programmatic bounds
+reset; independent scenarios must not inherit that history. Win+Down must
+still restore the exact initial 1200x800 rectangle, and its actual rectangle
+is retained even on failure. Maximized client/visible work-area and pixel
+assertions remain unchanged.
## Verdict and evidence
diff --git a/docs/spec/06-delivery/04-e2e-test-plan.md b/docs/spec/06-delivery/04-e2e-test-plan.md
index 0d295d257..9c56e601e 100644
--- a/docs/spec/06-delivery/04-e2e-test-plan.md
+++ b/docs/spec/06-delivery/04-e2e-test-plan.md
@@ -14143,6 +14143,8 @@ desktops, session 0, input failures and startup errors must fail the job.
Before each native drag sweep, cross the drag threshold near the press point
and confirm the target HWND owns Windows' move/size loop. A registered mouse
button or correct cursor coordinate alone must not qualify a drag.
+Run keyboard maximize/restore before physical resizing to isolate it from
+the Shell's user-resize restore history; retain its exact normal bounds check.
Retain SHA/tree/source hashes, binary hashes, OS/session/display metadata,
baseline/candidate JSON, timestamped logs, stdout/stderr and normal/snapped/
maximized/restored client PNGs. Upload artifacts even on failure; exclude