Skip to content

AI media harness for planning, generating, and editing locally

TypeScript

Test installed provider readiness probes

Bitti4c66df908994
diff --git a/src-tauri/src/agent.rs b/src-tauri/src/agent.rs
index 0edda43..457146c 100644
--- a/src-tauri/src/agent.rs
+++ b/src-tauri/src/agent.rs
@@ -747,4 +747,18 @@ mod tests {
}
}
}
+
+ #[test]
+ fn installed_provider_probes_end_in_ready_or_auth_required() {
+ for status in provider_statuses(&BTreeMap::new()) {
+ if status.executable.is_some() {
+ assert!(
+ matches!(status.state, "ready" | "authRequired"),
+ "{}: {}",
+ status.label,
+ status.detail
+ );
+ }
+ }
+ }
}