# NousResearch/hermes-agent · Codex app-server thread persistence and context fixes

## Open now

- Nothing open on GitHub.

These issues and pull requests concern the Codex app-server losing thread context between turns, across restarts, and across sessions, along with related work on system prompt and personality delivery. The members share a common theme of preserving and correctly initializing thread state in the Codex app-server runtime.

## TL;DR

- 5 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 3 merged PR(s), 1 PR(s) closed without merging.
- A fix was merged to main in PR #115759. Verify it addresses your case.
- **Recommended:** read PR #115759 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.40`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Closed / duplicate issues

- #41904: Codex app-server runtime loses thread context across turns (gateway starts a fresh thread each message)

## Prior & competing PRs

- **#115759: fix(codex_app_server): SOUL.md and the Hermes system prompt reach the model; built-in personality disabled (#74712, #72104, #26035, salvage #74726 #72106 #27998)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `agent/codex_runtime.py`, `agent/transports/codex_app_server_session.py`, `contributors/emails/[redacted:email]`, `tests/agent/test_codex_app_server_persist.py`, `tests/agent/test_codex_runtime_prompt_handoff.py`, `tests/agent/transports/test_codex_app_server_session.py`, `website/docs/user-guide/features/codex-app-server-runtime.md`
- **#116343: Codex app-server thread survives an API-server restart: thread id persisted per session and thread/resume'd, fail-closed to a fresh thread (#100531, salvage #103352)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `agent/codex_runtime.py`, `agent/transports/codex_app_server_session.py`, `contributors/emails/[redacted:email]`, `tests/agent/test_codex_app_server_thread_resume.py`, `tests/agent/transports/test_codex_app_server_session.py`, `website/docs/user-guide/features/codex-app-server-runtime.md`
- **#116586: Codex app-server threads started from scratch inherit the session history; \`provider: openai\` + \`openai_runtime: codex_app_server\` engages again (salvage #26081)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `agent/codex_runtime.py`, `agent/codex_runtime_history_seed.py`, `agent/transports/codex_app_server_session.py`, `hermes_cli/runtime_provider.py`, `tests/agent/test_codex_runtime_history_seed.py`, `tests/hermes_cli/test_runtime_provider_resolution.py`, `website/docs/user-guide/features/codex-app-server-runtime.md`
- **#41905: fix(agent): resume codex app-server thread across turns to preserve session context**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `b5fcf635dc22`, `85cb1dc74b30`, `35cea9b87e48`, `#116343`, `#115759`, `#116586`, `#116343`

## Fix status

- Merged to main in PR #115759 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-09-20`.
- Subsystem: `agent`
