XAI_API_KEY persisting in env overrides xai-oauth
Cluster 116155. Data as of
Nothing open on GitHub. Fix merged in #116773 on 20 Sep 2026. Check it covers your case.
The short answer
- Known?
- Yes. 4 related items grouped here, 1 issue already closed.
- Fix event
- A fix was merged to main in PR #116773. Check it covers your case. No release data is tracked.
- Tracker
- The maintainers' tracker marks this
resolved, deciding PR #116773. That is separate from the fix event. - Still open
- Nothing open on GitHub.
A bug where a removed XAI_API_KEY remains in the gateway process environment and incorrectly overrides xai-oauth authentication. Multiple fixes address honoring suppressed environment variable sources in the key resolver.
Open issues0
Open PRs0
Fixes on record
-
#116773 fix(auth): a removed XAI_API_KEY still in the gateway environment no longer overrides xai-oauth for x_search (#116155, supersedes #116160)
files:
tests/tools/test_xai_http_credentials.py,tools/tool_backend_helpers.py
2 PRs closed without merging
From the close comments: done elsewhere 2
Closed issues · 1
- Closed#116155Bug: dead XAI_API_KEY persists in gateway process env across update restarts and overrides xai-oauth for x_search
How this cluster was grouped
-
Link evidence (
structural links throughout): every member is connected by structural evidence: shared changed files, or a closing/superseded reference. -
Pairwise link density
0.50: the share of item pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36.1.00means every pair is linked.
Pick up a Lab task
Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.
Open the LabAt a glance
- Merged PRs
- #116773
- Closed issues
- 1
- Attempts
- 2 PRs closed without merging
- Fix link checked
- 20 Sep 2026