Skip to content

fix: SDK bridge vision + docker bridge timeouts (stacked on #17)#1

Merged
MRDGH2821 merged 1 commit into
MRDGH2821:containerised-apifrom
cfoucher:fix/sdk-bridge-vision-docker
Jun 13, 2026
Merged

fix: SDK bridge vision + docker bridge timeouts (stacked on #17)#1
MRDGH2821 merged 1 commit into
MRDGH2821:containerised-apifrom
cfoucher:fix/sdk-bridge-vision-docker

Conversation

@cfoucher

@cfoucher cfoucher commented Jun 12, 2026

Copy link
Copy Markdown

Summary

Stacked on standardagents/composer-api#17 (containerised-api branch). Adds two production-verified fixes from @cfoucher's OpenClaw deployment:

  • Vision: Pass images to the SDK bridge via a separate images array (not base64 in the prompt), enable NDJSON stream draining, set promptAlreadyPrepared, and raise the bridge JSON body limit — fixes OpenClaw/WhatsApp vision (Request body too large, caption+photo split delivery).
  • Docker: Raise bridge timeout defaults to 6 min, wire CURSOR_BACKEND_BASE_URL / chat endpoints (issue #13), and set CURSOR_SDK_BRIDGE_MAX_JSON_BYTES=16MB in compose.

Commits (2, +553 / −115 lines)

  • 2bc24b2 fix: deliver SDK bridge vision via images array and streaming NDJSON
  • 28e772b fix: raise docker bridge timeouts and wire Cursor backend env vars

Test plan

  • npm test — 232 tests pass
  • OpenClaw WhatsApp photo Q&A (Composer vision ~17–20s)
  • Voice note STT transcription verified

Merge order

  1. Merge this PR into containerised-api
  2. Then merge Add docker container release workflow + enhancements standardagents/composer-api#17standardagents/main

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>
@cfoucher cfoucher force-pushed the fix/sdk-bridge-vision-docker branch from b5ec709 to c9183c2 Compare June 12, 2026 23:55
@MRDGH2821 MRDGH2821 merged commit e51cde3 into MRDGH2821:containerised-api Jun 13, 2026
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.

2 participants