Skip to content

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

feat(app_state): guard stale activation after session revalidation

Steven Enamakel012fdb0dca14
diff --git a/src/openhuman/desktop/app_state/ops_part_02.rs b/src/openhuman/desktop/app_state/ops_part_02.rs
index 1f1b2bf9ec..30bb31c588 100644
--- a/src/openhuman/desktop/app_state/ops_part_02.rs
+++ b/src/openhuman/desktop/app_state/ops_part_02.rs
@@ -30,6 +30,12 @@ async fn finish_revalidated_user_activation(
crate::openhuman::memory::conversations::register_conversation_persistence_subscriber(
target_config.workspace_dir.clone(),
);
+ if current_user_generation() != generation {
+ debug!(
+ "{LOG_PREFIX} skipping stale activation after pending session revalidation"
+ );
+ return;
+ }
if let Some(source_config) = service_rebind_source {
if current_user_generation() != generation {
debug!(