Skip to content

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

chore: files changed crates/openhuman-core/src/modules/storage_grant_schemas.rs

Steven Enamakela915f92cd393
diff --git a/crates/openhuman-core/src/modules/storage_grant_schemas.rs b/crates/openhuman-core/src/modules/storage_grant_schemas.rs
index 918e081191..0cc1eb83d4 100644
--- a/crates/openhuman-core/src/modules/storage_grant_schemas.rs
+++ b/crates/openhuman-core/src/modules/storage_grant_schemas.rs
@@ -19,6 +19,7 @@
//! forward (`ensure_migrated` in `storage_host`).
use super::storage_grants::StorageGrant;
+use tinystoragedrivers::CollectionSpec;
use crate::storage::schema::module_items;
/// One module's row: its registry id, the schema owner that declares its
@@ -97,9 +98,19 @@ pub(super) fn grant_for(module_id: &str) -> Option<StorageGrant> {
let items = module_items(row.owner);
let mut secret_prefixes: Vec<String> = row.secrets.iter().map(|s| (*s).to_owned()).collect();
secret_prefixes.extend(items.secrets);
+ let mut collections = items.collections;
+ let mut stream_prefixes = items.streams;
+ if module_id == tinyconnectors::MODULE_ID {
+ // The registry pins a released module that predates the v2 names, so
+ // it still writes its v1 collection and stream family. Grant those
+ // beside the schema's v2 names until the pin moves to a release that
+ // carries the v2 schema; a v2 module never touches them.
+ collections.push(CollectionSpec::new(tinyconnectors::PREFS_COLLECTION));
+ stream_prefixes.push(tinyconnectors::TRIGGER_STREAM_PREFIX.to_owned());
+ }
Some(StorageGrant {
- collections: items.collections,
- stream_prefixes: items.streams,
+ collections,
+ stream_prefixes,
blob_prefixes: items.blobs,
secret_prefixes,
writable: true,