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
14
15
16
17
//! Tool-result scanning for checkpoint state extraction.

use super::{checkpoint_text, checkpoint_walk::ScanState};
use crate::provider::ContentPart;

pub(super) fn scan(parts: &[ContentPart], state: &mut ScanState) {
    for part in parts {
        if let ContentPart::ToolResult { content, .. } = part {
            checkpoint_text::extract_browser_url(content, &mut state.browser_url);
            if content.contains("error") || content.contains("Error") {
                state
                    .blockers
                    .push(checkpoint_text::truncate_to_line(content, 200));
            }
        }
    }
}