refactor(#2442): split harness-state persistence out of events.rs
This commit is contained in:
parent
bf657177d3
commit
91607f3896
7 changed files with 349 additions and 328 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue