get_instance_number

Function get_instance_number 

Source
pub fn get_instance_number(state: &Arc<AppState>, args: &Value) -> Value
Expand description

Get the instance number for the current window.

Reads from state.instance_num() which queries the launcher-fed shadow_instance_registry (B.5e — sole source of truth post-migration). Brief race window for early lookups: see app-init.ts retry logic.