Skip to content

fix(codex_app_server): seed Hermes context on first turn#26081

Open
LeonSGP43 wants to merge 1 commit into
NousResearch:mainfrom
LeonSGP43:hermes/fix-26035-codex-app-server-context
Open

fix(codex_app_server): seed Hermes context on first turn#26081
LeonSGP43 wants to merge 1 commit into
NousResearch:mainfrom
LeonSGP43:hermes/fix-26035-codex-app-server-context

Conversation

@LeonSGP43

Copy link
Copy Markdown
Contributor

Fixes #26035.

Summary

  • seed Codex app-server sessions with the current Hermes system/SOUL context on the first turn
  • preserve prior text conversation history in that first-turn seed without duplicating the current user message
  • add regression coverage for first-turn-only seeding and run_conversation() context projection

Local proof

  • python3 -m pytest -o addopts= tests/agent/transports/test_codex_app_server_session.py tests/run_agent/test_codex_app_server_integration.py -q\n- uv run --frozen ruff check run_agent.py agent/transports/codex_app_server_session.py tests/agent/transports/test_codex_app_server_session.py tests/run_agent/test_codex_app_server_integration.py\n- git diff --check\n\n## CI attribution\n- recent company PRs #26068, #26059, and #26038 all show e2e failures, so that lane appears to be preexisting shared baseline noise rather than candidate-specific\n- the broader test lane is mixed across those PRs and is not claimed as baseline for this change

@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 comp/acp Agent Communication Protocol adapter labels May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/acp Agent Communication Protocol adapter comp/agent Core agent loop, run_agent.py, prompt builder P2 Medium — degraded but workaround exists type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

codex_app_server does not receive Hermes SOUL/system prompt context

2 participants