(
&self,
action: SkillSelectorAction,
chat_view: &mut ChatView,
chat_state: &mut ChatState,
rt_handle: &tokio::runtime::Handle,
)
| 2985 | } |
| 2986 | |
| 2987 | fn handle_skill_selector_action( |
| 2988 | &self, |
| 2989 | action: SkillSelectorAction, |
| 2990 | chat_view: &mut ChatView, |
| 2991 | chat_state: &mut ChatState, |
| 2992 | rt_handle: &tokio::runtime::Handle, |
| 2993 | ) { |
| 2994 | match action { |
| 2995 | SkillSelectorAction::ListSkills => { |
| 2996 | self.show_available_skill_list(chat_view, chat_state, rt_handle); |
| 2997 | } |
| 2998 | SkillSelectorAction::ConfigureSkills => { |
| 2999 | self.show_skill_config_selector(chat_view, chat_state, rt_handle); |
| 3000 | } |
| 3001 | SkillSelectorAction::Execute(selected) => { |
| 3002 | chat_view.hide_skill_selector(); |
| 3003 | self.apply_skill_selection(&selected, chat_view); |
| 3004 | } |
| 3005 | SkillSelectorAction::Toggle(selected) => { |
| 3006 | self.set_skill_enabled(&selected, !selected.enabled, chat_state, rt_handle); |
| 3007 | self.show_skill_config_selector(chat_view, chat_state, rt_handle); |
| 3008 | } |
| 3009 | } |
| 3010 | } |
| 3011 | |
| 3012 | /// Apply skill selection: fill input box with execution command |
| 3013 | fn apply_skill_selection(&self, selected: &SkillItem, chat_view: &mut ChatView) { |
no test coverage detected