picoclaw/pkg/config
ex-takashima e4d3650005 feat(media): integrate TTL cleanup into FileMediaStore
Add background TTL-based cleanup (L2 safety net) directly into
FileMediaStore so file deletion and in-memory ref removal happen
atomically under the same mutex, preventing dangling references.

- Add storedAt timestamp and refToScope reverse map to mediaEntry
- Add CleanExpired() for atomic TTL-based expiration
- Add Start()/Stop() for background goroutine lifecycle
- Add MediaCleanupConfig (enabled, max_age, interval) to config
- Wire up in cmd_gateway.go with config-driven defaults
- Add 8 new tests including concurrent cleanup safety

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 21:24:32 +09:00
..
config.go feat(media): integrate TTL cleanup into FileMediaStore 2026-02-24 21:24:32 +09:00
config_test.go fix(security): change gateway default bind to 127.0.0.1 (#393) 2026-02-24 08:54:10 +11:00
defaults.go feat(media): integrate TTL cleanup into FileMediaStore 2026-02-24 21:24:32 +09:00
migration.go feat: add native Mistral AI provider support 2026-02-22 11:40:21 +04:00
migration_test.go feat: add native Mistral AI provider support 2026-02-22 11:40:21 +04:00
model_config_test.go fix(config): allow duplicate model_name for load balancing 2026-02-20 11:46:28 +08:00