Skip to content

v1.8.0 — Native Windows Support, Strict Responses Proxy Fix & State-Machine Refactor

Latest

Choose a tag to compare

@ShawTim ShawTim released this 23 Nov 21:12
· 4 commits to main since this release

Highlights

  • Native Windows (win32) Support & windows-latest CI (Fixes #5):
    • Kernel-backed single-instance locking on Windows via libuv UV_FS_O_EXLOCK (dwShareMode = 0) on a persistent .state.lock handle with an immediate fail-closed EBUSY self-probe (zero PID-reclamation races or PID-reuse lockouts).
    • Locale-independent SID-based icacls.exe ACL hardening (*S-1-5-18, *S-1-5-32-544, and current local S-1-5-* / Entra ID S-1-12-1-* user SID), bounded renameSync retry on transient Defender EPERM/EACCES/EBUSY, SIGBREAK handling, and pathToFileURL + Winsock env fixes in scripts/run-current-contract.mjs.
    • Verified on GitHub Actions windows-latest (current-contract + windows-native NTFS lock, cross-process contention, forced-kill recovery, 4-way race, .env, and loopback /health checks).
  • Strict Responses Proxy Compatibility (Fixes #6):
    • Qualified usable POST /v1/responses SSE response.completed events now always emit response.error: null while preserving incomplete: true, incomplete_details: { reason: "upstream_interrupted", code }, and res.incomplete = true (preventing resumption cache retention)—stopping reconnect loops on strict OpenAI Responses proxies (e.g., Codex Desktop via Cockpit Tools).
    • response.failed, response.incomplete, and non-streaming partial responses keep error intact.
  • Sticky Session & Image Blob Cache Preservation:
    • Verified post_tool and post_output idle stalls no longer poison session.lastFailure or thrash per-account image blobCache on subsequent turns; X-Gemini-Recovery-Errors is only emitted on actual retry attempts.
  • State-Machine Refactor & Strict JSON Recovery:
    • Closed, privacy-safe TOOL_JSON_REASONS syntax subcodes in parseBoundedJson() with targeted recovery directives appended at the prompt tail and 2 uncommitted tool_protocol retries across Gateway, Pi, and OpenCode.
    • Converged response-delivery.mjs onto monotonic 4-state wirePhase, replaced O(N^2) per-frame idle probing in native-provider.mjs with O(1) classifyIdleSnapshot() + pure selectIdleDeadline(), unified pool.mjs retry planning in pure planRetry(), fixed OpenCode post_tool stall handling, and added committed multi-call tail salvage in Pi/OpenCode.
    • Added synthetic 150K-token HTTP/2 adversarial long-context suite (test/gateway-long-context-adversarial.test.mjs).

Extension Packages

  • pi-gemini-app@0.1.11
  • openclaw-gemini-app@0.1.7
  • mcp-gemini-app@0.1.2
  • opencode-gemini-app@0.1.2