Skip to content

Enable ChatGPT subscription Codex support end-to-end#43

Merged
teknium1 merged 11 commits intoNousResearch:mainfrom
grp06:codex/align-codex-provider-conventions-mainrepo
Mar 1, 2026
Merged

Enable ChatGPT subscription Codex support end-to-end#43
teknium1 merged 11 commits intoNousResearch:mainfrom
grp06:codex/align-codex-provider-conventions-mainrepo

Conversation

@grp06
Copy link
Copy Markdown
Contributor

@grp06 grp06 commented Feb 26, 2026

Purpose

Let Hermes use a ChatGPT/Codex subscription (via Codex CLI auth) reliably end-to-end, so subscribers can run Hermes with openai-codex without early stop/failure behavior.

What changed

  • Added OpenAI Codex provider/runtime wiring to use the Responses API path.
  • Fixed Responses tool-call ID parity (call_id + fc_* item ids) for replay compatibility.
  • Marked commentary-only Responses messages as continuations, not final answers.
  • Added a guarded continuation path for preamble-only ack messages ("I'll inspect...") so Hermes proceeds to tool execution.
  • Aligned Responses tool schema with Codex conventions (strict: false).

Result

Hermes now works with ChatGPT subscription-backed Codex auth in a full tool-calling loop, instead of stopping after the first intermediate message.

Verification

  • pytest -q tests/test_auth_codex_provider.py tests/test_runtime_provider_resolution.py tests/test_cli_provider_resolution.py tests/test_run_agent_codex_responses.py
@grp06 grp06 force-pushed the codex/align-codex-provider-conventions-mainrepo branch from 0b3ade2 to ce175d7 Compare February 26, 2026 02:21
@wakamex
Copy link
Copy Markdown

wakamex commented Feb 26, 2026

my testing in #45 found id is optional in responses API input items, only call_id is needed

@teknium1
Copy link
Copy Markdown
Contributor

teknium1 commented Mar 1, 2026

Okay - I am merging this and taking it from here - soon we'll all get codex in :)

@teknium1 teknium1 merged commit 86b1db0 into NousResearch:main Mar 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants