Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(credentials): pass ctx by reference to activate_user_scope

Steven Enamakel5794296dc01a
diff --git a/crates/openhuman-core/src/security/credentials/ops/credential.rs b/crates/openhuman-core/src/security/credentials/ops/credential.rs
index 8be9a7e175..033003d8a1 100644
--- a/crates/openhuman-core/src/security/credentials/ops/credential.rs
+++ b/crates/openhuman-core/src/security/credentials/ops/credential.rs
@@ -295,7 +295,7 @@ pub async fn set_credential(
logs.push("credential refreshed (same secret, same user)".to_string());
config.clone()
} else {
- logs.extend(activate_user_scope(&ctx, &user_id)?);
+ logs.extend(activate_user_scope(ctx, &user_id)?);
// Reload so auth-profiles.json, the encryption key and the workspace
// resolve to the user-scoped location before the profile is written.
let effective = reload_config_or(&ctx, config).await?;