# NousResearch/hermes-agent · Photon sidecar crash recovery and cancellation bug

## Open now

- Nothing open on GitHub.

These items concern a race condition in Photon's sidecar lifecycle where a CancelledError during _stop_sidecar() cancels the supervisor task itself, preventing reconnection after a crash. The work involves diagnosing and fixing the crash recovery path, event-loop handling, and structured error propagation.

## TL;DR

- 3 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 1 PR(s) closed without merging.
- A fix was merged to main in PR #73563. Verify it addresses your case.
- **Recommended:** read PR #73563 (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: `resolved` · deciding PR(s): `pr-73563`. 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.

## Closed / duplicate issues

- #73159: Photon SIDECAR_CRASHED: reconnect never executes — CancelledError race in _stop_sidecar() cancels own supervisor

## Prior & competing PRs

- **#73563: fix(photon): sidecar lifecycle cluster — crash recovery, event-loop, structured errors (salvage x7)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `contributors/emails/[redacted:email]`, `gateway/run.py`, `plugins/platforms/photon/adapter.py`, `plugins/platforms/photon/sidecar/index.mjs`, `tests/gateway/test_multiplex_adapter_registry.py`, `tests/plugins/platforms/photon/test_fatal_notify_self_cancel.py`, `tests/plugins/platforms/photon/test_overflow_recovery.py`, `tests/plugins/platforms/photon/test_sidecar_lifecycle.py`, `tests/plugins/platforms/photon/test_spectrum_patch.py`
- **#73170: fix(photon): stop sidecar-crash fatal handler from cancelling its own supervisor task**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `#73563`, `#72475`, `#73159`

## Fix status

- Merged to main in PR #73563 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-07-29`.
- Subsystem: `gateway`
