feat(codex): add OAuth fingerprint convergence modes (#10243)

* fix(deps): bump nanoid, dompurify for 2 new Dependabot alerts (#189, #190)

Bumps: nanoid ^3.3.17 (was transitive, now overridden), dompurify ^3.4.13
(with monaco-editor scoped override). Closes Dependabot #189, #190.

Remaining #182-#188 (js-yaml + mermaid) already closed by #9651 merge —
awaiting Dependabot re-scan.

npm audit → 0 vulnerabilities.

* fix(repo): harden .gitignore to also ignore a _tasks symlink (/_tasks)

_tasks is a SEPARATE nested git repo (gitignored). The pattern _tasks/ (trailing
slash) ignores only a directory, not a SYMLINK named _tasks. A self-referential
_tasks symlink can slip in via git add -A and, once pulled, checkout materializes
it over the real _tasks repo (destroying plans/specs/hands-off). Anchored /_tasks
ignores the symlink too, preventing re-capture.

* feat(codex): converge OAuth fingerprints

* test(codex): preserve identity assertions

* fix(codex): preserve explicit off identity

* fix(codex): close fingerprint transport gaps

---------

Co-authored-by: diegosouzapw <diegosouzapw@users.noreply.github.com>
Co-authored-by: Diego Rodrigues de Sa e Souza <diegosouza.pw@outlook.com>
Co-authored-by: diegosouzapw <diegosouza.pw@gmail.com>
Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
This commit is contained in:
Xiangzhe
2026-08-14 11:57:23 +08:00
committed by GitHub
parent 587e53a3c1
commit 8417ace4b3
17 changed files with 1103 additions and 168 deletions

View File

@@ -317,6 +317,17 @@ function getAuthHeaders(requestUrl, requestHeaders) {
if (isText(requestHeaders["x-forwarded-for"])) {
headers["x-forwarded-for"] = requestHeaders["x-forwarded-for"];
}
for (const key of [
"session-id",
"session_id",
"x-codex-installation-id",
"x-codex-window-id",
"x-codex-turn-metadata",
"originator",
"user-agent",
]) {
if (isText(requestHeaders[key])) headers[key] = requestHeaders[key];
}
return headers;
}

View File

@@ -185,6 +185,18 @@ function getForwardHeaders(requestUrl, requestHeaders) {
headers.origin = origin;
}
for (const key of [
"session-id",
"session_id",
"x-codex-installation-id",
"x-codex-window-id",
"x-codex-turn-metadata",
"originator",
"user-agent",
]) {
if (isText(requestHeaders[key])) headers[key] = requestHeaders[key];
}
return headers;
}