MCPcopy Create free account
hub / github.com/c4pt0r/pie / compaction_trigger

Function compaction_trigger

crates/coding-agent/src/hooks.rs:743–747  ·  view source on GitHub ↗
(from_hook: bool)

Source from the content-addressed store, hash-verified

741}
742
743fn compaction_trigger(from_hook: bool) -> &'static str {
744 // In current AgentHarness call sites, true is the explicit `force_compact` path used by
745 // `/compact`; false is the threshold-based automatic compaction path.
746 if from_hook { "manual" } else { "auto" }
747}
748
749fn env_for(payload: &HookPayload, payload_path: &Path) -> BTreeMap<String, String> {
750 let mut env = BTreeMap::new();

Callers 1

from_harness_eventMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected