fix(gateway): CORS, memory userId from session, pgvector auto-init #110

Merged
jason.woltje merged 1 commits from fix/gateway-cors-schema into main 2026-03-15 16:40:29 +00:00
Owner

Fixes three issues found during E2E testing: CORS blocking web→gateway, memory endpoints passing undefined userId, and missing pgvector extension.

Fixes three issues found during E2E testing: CORS blocking web→gateway, memory endpoints passing undefined userId, and missing pgvector extension.
jason.woltje added 1 commit 2026-03-15 16:40:19 +00:00
fix(gateway): CORS, memory userId from session, pgvector auto-init
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
48818be84c
- Enable CORS with credentials (GATEWAY_CORS_ORIGIN env, defaults to
  http://localhost:3000) so the web dashboard can talk to the gateway
- MemoryController: replace @Query('userId') with @CurrentUser() to
  extract userId from auth session (was passing undefined)
- MemoryController: add missing @Inject(EmbeddingService)
- docker-compose: auto-create pgvector extension via init script
- .env.example: add GATEWAY_CORS_ORIGIN

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
jason.woltje merged commit 72a73c859c into main 2026-03-15 16:40:29 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaicstack/stack#110