Skip to content

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

chore: remove unused import in manager.rs

Steven Enamakel9963d7e414d9
diff --git a/crates/openhuman-session/src/manager.rs b/crates/openhuman-session/src/manager.rs
index ad21b825cc..39193e20af 100644
--- a/crates/openhuman-session/src/manager.rs
+++ b/crates/openhuman-session/src/manager.rs
@@ -336,9 +336,9 @@ impl<L: CoreLink> SessionManager<L> {
self.emit(SessionEvent::Expired {
source: source.to_string(),
});
- if let Ok(state) = self.state().await {
- self.emit(SessionEvent::Changed(state));
- }
+ // The credential is gone, so the signed-out state is known without
+ // asking the core again (and `state()` would recurse into here).
+ self.emit(SessionEvent::Changed(SessionState::default()));
}
/// Sign out: clear the session (or local) credential in the core and