Skip to content

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

docs: update stale references in context_composer and main.rs

Steven Enamakel9244f3b2c915
diff --git a/crates/openhuman-core/src/agent/tinyagents/host/context_composer.rs b/crates/openhuman-core/src/agent/tinyagents/host/context_composer.rs
index 22a0c9516a..15cbf18236 100644
--- a/crates/openhuman-core/src/agent/tinyagents/host/context_composer.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/host/context_composer.rs
@@ -15,8 +15,8 @@
//! `action_dir`, the default model, and the `agents_md_enabled` gate.
//! * [`crate::security::credentials::identity::peek_credential_user_identity`] — the
//! non-secret `id`/`name`/`email` triple. Deliberately read through the
-//! *cache peek*, which is the accessor that strips credential material; this
-//! adapter must not reach for a richer user record to fill the prompt.
+//! *identity peek*, which is the accessor that strips credential material;
+//! this adapter must not reach for a richer user record to fill the prompt.
//!
//! Prompt assembly is **not** reimplemented here. Everything this file does is
//! translate a [`TurnContextRequest`] into a `PromptContext` and hand it to the
diff --git a/crates/openhuman-core/src/main.rs b/crates/openhuman-core/src/main.rs
index 69c8662407..51754cdf5a 100644
--- a/crates/openhuman-core/src/main.rs
+++ b/crates/openhuman-core/src/main.rs
@@ -249,13 +249,13 @@ fn main() {
//
// Issue #3135: the primary source for `event.user` is now the
// Sentry scope, bound proactively at session boundaries
- // (credentials::store_session / clear_session) and at server boot
- // (run_server_inner). The `app_state_snapshot` cache is kept as a
- // fallback so any pre-boot / pre-login event that still rides
+ // (credentials::set_credential / clear_credential) and at server
+ // boot (run_server_inner). The credential identity slot is kept as
+ // a fallback so any pre-boot / pre-login event that still rides
// the legacy path retains its previous attribution behaviour —
// but we only consult it when the scope hasn't already bound a
// user, otherwise we'd silently clobber the scope binding when
- // the cache is empty (root cause of the original userCount=0).
+ // the slot is empty (root cause of the original userCount=0).
if event.user.is_none() {
event.user =
openhuman_core::security::credentials::identity::peek_credential_user_identity()