Skip to content

Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.

fix(cli): pass `ov wait` timeout in request body, not URL query (#2219)

Zayn Jarvisb80a9c1a842b
diff --git a/crates/ov_cli/src/commands/system.rs b/crates/ov_cli/src/commands/system.rs
index f8efabf10..99d6f2519 100644
--- a/crates/ov_cli/src/commands/system.rs
+++ b/crates/ov_cli/src/commands/system.rs
@@ -9,13 +9,9 @@ pub async fn wait(
output_format: OutputFormat,
compact: bool,
) -> Result<()> {
- let path = if let Some(t) = timeout {
- format!("/api/v1/system/wait?timeout={}", t)
- } else {
- "/api/v1/system/wait".to_string()
- };
-
- let response: serde_json::Value = client.post(&path, &json!({})).await?;
+ let response: serde_json::Value = client
+ .post("/api/v1/system/wait", &json!({ "timeout": timeout }))
+ .await?;
output_success(&response, output_format, compact);
Ok(())
}