Skip to content

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

Merge remote-tracking branch 'upstream/main' into fix-red-2

Steven Enamakelb16ccaa5ccc0
diff --cc crates/openhuman-core/src/modules/ops.rs
index e888e5840e,e6d5306921..aafb4bcb6a
--- a/crates/openhuman-core/src/modules/ops.rs
+++ b/crates/openhuman-core/src/modules/ops.rs
@@@ -242,9 -242,9 +242,11 @@@ async fn ensure_loaded_with_storage_cal
) -> Result<(), String> {
let mut loads = STORAGE_CALLBACK_LOADS.lock().await;
if let Some((binding, _served)) = loads.get(id) {
- // The first load consumed this binding; the module is process-wide, so
- // every later workspace's client finds it already serving.
- if matches!(resolver.state_of(id), Availability::Ready) {
+ if matches!(state_of(id), ModuleState::Ready) {
+ // Already serving with this binding: a binding is spent once the
- // module takes it, so re-presenting it would be refused.
++ // module takes it, so re-presenting it would be refused. The module
++ // is process-wide, so every later workspace's client finds it
++ // already serving.
return Ok(());
}
let mut module_config = module_config(config, id);