Skip to content

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

fix(credentials): avoid consuming resolved_user_id in session store

Steven Enamakelcd742856edc1
diff --git a/src/openhuman/security/credentials/ops.rs b/src/openhuman/security/credentials/ops.rs
index 9a240ff0a9..9e641b30b2 100644
--- a/src/openhuman/security/credentials/ops.rs
+++ b/src/openhuman/security/credentials/ops.rs
@@ -492,7 +492,7 @@ async fn store_session_inner(
// stored below; only the global activation is skipped.
let operator_user_activation = !is_embedder_host();
- if let Some(ref uid) = resolved_user_id.filter(|_| operator_user_activation) {
+ if let Some(ref uid) = resolved_user_id.as_ref().filter(|_| operator_user_activation) {
if let Ok(root_dir) = default_root_openhuman_dir() {
// Snapshot before we overwrite `active_user.toml` so we can tell
// first activation from signed-out vs an in-place account switch.