refactor(#2442): split harness-state persistence out of events.rs

This commit is contained in:
damocles 2026-07-14 21:15:37 +02:00
commit 91607f3896
7 changed files with 349 additions and 328 deletions

View file

@ -245,7 +245,7 @@ pub fn stall_sleep_secs() -> u64 {
/// for `claude-sonnet-4-6`).
fn effective_context_window(bus: &Bus) -> u64 {
bus.api_context_window()
.unwrap_or_else(|| crate::events::context_window_tokens(&bus.model()))
.unwrap_or_else(|| crate::harness_state::context_window_tokens(&bus.model()))
}
/// Resolve the auto-reset watermark. Priority order: