Fix UI missing protocol version header causing agents endpoint 400
All checks were successful
CI / build (push) Successful in 1m0s
CI / docker (push) Successful in 47s
CI / deploy (push) Successful in 25s

The ProtocolVersionInterceptor requires X-Cameleer-Protocol-Version: 1
on /api/v1/agents/** but the UI client middleware wasn't sending it,
causing the agents GET to fail silently in the command palette.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-03-13 17:28:14 +01:00
parent 86e016874a
commit c1f2ddb3f5

View File

@@ -19,6 +19,7 @@ const authMiddleware: Middleware = {
if (token) {
request.headers.set('Authorization', `Bearer ${token}`);
}
request.headers.set('X-Cameleer-Protocol-Version', '1');
return request;
},
async onResponse({ response }) {