Repository navigation
v1.6.2 — Long-Context Streaming Resilience, Idle Watchdogs & reasoning_content Compat
Highlights
- SSE Keepalive Heartbeats: Emits periodic
15sSSE: keepalive\n\ncomments on live streams (src/gateway/response-delivery.mjs,SharedResponse.writeKeepaliveinsrc/gateway/request-resumption.mjs) without polluting replay buffers, preventing Node.jsundici300sbodyTimeout(TypeError: terminated) drops during long prefill/thinking turns. - Graceful Deadline Flush: Gives
delivery.interrupt()a 2-second grace window on healthy sockets atREQUEST_DEADLINE(src/gateway/app.mjs) to flushfinish_reason: "tool_calls"/"stop",incomplete: true, anddata: [DONE]cleanly instead of resetting the TCP socket. - Post-Tool Hallucination Early-Stop: Immediately cancels upstream generation (
turn.cancel()) whenliveSplitter.suppresseddetects a hallucinated[Caller tool result]after valid tool calls (src/tool-protocol.mjs,src/native-provider.mjs), shared across Gateway,pi-gemini-app@0.1.7, andopenclaw-gemini-app@0.1.3. - Bounded Upstream Idle Watchdogs: Handles stalled Google Robin streams in
src/native-provider.mjswithout affecting prefill/thinking silence or< 2,048 Bshort replies:postCompleteGraceMs(8s): finishes verified completed turns cleanly when upstream omitsEND_STREAM.postToolIdleMs(15s): flushes committedtool_callscleanly when upstream stalls after emitting tool calls.postOutputIdleMs(45s): flushes committed>= 2,048 Btext cleanly when upstream stalls mid-reply (never tripping short< 2,048 Bprefix-gated replies into retry loops).
- OpenClaw & Reasoning Client Compatibility: Accepts and strips optional
reasoning_content/reasoning(string | null) fields on replayedassistantmessages (src/openai-contract.mjs), fixing400 UNSUPPORTED_PARAMETER: messages.reasoning_content. - Streamlined Bilingual READMEs: Focused
README.mdandREADME.zh.mdfor faster 30-second onboarding.
Packages & Docker
- Gateway:
gemini-app2api@1.6.2·ghcr.io/shawtim/gemini-app2api:v1.6.2(linux/amd64, linux/arm64) - Pi Extension:
pi-gemini-app@0.1.7 - OpenClaw Plugin:
openclaw-gemini-app@0.1.3
Full Changelog: v1.6.1...v1.6.2