codetether-agent 4.7.0-a-002.4

A2A-native AI coding agent for the CodeTether ecosystem
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Persistence helpers for live tool context.

use std::time::Instant;

use crate::session::Session;

/// Save the current session before executing a history-sensitive tool.
pub(super) async fn before_tool(session: &Session) -> Instant {
    let _ = session.save().await;
    Instant::now()
}