# NousResearch/hermes-agent · Gateway thread context propagation for cron delivery

## Open now

- Nothing open on GitHub.

These issues and PRs concern contextvars (session variables) not being propagated to agent worker threads in the gateway, which affects cron-based delivery. Proposed fixes involve switching to asyncio.to_thread or explicitly copying context into executor calls.

## TL;DR

- 4 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 0 merged PR(s), 3 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.50`: 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

- #9354: Gateway agent threads lose session contextvars, breaking cron origin delivery

## Prior & competing PRs

- **#9391: fix(gateway): propagate contextvars to agent worker threads via asyncio.to_thread**. closed without merge · fix tier `suggested`
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`
- **#9592: fix: replace loop.run_in_executor with asyncio.to_thread in gateway runner**. closed without merge · fix tier `suggested`
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `8021a735c283b1b9a062ba6e64dae0090214482b`, `#9391`
- **#39390: fix(gateway): copy context into run_in_executor for _run_agent**. closed without merge · fix tier `suggested`
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._

## Fix status

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