Skip to content

fix: add GEMINI_3_1_PRO model, design markdown access, and ECONNRESET reconnect#139

Closed
icebear0828 wants to merge 1 commit intogoogle-labs-code:mainfrom
icebear0828:fix/model-reconnect-designmd
Closed

fix: add GEMINI_3_1_PRO model, design markdown access, and ECONNRESET reconnect#139
icebear0828 wants to merge 1 commit intogoogle-labs-code:mainfrom
icebear0828:fix/model-reconnect-designmd

Conversation

@icebear0828
Copy link
Contributor

Summary

  • GEMINI_3_1_PRO model support: Update tools-manifest.json to include GEMINI_3_1_PRO (marks GEMINI_3_PRO as deprecated). Regenerated SDK classes so generate(), edit(), and variants() accept the new model.
  • Screen.getDesignMarkdown(): Surfaces cached theme.designMd from generation responses. Server-side get_screen does not return this field (get_screen returns incomplete screen data — missing theme, designMd, screenMetadata #138), so this is cache-only for now.
  • ECONNRESET auto-reconnect: doConnect() now creates fresh Client + Transport (MCP Client binds to one transport). callTool() retries up to 2× with exponential backoff (2s, 4s) on connection reset errors. Silences SSE notification channel errors to prevent false disconnect state. Also adds StitchClientOptions.fetch so users can inject a custom fetch for runtime-specific timeout control (e.g. Bun).

Test plan

  • Unit tests: 85 passing (npx vitest run)
  • E2E: 3/3 rounds passed with live API (GEMINI_3_1_PRO generation, designMd extraction, custom fetch verification, ECONNRESET recovery)
  • Verify capture-tools.ts produces equivalent manifest changes when run against live server

…ESET auto-reconnect

- Update tools-manifest.json to include GEMINI_3_1_PRO model (GEMINI_3_PRO is now deprecated)
- Regenerate SDK classes with new model enum across generate/edit/variants methods
- Add Screen.getDesignMarkdown() to surface cached design system markdown from
  generate/edit responses (get_screen server-side gap tracked in google-labs-code#138)
- Add StitchClientOptions.fetch for custom fetch (Bun runtime timeout control)
- Rebuild connection on ECONNRESET: doConnect() creates fresh Client + Transport
- callTool() retries up to 2x with exponential backoff on connection reset errors
- Silence SSE notification channel errors to prevent false disconnection state
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant