Skip to main content

uid_for_block

Function uid_for_block 

Source
pub(crate) fn uid_for_block(store: &Store, block_id: &str) -> Option<String>
Expand description

The agent UID (db_agents.id) for the agent shown on block_id, if it has a row — the same block → row resolution build_persistent_spawn_env uses, without minting a token. For the frontend presence path (handle_reactive_register), which does not trust the name it is sent (spec §0.1) and resolves identity by block instead. A synchronous store read: call it on spawn_blocking from async handlers.