fn clear_shell_pointer_if(state: &AppState, agent_block_id: &str, id: &str)Expand description
Clear the agent block’s shell pointer, if it still names id (see the
exited-shell branch of try_attach_to_existing_shell for why it is
compare-before-clear), so the next create claims a fresh shell.