//! Recordings in Comms on a Comms phone that started its own database: Calls //! lists them by day, a file brought in becomes one, the page says where its //! words are made, his language and Save as note. Every recording, person and //! word is invented. use serde_json::{json, Value}; use crate::handle::CottonHandle; use crate::methods::dispatch; fn phone() -> (tempfile::TempDir, CottonHandle) { let dir = tempfile::tempdir().unwrap(); let handle = crate::phone::chat_app::mail::tests::comms(&dir, cotton_core::flavor::Flavor::Real); (dir, handle) } fn ask(handle: &CottonHandle, method: &str, request: Value) -> Value { dispatch(handle, method, &request).unwrap_or_else(|error| panic!("{method} {request}: {} {}", error.code, error.message)) } fn data(handle: &CottonHandle, table: &str, id: &str) -> Value { let got = ask(handle, "records.get", json!({ "table": table, "id": id })); if got["data"].is_object() { got["data"].clone() } else { got["record"]["data"].clone() } } /// A recorder's AAC as Android leaves it: ADTS frames (silent ones will do for the store). fn aac(path: &std::path::Path) { let mut bytes = Vec::new(); for _ in 0..50 { bytes.extend_from_slice(&[0xFF, 0xF1, 0x60, 0x40, 0x01, 0x7F, 0xFC]); bytes.extend_from_slice(&[0u8; 4]); } std::fs::create_dir_all(path.parent().unwrap()).unwrap(); std::fs::write(path, bytes).unwrap(); } fn recorded(handle: &CottonHandle, kind: &str, duration_ms: i64) -> String { let started = ask(handle, "meetings.record.start", json!({ "kind": kind })); let id = started["meeting"].as_str().unwrap().to_string(); let path = std::path::Path::new(started["audio_path"].as_str().unwrap()).with_extension("aac"); aac(&path); ask(handle, "meetings.record.stop", json!({ "id": id, "path": path.to_string_lossy(), "format": "aac", "duration_ms": duration_ms })); id } fn transcript() -> Value { json!({ "by": "phone:sherpa:test", "languages": ["en"], "speakers": [{ "label": "S1" }, { "label": "S2" }], "lines": [ { "speaker": "S1", "start_ms": 0, "end_ms": 2_000, "text": "Shall we fix the date for the river walk?", "language": "en" }, { "speaker": "S2", "start_ms": 2_100, "end_ms": 4_000, "text": "Saturday works for me.", "language": "en" } ] }) } /// RULE (owner, 23 Nov 2026; DECISIONS "Recordings"): Calls lists the recordings with the calls, newest first, each row saying its day, and offers Record at the top; a recording's row is its title, its length and its state. #[test] fn calls_lists_the_recordings_by_day_with_a_record_button() { let (_dir, handle) = phone(); let id = recorded(&handle, "meeting", 125_000); let calls = ask(&handle, "chat.calls", json!({})); assert_eq!(calls["words"]["record"], "Record"); assert_eq!(calls["words"]["import"], "Bring in a recording"); let rows = calls["rows"].as_array().unwrap(); assert_eq!(rows.len(), 1, "{calls}"); assert_eq!(rows[0]["kind"], "recording"); assert_eq!(rows[0]["recording"], json!(id)); assert_eq!(rows[0]["name"], "Meeting"); assert_eq!(rows[0]["line"], "2 min · Waiting to be turned into words"); assert_eq!(rows[0]["day"], "Today"); assert_eq!(rows[0]["mark"], "recording"); // A recording still recording is not a row yet; a memo says so. ask(&handle, "meetings.record.start", json!({ "kind": "meeting" })); let memo = recorded(&handle, "memo", 30_000); let rows = ask(&handle, "chat.calls", json!({}))["rows"].as_array().unwrap().clone(); assert_eq!(rows.len(), 2); assert_eq!(rows[0]["recording"], json!(memo)); assert_eq!(rows[0]["name"], "Voice memo"); assert_eq!(rows[0]["line"], "30 sec · Waiting to be turned into words"); } /// RULE (owner, 23 Nov 2026; DECISIONS "Recordings"): an audio file shared or opened into Comms becomes a recording heard the same way: its title the file's name, `source: import`, waiting for words; a file that is not audio is refused in plain words. #[test] fn a_file_brought_in_becomes_a_recording() { let (dir, handle) = phone(); for (name, mime) in [("Team sync.m4a", None), ("voice note.ogg", Some("audio/ogg")), ("call.3gp", None), ("memo", Some("audio/amr"))] { let path = dir.path().join("shared").join(name); aac(&path); let mut request = json!({ "path": path.to_string_lossy(), "name": name, "duration_ms": 61_000 }); if let Some(mime) = mime { request["mime"] = json!(mime); } let made = ask(&handle, "meetings.import", request); assert_eq!(made["status"], "waiting", "{name}: {made}"); let row = data(&handle, "meetings_meeting", made["meeting"].as_str().unwrap()); assert_eq!(row["source"], "import"); assert_eq!(row["title"], json!(std::path::Path::new(name).file_stem().unwrap().to_str().unwrap())); assert_eq!(row["duration_ms"], 61_000); assert!(path.exists(), "the shared file is the sharer's, left where it was"); } let text = dir.path().join("shared").join("notes.txt"); std::fs::write(&text, "not a recording").unwrap(); let refused = dispatch(&handle, "meetings.import", &json!({ "path": text.to_string_lossy() })).unwrap_err(); assert_eq!((refused.code.as_str(), refused.message.as_str()), ("not_audio", "That file isn't a recording Comms can open.")); } /// RULE (owner, 24 Nov 2026): a recording brought in keeps the file's own date, not the moment it came in; his to /// change on its page, its end moving with it, never to later than now. #[test] fn a_recording_brought_in_keeps_its_date_and_he_can_change_it() { let (dir, handle) = phone(); let path = dir.path().join("shared").join("Invented memo.m4a"); aac(&path); let made = ask(&handle, "meetings.import", json!({ "path": path.to_string_lossy(), "name": "Invented memo.m4a", "duration_ms": 61_000, "recorded": "20251120T103112.000Z" })); let id = made["meeting"].as_str().unwrap().to_string(); assert_eq!(data(&handle, "meetings_meeting", &id)["started_at"], "2025-11-20T10:31:12.000Z"); let page = ask(&handle, "chat.recording", json!({ "id": id })); assert_eq!((page["buttons"]["date"]["date"].clone(), page["buttons"]["date"]["time"].clone()), (json!("2025-11-20"), json!("16:01")), "on his wall clock (the phone's zone is India's): {}", page["buttons"]["date"]); assert_eq!((page["buttons"]["date"]["label"].clone(), page["buttons"]["date"]["at"].clone()), (json!("Change date and time"), json!("2025-11-20T10:31:12.000Z"))); // No time of its own: the file's last change, read from the file. let other = dir.path().join("shared").join("Invented walk.m4a"); aac(&other); let changed = chrono::DateTime::parse_from_rfc3339("2025-10-02T07:15:00Z").unwrap().timestamp_millis(); let walk = ask(&handle, "meetings.import", json!({ "path": other.to_string_lossy(), "name": "Invented walk.m4a", "modified_ms": changed })); assert_eq!(data(&handle, "meetings_meeting", walk["meeting"].as_str().unwrap())["started_at"], "2025-10-02T07:15:00.000Z"); let done = ask(&handle, "chat.recording.act", json!({ "id": id, "act": "date", "date": "2025-11-19", "time": "08:05" })); assert_eq!(done["said"], "Date changed"); let row = data(&handle, "meetings_meeting", &id); assert_eq!(row["started_at"], "2025-11-19T02:35:00.000Z", "08:05 on his wall clock"); if row["ended_at"].is_string() { assert_eq!(row["ended_at"], "2025-11-19T02:36:01.000Z", "its length stays"); } assert_eq!(done["page"]["buttons"]["date"]["date"], "2025-11-19"); // An instant with any offset, as the iPhone's picker gives it. ask(&handle, "chat.recording.act", json!({ "id": id, "act": "date", "at": "2025-11-19T13:35:00+05:30" })); assert_eq!(data(&handle, "meetings_meeting", &id)["started_at"], "2025-11-19T08:05:00.000Z"); for later in [json!({ "date": "2099-01-01", "time": "00:00" }), json!({ "at": "2099-01-01T00:00:00Z" })] { let mut request = json!({ "id": id, "act": "date" }); request.as_object_mut().unwrap().extend(later.as_object().unwrap().clone()); let refused = dispatch(&handle, "chat.recording.act", &request).unwrap_err(); assert_eq!((refused.code.as_str(), refused.message.as_str()), ("future", "A recording can't be dated later than now.")); } } /// RULE (owner, 23 Nov 2026; DECISIONS "Recordings"): a phone hears a recording on charge, or off charge when it is at most fifteen minutes and the battery holds at least 30; never one he said is in two languages, which waits for the Mac; and the page says where its words are made. #[test] fn a_phone_takes_a_short_recording_off_charge_and_leaves_two_languages_to_the_mac() { let (_dir, handle) = phone(); let long = recorded(&handle, "meeting", 40 * 60_000); let short = recorded(&handle, "memo", 2 * 60_000); assert_eq!(ask(&handle, "meetings.next", json!({ "on": "phone", "charging": false }))["meeting"], Value::Null, "no battery said: off charge, nothing"); assert_eq!(ask(&handle, "meetings.next", json!({ "on": "phone", "charging": false, "battery": 20 }))["meeting"], Value::Null); assert_eq!(ask(&handle, "chat.recording", json!({ "id": long }))["where"]["line"], "Waiting for this phone to charge, or for your Mac"); let took = ask(&handle, "meetings.next", json!({ "on": "phone", "charging": false, "battery": 64, "languages": ["en"] })); assert_eq!(took["meeting"], json!(short), "{took}"); let page = ask(&handle, "chat.recording", json!({ "id": short })); assert_eq!(page["where"], json!({ "on": "phone", "line": "On this phone" })); assert_eq!(page["status_line"], "On this phone", "the transcript's place says the same: {page}"); // He says the long one is Telugu and English: the Mac's, never a phone's. let said = ask(&handle, "chat.recording.act", json!({ "id": long, "act": "language", "languages": ["te", "en"] })); assert_eq!(said["said"], "Your Mac will turn it into words again in Telugu and English."); assert_eq!(said["page"]["language"]["line"], "Telugu and English"); assert_eq!(said["page"]["where"]["line"], "Waiting for your Mac"); assert_eq!(ask(&handle, "meetings.next", json!({ "on": "phone", "charging": true }))["meeting"], Value::Null); // A Mac's claim reads as the Mac's. let row = data(&handle, "meetings_meeting", &long); assert_eq!(row["transcribe_on"], "mac"); } /// RULE (owner, 23 Nov 2026; DECISIONS "Recordings"): the page names each speaker from his people once he ties one, points at his assistant for a summary while there is none, and Save as note writes one note in his copy, brought up to date when saved again. #[test] fn the_page_names_speakers_and_save_as_note_keeps_one_note() { let (_dir, handle) = phone(); let id = recorded(&handle, "meeting", 4_000); ask(&handle, "meetings.transcribed", json!({ "meeting": id, "transcript": transcript() })); let page = ask(&handle, "chat.recording", json!({ "id": id })); assert_eq!(page["status"], "ready"); assert_eq!(page["where"]["line"], "On this phone", "the words were made here"); assert_eq!(page["summary"]["note"], "Ask your assistant to summarise this."); assert_eq!(page["lines"][1]["name"], "Speaker 2"); assert_eq!(page["language"]["line"], "English, picked by Cotton"); let ws = crate::phone::cotton_chat::read(&handle.client(), "test.ws", |ctx| Ok(json!(ctx.workspace_id))).unwrap().as_str().unwrap().to_string(); handle .client() .with_writer(|replica| { replica .driver .run("INSERT INTO cotton_people (id, workspace_id, full_name, created_at, updated_at) VALUES ('p-chitra', ?, 'Chitra Invented', '2026-11-01', '2026-11-01')", &[rusqlite::types::Value::Text(ws.clone())]) .map(|_| ()) .map_err(|e| e.to_string()) }) .unwrap(); let person = "p-chitra".to_string(); let second = page["speakers"][1]["speaker"].as_str().unwrap().to_string(); let named = ask(&handle, "chat.recording.act", json!({ "id": id, "act": "name", "speaker": second, "person": person })); assert_eq!(named["page"]["speakers"][1]["name"], "Chitra Invented"); assert_eq!(named["page"]["lines"][1]["name"], "Chitra Invented"); ask(&handle, "chat.recording.act", json!({ "id": id, "act": "title", "title": "River walk plan" })); let saved = ask(&handle, "chat.recording.act", json!({ "id": id, "act": "note" })); assert_eq!(saved["said"], "Saved to Words"); assert_eq!(saved["page"]["buttons"]["note"], json!({ "label": "Update the note", "saved": true })); let note = data(&handle, "meetings_meeting", &id)["note"].as_str().unwrap().to_string(); let first = data(&handle, "note", ¬e); assert!(first["title"].as_str().unwrap().starts_with("River walk plan, "), "{first}"); let body = first["body"].as_str().unwrap(); assert!(body.contains("**Chitra Invented** 0:02 \nSaturday works for me."), "{body}"); ask(&handle, "chat.recording.act", json!({ "id": id, "act": "title", "title": "River walk, Saturday" })); ask(&handle, "chat.recording.act", json!({ "id": id, "act": "note" })); assert_eq!(data(&handle, "meetings_meeting", &id)["note"], json!(note), "the same note, brought up to date"); assert!(data(&handle, "note", ¬e)["title"].as_str().unwrap().starts_with("River walk, Saturday, ")); } /// RULE (owner, 23 Nov 2026; DECISIONS "Recordings"): while recording the screen shows the time running and a clear Stop; with little room left it says how many minutes remain, and at the last few megabytes it says it stopped and kept everything. #[test] fn the_recording_screen_says_the_time_and_the_room_left() { let (_dir, handle) = phone(); let live = ask(&handle, "chat.recording.live", json!({ "duration_ms": 247_000, "free_bytes": 8_000_000_000i64 })); assert_eq!((live["time"].as_str(), live["stop"].as_str(), live["title"].as_str()), (Some("4:07"), Some("Stop"), Some("Recording"))); assert_eq!(live["space"], Value::Null); let low = ask(&handle, "chat.recording.live", json!({ "duration_ms": 0, "free_bytes": 300 * 1024 * 1024 })); assert_eq!(low["space"], json!({ "line": "Space for about 136 more minutes", "stop": false })); let full = ask(&handle, "chat.recording.live", json!({ "duration_ms": 0, "free_bytes": 10 * 1024 * 1024, "kind": "call" })); assert_eq!(full["space"]["stop"], true); assert_eq!(full["title"], "Taking notes"); } /// RULE (owner, 23 Nov 2026): a recording deleted goes with its words; a to-do made from it stays. #[test] fn a_deleted_recording_leaves_calls() { let (_dir, handle) = phone(); let id = recorded(&handle, "memo", 3_000); ask(&handle, "meetings.transcribed", json!({ "meeting": id, "transcript": transcript() })); let gone = ask(&handle, "chat.recording.act", json!({ "id": id, "act": "delete" })); assert_eq!(gone["said"], "Recording deleted"); assert!(ask(&handle, "chat.calls", json!({}))["rows"].as_array().unwrap().is_empty()); assert_eq!(dispatch(&handle, "chat.recording", &json!({ "id": id })).unwrap_err().code, "not_found"); } /// RULE (owner, 23 Nov 2026; DECISIONS "Recordings": a recording is never lost): a copy whose server still serves /// Meetings' table of before (no source, call or the rest) keeps a recording and a file brought in all the same, as a /// recording in the room, and Calls lists them (seen on emulator-5608 against dev: Stop refused over "source"). #[test] fn a_server_of_before_still_keeps_the_recording() { let (dir, handle) = phone(); let ws = crate::phone::cotton_chat::read(&handle.client(), "test.ws", |ctx| Ok(json!(ctx.workspace_id))).unwrap().as_str().unwrap().to_string(); handle .client() .with_writer(|replica| { let row = replica .driver .all("SELECT definition FROM cotton_table_definitions WHERE workspace_id = ? AND id = 'meetings_meeting'", &[rusqlite::types::Value::Text(ws.clone())]) .map_err(|e| e.to_string())?; let mut definition: Value = serde_json::from_str(row[0].text("definition").unwrap()).unwrap(); let late = ["source", "call", "tracks", "languages_chosen", "note", "transcribing_on"]; definition["columns"].as_array_mut().unwrap().retain(|c| !late.contains(&c["key"].as_str().unwrap())); if let Some(clear) = definition["seal"]["clear"].as_array_mut() { clear.retain(|c| !late.contains(&c.as_str().unwrap_or_default())); } replica .driver .run("UPDATE cotton_table_definitions SET definition = ? WHERE workspace_id = ? AND id = 'meetings_meeting'", &[rusqlite::types::Value::Text(definition.to_string()), rusqlite::types::Value::Text(ws.clone())]) .map(|_| ()) .map_err(|e| e.to_string()) }) .unwrap(); let id = recorded(&handle, "meeting", 2 * 60_000); assert_eq!(data(&handle, "meetings_meeting", &id)["status"], "waiting"); let path = dir.path().join("shared").join("Walk plan.m4a"); aac(&path); let made = ask(&handle, "meetings.import", json!({ "path": path.to_string_lossy(), "name": "Walk plan.m4a" })); assert_eq!(made["status"], "waiting", "{made}"); let took = ask(&handle, "meetings.next", json!({ "on": "phone", "charging": true })); assert!(took["meeting"].is_string(), "a phone still takes it: {took}"); let calls = ask(&handle, "chat.calls", json!({})); assert_eq!(calls["rows"].as_array().unwrap().iter().filter(|r| r["kind"] == "recording").count(), 2, "{calls}"); } /// RULE (owner via the coordinator, 23 Nov 2026: Cotton has no model of its own): a ready recording with no summary /// asks him to have his assistant summarise it, which reads the transcript inside Your Claude's grant and writes the /// summary back (the Worker's `recording_summary_write`); the page draws it when it lands and says who made it, his /// assistant or his Mac. One he asked his Mac for says the Mac makes it until it does. #[test] fn a_summary_his_assistant_writes_is_drawn_and_says_who_made_it() { let (_dir, handle) = phone(); let id = recorded(&handle, "memo", 4_000); ask(&handle, "meetings.transcribed", json!({ "meeting": id, "transcript": transcript() })); let page = ask(&handle, "chat.recording", json!({ "id": id })); assert_eq!(page["summary"], json!({ "note": "Ask your assistant to summarise this." })); assert_eq!(page["buttons"]["summary"]["label"], "Ask your Mac for the summary", "the Mac path stays"); // Asked of his Mac: the Mac makes it. ask(&handle, "chat.recording.act", json!({ "id": id, "act": "summary" })); assert_eq!(ask(&handle, "chat.recording", json!({ "id": id }))["summary"]["note"], "Your Mac makes the summary"); // His assistant writes it (as the Worker's tool lands it): drawn, and said to be his assistant's. let patch = json!({ "summary": "- Saturday suits both.\n- They walk by the river.", "actions": "Book the boat", "summarised_by": "Claude", "summarised_at": "2026-11-23T20:00:00.000Z" }); ask(&handle, "records.update", json!({ "table": "meetings_meeting", "id": id, "patch": patch })); let page = ask(&handle, "chat.recording", json!({ "id": id })); assert_eq!(page["summary"], json!({ "points": ["Saturday suits both.", "They walk by the river."], "by": "Made by your assistant" })); assert!(page["buttons"]["summary"].is_null(), "nothing left to ask"); // His Mac's: said to be his Mac's. ask(&handle, "records.update", json!({ "table": "meetings_meeting", "id": id, "patch": { "summarised_by": "mac:llama:qwen3-8b" } })); assert_eq!(ask(&handle, "chat.recording", json!({ "id": id }))["summary"]["by"], "Made on your Mac"); } /// RULE (MEETINGS-RETIRE "Marks on the lines", coordinator 24 Nov 2026): a mark made while recording stands on the /// line it fell in, the last that began at or before it; the page says the word to draw. #[test] fn a_mark_stands_on_the_line_it_fell_in() { let (_dir, handle) = phone(); let started = ask(&handle, "meetings.record.start", json!({ "kind": "meeting" })); let id = started["meeting"].as_str().unwrap().to_string(); let path = std::path::Path::new(started["audio_path"].as_str().unwrap()).with_extension("aac"); aac(&path); ask(&handle, "meetings.record.stop", json!({ "id": id, "path": path.to_string_lossy(), "format": "aac", "duration_ms": 4_000, "marks": [3_000] })); ask(&handle, "meetings.transcribed", json!({ "meeting": id, "transcript": transcript() })); let page = ask(&handle, "chat.recording", json!({ "id": id })); assert_eq!((page["lines"][0]["marked"].clone(), page["lines"][1]["marked"].clone()), (json!(false), json!(true)), "{page}"); assert_eq!(page["words"]["marked"], "Marked"); } /// RULE (MEETINGS-RETIRE.md, 23 Nov 2026): Comms' recording page carries what Meetings had and Comms lacked: search within the transcript (each hit line cut into parts, é found as e), the ±15 s skip, and export of the transcript as text or subtitles, or the audio, as one file named by the recording's title. #[test] fn the_page_searches_skips_and_exports() { let (_dir, handle) = phone(); let id = recorded(&handle, "meeting", 4_000); let mut said = transcript(); said["lines"][1]["text"] = json!("Saturday works; the RIVER café opens at nine."); ask(&handle, "meetings.transcribed", json!({ "meeting": id, "transcript": said })); // No query: the hint, no hits. let page = ask(&handle, "chat.recording", json!({ "id": id })); assert_eq!(page["search"], json!({ "hint": "Search what was said", "query": null, "hits": [], "line": null })); // A query: each line holding it, in the line's own letters, case and accents aside. let found = ask(&handle, "chat.recording", json!({ "id": id, "query": " river " })); assert_eq!(found["search"]["line"], "2 lines"); assert_eq!(found["search"]["hits"][0]["parts"], json!([{ "text": "Shall we fix the date for the ", "hit": false }, { "text": "river", "hit": true }, { "text": " walk?", "hit": false }])); assert_eq!(found["search"]["hits"][1]["start_ms"], 2_100); assert_eq!(found["search"]["hits"][1]["parts"][1], json!({ "text": "RIVER", "hit": true })); let cafe = ask(&handle, "chat.recording", json!({ "id": id, "query": "cafe" })); assert_eq!(cafe["search"]["line"], "1 line"); assert_eq!(cafe["search"]["hits"][0]["parts"][1], json!({ "text": "café", "hit": true })); assert_eq!(ask(&handle, "chat.recording", json!({ "id": id, "query": "monsoon" }))["search"]["line"], "Not said in this recording"); // The skip under the scrubber. assert_eq!(page["buttons"]["skip"], json!({ "back": { "label": "Back 15 seconds", "ms": -15_000 }, "ahead": { "label": "Ahead 15 seconds", "ms": 15_000 } })); // Export: three kinds, each one file named by the title. let kinds: Vec<&str> = page["buttons"]["export"]["choices"].as_array().unwrap().iter().map(|c| c["format"].as_str().unwrap()).collect(); assert_eq!(kinds, ["text", "srt", "audio"]); ask(&handle, "chat.recording.act", json!({ "id": id, "act": "title", "title": "River walk: the plan" })); let text = ask(&handle, "chat.recording.act", json!({ "id": id, "act": "export", "format": "text" }))["file"].clone(); assert_eq!((text["name"].as_str(), text["type"].as_str()), (Some("River walk the plan.txt"), Some("text/plain"))); assert!(std::fs::read_to_string(text["path"].as_str().unwrap()).unwrap().contains("Saturday works")); let srt = ask(&handle, "chat.recording.act", json!({ "id": id, "act": "export", "format": "srt" }))["file"].clone(); assert_eq!(srt["name"], "River walk the plan.srt"); assert!(std::fs::read_to_string(srt["path"].as_str().unwrap()).unwrap().starts_with("1\n00:00:00,000 --> 00:00:02,000\n")); let audio = ask(&handle, "chat.recording.act", json!({ "id": id, "act": "export", "format": "audio" }))["file"].clone(); assert_eq!(audio["name"], "River walk the plan.aac"); assert!(std::path::Path::new(audio["path"].as_str().unwrap()).is_file()); // A kind there is not: refused. assert!(dispatch(&handle, "chat.recording.act", &json!({ "id": id, "act": "export", "format": "pdf" })).is_err()); } /// RULE (android-finish on dev, 23 Nov 2026): a recording made into words that holds none says "Nothing was heard" under What was said, not "Ready". #[test] fn a_ready_recording_with_no_words_says_nothing_was_heard() { let (_dir, handle) = phone(); let id = recorded(&handle, "memo", 4_000); ask(&handle, "meetings.transcribed", json!({ "meeting": id, "transcript": { "by": "phone:sherpa:test", "languages": ["en"], "speakers": [], "lines": [] } })); let page = ask(&handle, "chat.recording", json!({ "id": id })); assert_eq!((page["status"].as_str(), page["status_line"].as_str()), (Some("ready"), Some("Nothing was heard")), "{page}"); }