This commit is contained in:
Owen Lin
2025-11-02 13:15:53 -08:00
parent afd59a99af
commit d8075b923c
6 changed files with 424 additions and 13 deletions

View File

@@ -52,11 +52,17 @@ async fn thread_archive_moves_rollout_into_archived_directory() -> Result<()> {
.path()
.join(SESSIONS_SUBDIR)
.join(format!("{}.jsonl", thread.id));
assert!(rollout_path.exists(), "expected {} to exist", rollout_path.display());
assert!(
rollout_path.exists(),
"expected {} to exist",
rollout_path.display()
);
// Archive the thread.
let archive_id = mcp
.send_thread_archive_request(ThreadArchiveParams { thread: thread.clone() })
.send_thread_archive_request(ThreadArchiveParams {
thread: thread.clone(),
})
.await?;
let archive_resp: JSONRPCResponse = timeout(
DEFAULT_READ_TIMEOUT,
@@ -93,4 +99,3 @@ approval_policy = "never"
sandbox_mode = "read-only"
"#
}