Skip to content

v2.5.1 - Fix Gemini HTTP hanging

Choose a tag to compare

@nicobailon nicobailon released this 28 Jan 18:06
· 19 commits to main since this release

Fixed

  • Gemini client hanging - Fixed HTTP requests hanging indefinitely when called through native messaging host. Root cause was missing content-length header - Node.js failed to auto-calculate content length in the native messaging stdio context.
  • Gemini SSL/TLS - Added rejectUnauthorized: false for Gemini API requests
  • Gemini host header - Added explicit host: gemini.google.com header required by Google's servers

Improved

  • HTTP request robustness - Added explicit timeouts, better error handling, and debug logging
  • Buffer handling - Proper UTF-8 encoding for POST request bodies

Install/Update

npm install -g surf-cli@2.5.1
surf install