Generated image/video output now writes under cache/generated/images|videos instead of the swept inbound caches (cache/images, cache/videos). The hourly gateway housekeeping deletes 24h-old files in those dirs; for base64-returning providers the swept file was the only copy, breaking transcript references, the Artifacts panel and later edits. Rebased onto current main, where the writers delegate to agent/provider_media, so the media kind is now the generated/ subpath. cache/generated is added to tools/credential_files._CACHE_DIRS: without a mount/sync entry the Docker, SSH and Modal backends never receive the bytes and the provider result loses agent_visible_image. All callers consume the returned absolute paths, so no call-site changes were needed; inbound download paths (get_image_cache_dir / get_video_cache_dir) and the sweeper are untouched. RED: tests/agent/test_generated_media_durable.py (9 failed on main) — 25h-backdated generated files deleted by the real cleanup_image_cache / cleanup_video_cache, and no mount mapping for cache/generated. tests/tools/test_image_generation_artifacts.py ::test_real_generated_image_is_agent_visible_under_ssh_env covers the sandbox regression with the real writer. Green: 533 passed, 19 skipped. Co-authored-by: Froraut <79215537+Froraut@users.noreply.github.com> (cherry picked from commit fd23181f22232f66aec7076d6bf0868ed45661f2)
6 lines
284 B
YAML
6 lines
284 B
YAML
name: openai-codex
|
|
version: 1.0.0
|
|
description: "OpenAI image generation backed by ChatGPT/Codex OAuth (gpt-image-2 via the native Codex images/generations and images/edits endpoints). Saves generated images to $HERMES_HOME/cache/generated/images/."
|
|
author: NousResearch
|
|
kind: backend
|