rho-coding-agent 2.9.0

A fast Rust agent harness with a small footprint and opinionated defaults
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use pretty_assertions::assert_eq;

use super::safe_message_text;

// Covers: terminal/bidi controls cannot hide or reorder message content.
// Owner: pure text sanitization, independent of card layout.
#[test]
fn message_controls_are_visible_without_changing_normal_unicode() {
    for (input, expected) in [
        ("first\n第二葌 πŸ‘©β€πŸ’»", "first\n第二葌 πŸ‘©β€πŸ’»"),
        ("a\r\tb\x1b[2J\0", "a\\r\\tb\\u{1b}[2J\\u{0}"),
        ("a\u{202e}b\u{2069}", "a\\u{202e}b\\u{2069}"),
    ] {
        assert_eq!(safe_message_text(input), expected);
    }
}