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
12
13
//! Tests for [`crate::session::index_produce::summary_text`].

use super::summary_text::{clamp_tokens, strip_stats_header};

#[test]
fn strips_router_banner() {
    assert_eq!(strip_stats_header("[RLM: x]\n\nbody"), "body");
}

#[test]
fn clamps_long_text() {
    assert!(clamp_tokens(&"a".repeat(1000), 10).len() < 1000);
}