forked from Rockachopa/Timmy-time-dashboard
Fixes #1019 - DreamingEngine in src/timmy/dreaming.py selects past chat sessions when idle, calls the LLM to simulate alternative agent responses, extracts proposed rules, and persists them to data/dreams.db (SQLite) - Background scheduler in app.py triggers dream cycles every dreaming_cycle_seconds - /dreaming/partial HTMX endpoint renders DREAMING / IDLE / STANDBY status with recent proposed rules - 4 new pydantic-settings fields: dreaming_enabled, dreaming_idle_threshold_minutes, dreaming_cycle_seconds, dreaming_timeout_seconds - 15 unit tests — all pass Fix pytestmark and IF NOT EXISTS in test fixture to make tests runnable. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>