fix: SDK bridge vision + docker bridge timeouts (stacked on #17)#1
Merged
MRDGH2821 merged 1 commit intoJun 13, 2026
Conversation
This was referenced Jun 12, 2026
17e2e97 to
b5ec709
Compare
Pass vision inputs through a separate images[] array instead of embedding large base64 blobs in the bridge JSON body, and drain NDJSON stream events reliably. Raise bridge JSON size limit for image payloads. Stacked on containerised-api (standardagents#17): docker-compose env wiring for bridge run timeout and max JSON bytes, optional backend env passthrough in api-server.ts, and tests for the bridge vision extraction path. Co-authored-by: Cursor <cursoragent@cursor.com>
b5ec709 to
c9183c2
Compare
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
Stacked on standardagents/composer-api#17 (
containerised-apibranch). Adds two production-verified fixes from @cfoucher's OpenClaw deployment:imagesarray (not base64 in the prompt), enable NDJSON stream draining, setpromptAlreadyPrepared, and raise the bridge JSON body limit — fixes OpenClaw/WhatsApp vision (Request body too large, caption+photo split delivery).CURSOR_BACKEND_BASE_URL/ chat endpoints (issue #13), and setCURSOR_SDK_BRIDGE_MAX_JSON_BYTES=16MBin compose.Commits (2, +553 / −115 lines)
2bc24b2fix: deliver SDK bridge vision via images array and streaming NDJSON28e772bfix: raise docker bridge timeouts and wire Cursor backend env varsTest plan
npm test— 232 tests passMerge order
containerised-apistandardagents/main