MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / reset_counter_for_codex_event

Function reset_counter_for_codex_event

src/hooks/codex.rs:519–526  ·  view source on GitHub ↗
(event_json: &str)

Source from the content-addressed store, hash-verified

517}
518
519async fn reset_counter_for_codex_event(event_json: &str) {
520 let Some(project_root) = codex_project_root_from_event(event_json) else {
521 return;
522 };
523 if let Ok(cg) = crate::tracedecay::TraceDecay::open(&project_root).await {
524 let _ = cg.reset_local_counter().await;
525 }
526}
527
528fn deduped_codex_hint(
529 event_json: &str,

Callers 1

Calls 2

reset_local_counterMethod · 0.80

Tested by

no test coverage detected