mirror of
https://github.com/giancarloerra/socraticode.git
synced 2026-07-03 14:05:21 +02:00
812fcd8905
External Qdrant deployments that require authentication (notably Qdrant Cloud, which returns 403 on every endpoint including /healthz without an api-key header) cannot pass the existing readiness check, so codebase_index fails with "Cannot reach external Qdrant" even though codebase_health and codebase_search still succeed -- their qdrant-js client paths attach the key automatically. Forward QDRANT_API_KEY as an `api-key` request header from ensureExternalQdrantReady() by extending waitForService() with an optional RequestInit. Docker-managed and unauthenticated external Qdrant deployments remain unaffected (no init forwarded -> no headers). Covered by two new unit tests in docker.test.ts.