Watch
0
0
Fork
You've already forked hyperhive
0

rustfmt the soft context limit change

This commit is contained in:
damocles 2026-11-15 16:15:19 +01:00 • committed by mara
commit 7dd988a9e8
2 changed files with 10 additions and 4 deletions

View file

@ -144,7 +144,9 @@ pub async fn run(bus: Bus) {
loop {
if let Some(read) = read(&client, &agent).await {
overridden.apply(&read, &target);
target.bus.set_soft_context_percent(read.soft_context_percent);
target
.bus
.set_soft_context_percent(read.soft_context_percent);
}
tokio::time::sleep(POLL_INTERVAL).await;
}

View file

@ -8,11 +8,11 @@
use std::path::{Path, PathBuf};
use anyhow::Result;
use hive_claude::{CompactionPolicy, Usage};
use hive_runtime::{
AcpRuntime, AgentRuntime, ClaudeRuntime, Config, PercentPolicy, PermissionAsk,
PermissionPolicy, Runtime, RuntimeSpec, Sink,
};
use hive_claude::{CompactionPolicy, Usage};
use serde_json::Value;
use crate::events::{Bus, LiveEvent};
@ -891,12 +891,12 @@ fn archive_session(bus: &Bus, session: &AgentSession) {
#[cfg(test)]
mod tests {
use super::{PercentPolicy, SoftLimitPolicy};
use super::{
PermissionAsk, TurnError, TurnOutcome, acp_permits, apply_telemetry, emit_turn_end,
error_to_turn, nonzero_or, parse_u64, report_compact, runtime_error_to_turn,
with_turn_end_compact,
};
use super::{PercentPolicy, SoftLimitPolicy};
use crate::events::{Bus, LiveEvent};
use hive_claude::{CompactionPolicy, Usage};
use hive_runtime::{AcpError, Error};