codetether-agent 4.5.7

A2A-native AI coding agent for the CodeTether ecosystem
Documentation
use ratatui::{
    Frame,
    layout::Rect,
    text::Line,
    widgets::{Block, Borders, Paragraph, Wrap},
};

pub fn render_sessions_summary(f: &mut Frame, area: Rect, count: usize, selected: usize) {
    let lines = vec![
        Line::from("Workspace Sessions Summary"),
        Line::from(""),
        Line::from(format!("Sessions found: {count}")),
        Line::from(format!("Selected index: {selected}")),
        Line::from(""),
        Line::from("Use /sessions from chat to open the full session picker."),
    ];

    let widget = Paragraph::new(lines)
        .block(Block::default().borders(Borders::ALL).title("Sessions"))
        .wrap(Wrap { trim: false });
    f.render_widget(widget, area);
}