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
fix(manager): handle session expiry during token refresh
Steven Enamakel6203f5cbe24a
diff --git a/crates/openhuman-session/src/manager.rs b/crates/openhuman-session/src/manager.rsindex fc25316a4e..0f407f7ac5 100644--- a/crates/openhuman-session/src/manager.rs+++ b/crates/openhuman-session/src/manager.rs@@ -244,9 +244,16 @@ impl<L: CoreLink> SessionManager<L> {"{LOG_PREFIX} session JWT verified via GET /auth/me on {}",client.base_url());- self.cancel_revalidation();+ // Hand the new credential to the core before cancelling the+ // old one's revalidation loop: if `push` fails (or the core+ // restarts mid-call), the prior pending credential must keep+ // its background revalidation running rather than being left+ // provisional with nothing to confirm it, possibly+ // indefinitely for an idle TUI or host (#6318 review+ // follow-up).self.push(&credential, user_id.as_deref(), Some(&me)).await?;+ self.cancel_revalidation();self.cache.seed(&client, &credential, me);drop(guard);self.changed().await