fn apply_pilot_event(
messages: &Rc<RefCell<Vec<ChatMessage>>>,
forest: &Rc<RefCell<ForestView>>,
event: &PilotEvent,
) -> Result<()>fn apply_pilot_event(
messages: &Rc<RefCell<Vec<ChatMessage>>>,
forest: &Rc<RefCell<ForestView>>,
event: &PilotEvent,
) -> Result<()>