botserver/src/automation
Rodrigo Rodriguez (Pragmatismo) e7e84c6cfc refactor: inject AppState into automation & bot, drop Default impl
- Updated `execute_compact_prompt` to accept an `Arc<AppState>` instead of creating a new default state, enabling proper state sharing across tasks.
- Adjusted bot orchestration to clone and pass the existing `AppState` to the automation task, ensuring the same connection and configuration are used.
- Removed the `Default` implementation for `AppState`, preventing accidental creation of a default state with hard‑coded DB connections and services.
- Modified `BotOrchestrator::default` to panic, enforcing explicit construction via `BotOrchestrator::new(state)` for clearer dependency injection.

These changes improve testability, avoid hidden side‑effects from default state initialization, and ensure consistent use of the application state throughout the system.
2025-11-07 16:13:47 -03:00
..
automation.test.rs feat: refactor auth and models, update LLM fallback strategy 2025-11-04 23:11:33 -03:00
compact_prompt.rs feat(prompt-compaction): add compacted message handling and forced compaction 2025-11-07 09:54:04 -03:00
mod.rs refactor: inject AppState into automation & bot, drop Default impl 2025-11-07 16:13:47 -03:00