The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(openai_oauth): tidy imports and formatting in oauth tests
Steven Enamakel31a470f879ec
diff --git a/.openhuman/subagent_checkpoints/lifecycle/sha256-104b4ca1337d4677b5ed7c90f95b6f35f7c4bba733aeb5bd7a8851bb075977ac.lock b/.openhuman/subagent_checkpoints/lifecycle/sha256-104b4ca1337d4677b5ed7c90f95b6f35f7c4bba733aeb5bd7a8851bb075977ac.locknew file mode 100644index 0000000000..e69de29bb2diff --git a/.openhuman/subagent_checkpoints/lifecycle/sha256-63de7194216416a97c2d1a53663ee9d92c807cc4d1ac1284cc64164171eb96de.lock b/.openhuman/subagent_checkpoints/lifecycle/sha256-63de7194216416a97c2d1a53663ee9d92c807cc4d1ac1284cc64164171eb96de.locknew file mode 100644index 0000000000..e69de29bb2diff --git a/.openhuman/subagent_checkpoints/lifecycle/sha256-93d2f39a6e7a83a2de76adffae096054bd41f958d378496c83400545b5d0e38e.lock b/.openhuman/subagent_checkpoints/lifecycle/sha256-93d2f39a6e7a83a2de76adffae096054bd41f958d378496c83400545b5d0e38e.locknew file mode 100644index 0000000000..e69de29bb2diff --git a/.openhuman/subagent_checkpoints/lifecycle/sha256-bb0abe7182fd716e15b626e16d113bb87dfceb4793232814a4e3bcc8bd977150.lock b/.openhuman/subagent_checkpoints/lifecycle/sha256-bb0abe7182fd716e15b626e16d113bb87dfceb4793232814a4e3bcc8bd977150.locknew file mode 100644index 0000000000..e69de29bb2diff --git a/crates/openhuman-core/src/security/credentials/openai_oauth/flow_tests_bearer_token_tests.rs b/crates/openhuman-core/src/security/credentials/openai_oauth/flow_tests_bearer_token_tests.rsindex 0af8d75e11..4a67ecc2ad 100644--- a/crates/openhuman-core/src/security/credentials/openai_oauth/flow_tests_bearer_token_tests.rs+++ b/crates/openhuman-core/src/security/credentials/openai_oauth/flow_tests_bearer_token_tests.rs@@ -203,6 +203,8 @@ fn disconnect_openai_oauth_clears_profile() {store.upsert_profile(profile, true).unwrap();assert!(openai_oauth_status(&config).unwrap().connected);- runtime().block_on(disconnect_openai_oauth(&config)).unwrap();+ runtime()+ .block_on(disconnect_openai_oauth(&config))+ .unwrap();assert!(!openai_oauth_status(&config).unwrap().connected);}diff --git a/crates/openhuman-core/src/security/credentials/openai_oauth/flow_tests_lifecycle_tests.rs b/crates/openhuman-core/src/security/credentials/openai_oauth/flow_tests_lifecycle_tests.rsindex 9cc44d7746..a4dc977389 100644--- a/crates/openhuman-core/src/security/credentials/openai_oauth/flow_tests_lifecycle_tests.rs+++ b/crates/openhuman-core/src/security/credentials/openai_oauth/flow_tests_lifecycle_tests.rs@@ -96,8 +96,6 @@ fn complete_openai_oauth_rejects_missing_pending_session() {#[test]fn complete_openai_oauth_rejects_expired_pending_session() {- use tinystoragedrivers::secrets::SecretStore as _;-let tmp = tempdir().unwrap();let config = test_config(&tmp);let pending = pending::store(&config).unwrap();@@ -129,8 +127,6 @@ fn complete_openai_oauth_rejects_expired_pending_session() {#[test]fn start_openai_oauth_keeps_the_pending_session_in_the_secret_store_not_a_file() {- use tinystoragedrivers::secrets::SecretStore as _;-let tmp = tempdir().unwrap();let config = test_config(&tmp);let start = runtime().block_on(start_openai_oauth(&config)).unwrap();diff --git a/crates/openhuman-core/src/security/credentials/openai_oauth/pending_tests.rs b/crates/openhuman-core/src/security/credentials/openai_oauth/pending_tests.rsindex 5867e58eeb..ba5bd082f4 100644--- a/crates/openhuman-core/src/security/credentials/openai_oauth/pending_tests.rs+++ b/crates/openhuman-core/src/security/credentials/openai_oauth/pending_tests.rs@@ -50,7 +50,12 @@ fn a_fresh_legacy_session_is_adopted_once_and_the_file_is_left_alone() {runtime().block_on(async {adopt_legacy(tmp.path(), &secrets).await;assert_eq!(- secrets.get(PENDING_SECRET).await.unwrap().unwrap().as_slice(),+ secrets+ .get(PENDING_SECRET)+ .await+ .unwrap()+ .unwrap()+ .as_slice(),bytes.as_slice());@@ -91,7 +96,12 @@ fn a_session_already_in_the_store_wins_over_the_legacy_file() {secrets.set(PENDING_SECRET, b"newer").await.unwrap();adopt_legacy(tmp.path(), &secrets).await;assert_eq!(- secrets.get(PENDING_SECRET).await.unwrap().unwrap().as_slice(),+ secrets+ .get(PENDING_SECRET)+ .await+ .unwrap()+ .unwrap()+ .as_slice(),b"newer");});diff --git a/crates/openhuman-core/src/skills/catalog/registry.rs b/crates/openhuman-core/src/skills/catalog/registry.rsindex 9c4a1510a6..d8a98e9784 100644--- a/crates/openhuman-core/src/skills/catalog/registry.rs+++ b/crates/openhuman-core/src/skills/catalog/registry.rs@@ -19,9 +19,7 @@ use std::path::{Path, PathBuf};use std::sync::{Arc, PoisonError, RwLock};use std::time::Duration;-use tinyskills::{- FetchPolicy, HermesIndexSource, RegistryLimits, RegistryTimeouts, SkillRegistry,-};+use tinyskills::{FetchPolicy, HermesIndexSource, RegistryLimits, RegistryTimeouts, SkillRegistry};use super::store::HostCatalogStore;use super::transport::ReqwestTransport;diff --git a/crates/openhuman-core/src/skills/catalog/store.rs b/crates/openhuman-core/src/skills/catalog/store.rsindex 470f38450f..3e22016df1 100644--- a/crates/openhuman-core/src/skills/catalog/store.rs+++ b/crates/openhuman-core/src/skills/catalog/store.rs@@ -86,7 +86,9 @@ impl HostCatalogStore {}// A refresh saved a catalog between the read and the import: that// one is newer than the file, so it wins.- Err(error) if matches!(error.kind(), ErrorKind::Conflict | ErrorKind::AlreadyExists) => {+ Err(error)+ if matches!(error.kind(), ErrorKind::Conflict | ErrorKind::AlreadyExists) =>+ {store.load(registry).await}Err(error) => Err(StoreError::Io(error.to_string())),