# NousResearch/hermes-agent · Generated media lost after 24h cache sweep

## Open now

- Nothing open on GitHub.

These items concern a bug where AI-generated images and videos stored only in the gateway media cache are deleted after 24 hours, and efforts to prevent that loss by keeping them outside the swept cache.

## 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 #130617. Verify it addresses your case.
- **Recommended:** read PR #130617 (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-130617`. 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 `1.00`: 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

- #126445: \[Bug\]: generated images/videos live only in the gateway media cache and are swept after 24h (base64 providers: the only copy)

## Prior & competing PRs

- **#130617: Generated images and videos survive the 24h media-cache cleanup and stay deliverable, synced and backed up (#126445, salvage #126548)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/image_gen_provider.py`, `agent/pet/generate/orchestrate.py`, `agent/provider_media.py`, `agent/video_gen_provider.py`, `gateway/platforms/base.py`, `gateway/run.py`, `hermes_cli/backup.py`, `plugins/image_gen/meta-ai/plugin.yaml`, `plugins/image_gen/openai-codex/plugin.yaml`, `plugins/image_gen/openai/plugin.yaml`, `tests/agent/test_generated_media_durable.py`, `tests/agent/test_save_url_image.py`, `tests/hermes_cli/test_backup.py`, `tests/plugins/image_gen/test_meta_ai_provider.py`, `tests/plugins/image_gen/test_openai_codex_provider.py`, `tests/plugins/image_gen/test_openai_provider.py`, `tests/tools/test_credential_files.py`, `tools/credential_files.py`
- **#126548: fix(agent): keep generated images/videos out of swept media caches**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `fd23181f22`, `c67b0a1dc4`, `#130617`

## Fix status

- Merged to main in PR #130617 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-10-01`.
