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

1 Commits

Author SHA1 Message Date
48818be84c fix(gateway): CORS, memory userId from session, pgvector auto-init
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
- 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>
2026-03-15 11:40:00 -05:00