Lightweight coding agent that runs in your terminal
Rust
use super::*;
#[test]
fn device_code_prompt_renders_phishing_warning() {
let prompt = device_code_prompt("https://example.com/device", "ABCD-EFGH");
assert!(prompt.contains(
"\x1b[90mContinue only if you started this login in Codex. If a website or another person gave you this code, cancel.\x1b[0m"
));
}