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
Closed
fix: add GEMINI_3_1_PRO model, design markdown access, and ECONNRESET reconnect#139icebear0828 wants to merge 1 commit intogoogle-labs-code:mainfrom
icebear0828 wants to merge 1 commit intogoogle-labs-code:mainfrom
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tools-manifest.jsonto includeGEMINI_3_1_PRO(marksGEMINI_3_PROas deprecated). Regenerated SDK classes sogenerate(),edit(), andvariants()accept the new model.Screen.getDesignMarkdown(): Surfaces cachedtheme.designMdfrom generation responses. Server-sideget_screendoes not return this field (get_screen returns incomplete screen data — missing theme, designMd, screenMetadata #138), so this is cache-only for now.doConnect()now creates freshClient+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 addsStitchClientOptions.fetchso users can inject a custom fetch for runtime-specific timeout control (e.g. Bun).Test plan
npx vitest run)capture-tools.tsproduces equivalent manifest changes when run against live server