Skip to content

An agent-managed museum exhibit, built in Rust with Gajae-Code / LazyCodex — developed and maintained with no human intervention.

Rust

feat(tools): wire SummaryCompressor into lane.finished event detail

Jobdori2dfda31b2607
diff --git a/rust/crates/tools/src/lib.rs b/rust/crates/tools/src/lib.rs
index 4b9d98bc..aaeb346a 100644
--- a/rust/crates/tools/src/lib.rs
+++ b/rust/crates/tools/src/lib.rs
@@ -16,6 +16,7 @@ use runtime::{
mcp_tool_bridge::McpToolRegistry,
permission_enforcer::{EnforcementResult, PermissionEnforcer},
read_file,
+ summary_compression::compress_summary_text,
task_registry::TaskRegistry,
team_cron_registry::{CronRegistry, TeamRegistry},
worker_boot::{WorkerReadySnapshot, WorkerRegistry},
@@ -3162,12 +3163,15 @@ fn persist_agent_terminal_state(
});
} else {
next_manifest.current_blocker = None;
+ let compressed_detail = result
+ .filter(|value| !value.trim().is_empty())
+ .map(|value| compress_summary_text(value.trim()));
next_manifest.lane_events.push(LaneEvent {
event: LaneEventName::Finished,
status: status.to_string(),
emitted_at: iso8601_now(),
failure_class: None,
- detail: None,
+ detail: compressed_detail,
});
}
write_agent_manifest(&next_manifest)