Skip to content

Remove redundant codex transport patch (upstream via NousResearch/hermes-agent#33409)#20

Merged
aaka3207 merged 1 commit into
mainfrom
remove-redundant-codex-transport-patch
May 29, 2026
Merged

Remove redundant codex transport patch (upstream via NousResearch/hermes-agent#33409)#20
aaka3207 merged 1 commit into
mainfrom
remove-redundant-codex-transport-patch

Conversation

@aaka3207

Copy link
Copy Markdown
Owner

What

Drops the third RUN block in Dockerfile that patched /opt/hermes/agent/transports/codex.py to move kwargs["tools"] into the if response_tools: branch.

Why

The exact same change is already upstream:

  • PR: NousResearch/hermes-agent#33409 — "Omit tools key when no tools registered"
  • Diff is byte-identical to our patch's intent (same anchor lines, same destination block).
  • Shipped in v0.15.0 (2026.5.28), so it's present in nousresearch/hermes-agent:latest — which is our base image.
  • The patch's own if 'kwargs["tools"] = response_tools' in s: print("already present") guard was already making the RUN block a no-op at build time. This PR just removes the dead code.

What's kept

The other two patches in the Dockerfile remain:

Patch Upstream status Action
openai SDK null-guard (_parsing/_responses.py) #34544 merged 2026-05-29 to main but NOT in v0.15.2 Keep until v0.15.3
mnemosyne lazy-register (local_llm.py) Mnemosyne-side, no upstream fix tracked Keep

Test

  • Dockerfile still parses (no syntax change to surrounding blocks).
  • Behavior change is zero: removed block was a no-op against the current base image anyway.
  • Will be validated on next Coolify deploy (no rebuild flags needed).

🤖 Generated with Claude Code

The Hermes codex transport patch in this Dockerfile moves `tools` into
the `if response_tools:` block so tool-less Codex calls don't send an
empty `tools` field. That exact change shipped upstream in
NousResearch/hermes-agent#33409, which is part of v0.15.0 (2026.5.28)
and therefore already present in `nousresearch/hermes-agent:latest`.

The patch's `if 'kwargs["tools"] = response_tools' in s:` early-return
was already making this RUN block a no-op at build time; this PR drops
the dead code.

The other two patches (openai SDK null-guard, mnemosyne lazy-register)
are kept:
- openai SDK null-guard: upstream fix PR #34544 merged today (May 29)
  but did NOT land in v0.15.2 — keep until v0.15.3.
- mnemosyne lazy-register: separate concern, not yet superseded.
@aaka3207 aaka3207 merged commit 9c896d9 into main May 29, 2026
@aaka3207 aaka3207 deleted the remove-redundant-codex-transport-patch branch May 29, 2026 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant