# NousResearch/hermes-agent · Auxiliary thread session ID inheritance bug fix

## Open now

- 1 issue, 2 PRs open on GitHub.
- #115000: \[Bug\] Auxiliary client fails with 400 MissingSessionID on OpenCode relay providers — goal judge never succeeds (contextvars not inherited by auxiliary threads)
- PR #131047: fix(opencode): auxiliary threads reuse the main turn x-opencode-session key (#115000)
- PR #131137: fix(goals): bind the goal's session affinity key around the judge cal…

A bug caused auxiliary client threads to fail with 400 MissingSessionID errors on OpenCode relay providers because contextvars were not inherited, preventing goal judges from succeeding. The fixes bind the correct session affinity key for auxiliary threads and goal judge calls.

## TL;DR

- 3 member(s): 1 open issue(s), 0 closed issue(s), 2 open PR(s), 0 merged PR(s), 0 PR(s) closed without merging.
- No fix has been merged to main; one or more PRs were attempted (see below).
- **Recommended:** review the prior/competing PR(s) below. A fix was attempted but not merged; your case may extend or revive that work.

## 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.67`: 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.

## Open related issues

- #115000: \[Bug\] Auxiliary client fails with 400 MissingSessionID on OpenCode relay providers — goal judge never succeeds (contextvars not inherited by auxiliary threads)

## Prior & competing PRs

- **#131047: fix(opencode): auxiliary threads reuse the main turn x-opencode-session key (#115000)**. open
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`
  - files: `agent/auxiliary_client.py`, `agent/opencode_affinity.py`, `tests/agent/test_opencode_session_affinity.py`
- **#131137: fix(goals): bind the goal's session affinity key around the judge cal…**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `6f34a4a9a7`
  - files: `hermes_cli/goals.py`, `hermes_cli/loops.py`, `tests/hermes_cli/test_goal_judge_affinity.py`

## Fix status

- No merged fix on record.
- Subsystem: `agent`
