fix(chat): capture du final et cause réelle des fins de tour « Le modèle n'a renvoyé aucune réponse. » — #231

This commit is contained in:
2026-08-21 20:45:50 +02:00
parent c1d7f6dd27
commit 3f3eb5938a
4 changed files with 44 additions and 38 deletions

View File

@ -183,6 +183,13 @@ fn error_dto_carries_stable_code_and_message() {
assert!(v.get("message").is_some());
}
#[test]
fn error_dto_preserves_structured_no_final_code() {
let dto = ErrorDto::from(AppError::TargetReturnedNoReply("architect".into()));
assert_eq!(dto.code, "TARGET_RETURNED_NO_REPLY");
assert!(dto.message.contains("structured Final response"));
}
#[test]
fn domain_event_relay_name_is_frozen() {
assert_eq!(DOMAIN_EVENT, "domain://event");