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
//! A new channel session inherits a provider only when the config enables it
//! (#2158). A disabled provider falls back to the [agent] default.

#[test]
fn inherited_providers_are_checked_against_the_enabled_flag() {
    let src = include_str!("../channels/session_init.rs");
    assert!(
        src.contains("provider_enabled(cfg, name)"),
        "an inherited provider must be checked against the enabled flag"
    );
    assert!(
        src.contains("fn provider_enabled"),
        "the enabled check must be a named helper"
    );
}