Skip to content

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

chore(docs): update references from auth_get_me to stored credential user payload

Steven Enamakel84ef26f68d75
diff --git a/crates/openhuman-core/src/agent/prompts/types.rs b/crates/openhuman-core/src/agent/prompts/types.rs
index e74d36017e..e9088903b9 100644
--- a/crates/openhuman-core/src/agent/prompts/types.rs
+++ b/crates/openhuman-core/src/agent/prompts/types.rs
@@ -305,7 +305,7 @@ pub enum ToolCallFormat {
///
/// Only **identifying** fields land here; tokens, refresh tokens, and
/// any opaque credential material are forbidden. The struct is
-/// constructed from the cached `auth_get_me` response in
+/// constructed from the stored `auth_set_credential` user payload in
/// `credentials::identity::peek_credential_user_identity`, which strips
/// everything but `id` / `email` / `name` before returning.
#[derive(Debug, Clone, Default)]
@@ -380,7 +380,7 @@ pub struct PromptContext<'a> {
/// Authenticated user identity (id/name/email) when available — see
/// [`UserIdentity`]. `None` for unauthenticated paths (CLI without a
/// session, tests). Pre-fetched by the caller from the
- /// `auth_get_me` cache so prompt builders never reach the network.
+ /// stored credential user payload so prompt builders never reach the network.
pub user_identity: Option<UserIdentity>,
/// Personality-specific SOUL.md content. When `Some`, the
/// `IdentitySection` uses this instead of reading the workspace
diff --git a/crates/openhuman-core/src/security/credentials/session_support.rs b/crates/openhuman-core/src/security/credentials/session_support.rs
index c457a1c98d..a0e3fff983 100644
--- a/crates/openhuman-core/src/security/credentials/session_support.rs
+++ b/crates/openhuman-core/src/security/credentials/session_support.rs
@@ -291,9 +291,9 @@ pub fn require_live_session_token(config: &Config) -> Result<String, String> {
/// only need "the secret string" use [`into_secret`](Self::into_secret).
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum BackendCredential {
- /// The app-session JWT stored by `auth_store_session`.
+ /// The app-session JWT stored by `auth_set_credential {kind: "session"}`.
Session(String),
- /// The TinyHumans API key stored by `auth_store_api_key`
+ /// The TinyHumans API key stored by `auth_set_credential {kind: "api-key"}`
/// (see [`super::api_key`]).
ApiKey(String),
}
diff --git a/crates/openhuman-core/src/web_chat/progress_bridge.rs b/crates/openhuman-core/src/web_chat/progress_bridge.rs
index 1a56313e65..b6c1fe54be 100644
--- a/crates/openhuman-core/src/web_chat/progress_bridge.rs
+++ b/crates/openhuman-core/src/web_chat/progress_bridge.rs
@@ -218,7 +218,7 @@ fn subagent_worktree_detail(
}
}
-/// Trace user attribution for a turn whose `auth_get_me` cache is cold
+/// Trace user attribution for a turn whose stored user payload carries no identity
/// (headless / autonomous / freshly booted cores): read the on-disk
/// app-session profile and return the user's email (preferred) or backend
/// user id. `None` when signed out or the profile is unreadable — the caller
@@ -386,7 +386,7 @@ pub(crate) fn spawn_progress_bridge(
let base = trace_session_id(metadata.session_id, &thread_id);
let trace_id = format!("{base}:{request_id}");
// Attribute the trace to the *real* authenticated user (cached
- // `auth_get_me` identity: id, else email) — the transport client
+ // stored credential identity: id, else email) — the transport client
// id (socket client / "system") is NOT a user; it rides along as
// the separate `client.id` metadata attribute. When no identity is
// cached (signed-out / fresh install), fall back to the client id