feat: refine codex live chat context flows

This commit is contained in:
2026-05-08 21:15:51 +09:00
parent 82c0d8a197
commit 442879313f
92 changed files with 14815 additions and 7314 deletions

View File

@@ -54,6 +54,18 @@ export function appendClientIdHeader(headersInit?: HeadersInit) {
headers.set('X-Client-Id', clientId);
}
if (typeof window !== 'undefined') {
const { origin, hostname } = window.location;
if (origin && !headers.has('X-App-Origin')) {
headers.set('X-App-Origin', origin);
}
if (hostname && !headers.has('X-App-Domain')) {
headers.set('X-App-Domain', hostname);
}
}
return headers;
}