fix: accept zero-length Companion transcripts

This commit is contained in:
2026-09-01 01:41:16 +09:00
parent a9ad42a970
commit 879993b9b1
3 changed files with 31 additions and 1 deletions
+12
View File
@@ -24168,6 +24168,18 @@ mod tests {
let companion_transcript = get_json(app.clone(), "/api/companion/transcript").await;
assert_eq!(companion_transcript["total"], 0);
let empty_window = get_json(app.clone(), "/api/companion/transcript?start=0&limit=0").await;
assert_eq!(
empty_window,
json!({
"state": "stopped",
"start": 0,
"limit": 0,
"total": 0,
"next": null,
"items": [],
})
);
let host_workers = get_json(app.clone(), &format!("/api/hosts/{host_id}/workers")).await;
assert!(