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