Skip to content

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

chore: I don't see a diff in your message — the "Diff:" section is empty, and the stat is blank to

Steven Enamakel378d7d363142
diff --git a/crates/openhuman-core/src/core/runtime/tenant.rs b/crates/openhuman-core/src/core/runtime/tenant.rs
index 6fcd9bced4..647349a63e 100644
--- a/crates/openhuman-core/src/core/runtime/tenant.rs
+++ b/crates/openhuman-core/src/core/runtime/tenant.rs
@@ -212,6 +212,13 @@ pub fn session_key(tenant: &Tenant) -> String {
}
}
+/// The prefix every [`session_key`] of `profile` starts with (`<profile>~`,
+/// escaped the same way), so a caller can name all of one profile's session
+/// scopes at once.
+pub fn session_key_prefix(profile: &str) -> String {
+ format!("{}~", escape_profile(profile))
+}
+
fn escape_profile(profile: &str) -> String {
profile.replace('%', "%25").replace('~', "%7E")
}