Repository navigation
v1.6.4 — OpenClaw OAuth Login Hotfix, 8,192 Message Limit & Accurate Image Token Usage
Highlights
- Critical OpenClaw OAuth Login Hotfix (
openclaw-gemini-app@0.1.5):- Fixed OAuth login displaying
visit: undefinedby readingsession.authorizationUrlfromstartLoopbackLogin()(with an explicit non-empty URL guard). - Added the required post-login scoped token exchange (
refreshNativeCredential(config, tokens.refreshToken)) to acquireassistant/geminiscopes before terms acceptance, quota/tier detection, and generation. - Fixed swapped
(cred.refresh, config)arguments inrefreshOpenClawOAuth, covered by a real-loopback + real-refresh integration test (test/openclaw-extension.test.mjs).
- Fixed OAuth login displaying
- Long-Session Message Limit (
MAX_MESSAGES = 8,192): RaisedMAX_MESSAGESfrom1,024to8,192andrequestBudget()JSON node limit from32,768to131,072(src/openai-contract.mjs), returning standard413 REQUEST_TOO_LARGE(param: "messages"/"input") on overflow instead of misleading400 MESSAGES_REQUIRED. - Accurate Image Token Estimation (
pi-gemini-app@0.1.9, Gateway & OpenClaw): Excluded base64image_url/input_imagedata strings frompromptCharsand billed a fixed258tokens per image (src/openai-usage.mjs,src/gateway/app.mjs,src/gateway/response-delivery.mjs,extensions/pi/stream.js) so multi-screenshot sessions no longer inflateusage.prompt_tokens.
Packages & Docker
- Gateway:
gemini-app2api@1.6.4·ghcr.io/shawtim/gemini-app2api:v1.6.4(linux/amd64, linux/arm64) - OpenClaw Plugin:
openclaw-gemini-app@0.1.5 - Pi Extension:
pi-gemini-app@0.1.9
Full Changelog: v1.6.3...v1.6.4