()
| 954 | |
| 955 | #[test] |
| 956 | fn test_display_long_prompt_truncated() { |
| 957 | let long_prompt = "a".repeat(200); |
| 958 | let e = SessionEnvelope::builder("s", "a") |
| 959 | .prompt_summary(long_prompt) |
| 960 | .build(); |
| 961 | let s = e.to_string(); |
| 962 | assert!(s.contains("...")); |
| 963 | // Full display should be bounded |
| 964 | assert!(s.len() < 200); |
| 965 | } |
| 966 | |
| 967 | // Serde (JSON) roundtrip — for debugging/inspection |
| 968 |
nothing calls this directly
no test coverage detected