opencrabs 0.5.13

The autonomous, self-improving AI agent. Single Rust binary. Every channel. Recommended: the 40MB prebuilt binary for macOS, Linux and Windows: https://github.com/opencrabs/opencrabs/releases
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! The chat area paints the theme background instead of wiping it (#2163).

#[test]
fn the_chat_area_paints_the_canvas_after_clearing() {
    let src = include_str!("../tui/render/chat.rs");
    let clear = src
        .find("f.render_widget(Clear, area);\n    if let Some(bg) = super::theme::background()")
        .expect("chat clears and then paints the canvas");
    let paragraph = src
        .find("f.render_widget(chat, area);")
        .expect("chat paragraph drawn");
    assert!(
        clear < paragraph,
        "the canvas must be painted before the chat text"
    );
}