Cameron Cordes
5c9ee56527
Fix agentic reel audit issues: midnight bug, DAO wiring, dead code, DST timezone, validation
Blocking fixes:
- secs_until_next_run_hour: same-hour now returns 0 instead of 24h
- capture_prefs: called at both handler return points, never fails request
- capture_prefs: resolves library param, upserts to user_ai_prefs via DAO
- Scheduler: uses AppState DAOs instead of separate connections
- Pregen dedup: uses resolved library param instead of hardcoded 'all'
- run_readonly_tool_loop: added #[allow(dead_code)] (used in main.rs only)
- run_readonly_tool_loop: removed dead messages.push() call
- InsightGenerator: added exif_dao() getter for scheduler reuse
Medium fixes:
- Input validation: run_hour clamped 0-23, week_dow clamped 0-6
- DST-sensitive timezone: fixed_tz_offset() with env var config
Low fixes:
- Documented REEL_PREGEN_MAX_TOOL_ITERS and REEL_PREGEN_TZ_FIXED_MINUTES
- Removed dead test_app_state function and unused imports
Also fix: UpsertUserAiPrefs import path, chrono::Local::with_ymd_and_hms
requires TimeZone trait + .single(), unwrap_or_else closure simplification
2026-06-13 14:59:00 -04:00
..
2026-06-13 14:59:00 -04:00
2026-06-11 21:40:40 -04:00
2026-04-26 23:55:33 -04:00
2026-05-25 15:33:03 -04:00
2026-06-13 14:29:34 -04:00
2026-06-13 14:29:34 -04:00
2026-01-14 13:33:36 -05:00
2026-06-13 14:59:00 -04:00
2026-06-12 22:31:08 -04:00
2026-04-10 14:58:57 -04:00
2026-06-09 18:29:44 -04:00
2026-04-26 23:55:33 -04:00
2026-05-27 13:13:48 -04:00
2026-05-15 16:10:52 -04:00
2026-05-25 15:33:03 -04:00
2026-05-07 12:40:50 -04:00
2026-06-13 14:29:34 -04:00
2023-03-18 14:43:41 -04:00
2026-05-06 19:42:41 -04:00
2026-04-30 12:45:55 +00:00
2026-06-13 14:29:34 -04:00
2026-05-27 13:13:48 -04:00
2026-06-02 22:04:42 -04:00
2026-06-13 14:29:34 -04:00
2025-12-19 14:20:51 -05:00
2026-05-14 16:01:16 -04:00
2026-05-27 13:13:48 -04:00
2026-05-15 16:10:52 -04:00
2026-06-13 14:29:34 -04:00
2026-05-27 13:13:48 -04:00
2026-06-13 14:59:00 -04:00
2026-06-13 14:29:34 -04:00
2026-05-06 18:33:37 -04:00
2026-05-03 17:36:01 -04:00
2026-05-11 19:21:00 -04:00
2023-03-19 15:05:20 -04:00
2026-06-13 14:29:34 -04:00
2026-06-13 14:29:34 -04:00
2026-05-27 22:30:19 -04:00
2026-05-25 15:33:03 -04:00
2026-04-23 17:20:12 -04:00
2026-05-15 16:10:52 -04:00