Skip to main content

mirror_agent_zoom

Function mirror_agent_zoom 

Source
fn mirror_agent_zoom(state: &AppState, oref: &ORef, meta_update: &MetaMapType)
Expand description

Per-agent zoom persistence (SPEC_AGENT_ZOOM_PERSISTENCE): when an agent block’s term:zoom changes, mirror it (debounced) into the agent’s per-agent ui:zoom content so the zoom survives the block and is restored at agent.open. Only blocks carrying agentId (agent panes) participate; everything else is untouched. A null term:zoom (the frontend’s reset-to-1.0 convention) deletes the saved value so a default agent stores nothing.