Skip to content

Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.

fix(web-studio): send identity headers in /health identity probe (#2983)

Zayn Jarvis8109ecc56beb
diff --git a/web-studio/src/hooks/use-app-connection.tsx b/web-studio/src/hooks/use-app-connection.tsx
index cf559f99c..0edd66c66 100644
--- a/web-studio/src/hooks/use-app-connection.tsx
+++ b/web-studio/src/hooks/use-app-connection.tsx
@@ -184,6 +184,14 @@ async function detectConnectionIdentity(
if (apiKey) {
headers['X-API-Key'] = apiKey
}
+ // Identity headers are required for trusted-mode identity resolution.
+ // In api_key mode the server strips them, so they are always safe to send.
+ if (connection.accountId) {
+ headers['X-OpenViking-Account'] = connection.accountId
+ }
+ if (connection.userId) {
+ headers['X-OpenViking-User'] = connection.userId
+ }
const response = await fetch(
`${normalizeBaseUrl(connection.baseUrl)}/health`,