Skip to main content

identity_for_agent

Function identity_for_agent 

Source
pub(crate) fn identity_for_agent(
    owner: &str,
    requested: &str,
    profiles: &[BrowserProfile],
) -> Result<Option<String>, String>
Expand description

The identity an agent’s OpenBrowser asked for by profile browses as: its own profile for nothing, “” or “own” (made by srv before this, see app_api::browser_profiles::ensure_agent_profile); none (Personal) for “personal”; a fresh Incognito jar for “incognito”, always allowed since it gives the agent less, not more; and a named profile (by name, any case, or id): the agent’s own, or one the user switched on “Agents may use it” for in Settings → Browser (docs/specs/SPEC_AGENT_OWN_BROWSER_PROFILE_2026_11_04.md).