Skip to content

fix(codex): honor runtime base url#15855

Closed
masterkain wants to merge 1 commit into
NousResearch:mainfrom
masterkain:fix/codex-runtime-base-url
Closed

fix(codex): honor runtime base url#15855
masterkain wants to merge 1 commit into
NousResearch:mainfrom
masterkain:fix/codex-runtime-base-url

Conversation

@masterkain

Copy link
Copy Markdown

summary

  • route Codex auxiliary auth-store fallback through resolve_codex_runtime_credentials() so HERMES_CODEX_BASE_URL is honored
  • seed openai-codex credential-pool entries with the runtime Codex base URL instead of always storing the ChatGPT default
  • keep raw_codex=True clients on the same runtime-resolved Codex URL and add regressions for both auxiliary paths

Fixes #5875

verification

  • uv run --extra dev python -m pytest tests/agent/test_auxiliary_client.py tests/agent/test_credential_pool.py tests/hermes_cli/test_runtime_provider_resolution.py -q -> 208 passed, 12 warnings
  • uv run --extra dev ruff check . -> passes with the current repo config (warning: No Python files found under the given path(s) because [tool.ruff] exclude = ["*"])
  • uv run --extra dev python -m py_compile agent/auxiliary_client.py agent/credential_pool.py
  • uv run --extra dev python -m pytest tests/ -q -> not green locally: missing optional deps (acp, numpy, fastapi) and unrelated failures across gateway/web/transcription/filesystem tests

@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/agent Core agent loop, run_agent.py, prompt builder provider/openai OpenAI / Codex Responses API labels Apr 26, 2026
@masterkain masterkain closed this May 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/agent Core agent loop, run_agent.py, prompt builder P2 Medium — degraded but workaround exists provider/openai OpenAI / Codex Responses API type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: openai-codex main agent path ignores resolved custom base_url when raw_codex=true

2 participants