fix(gui): Ensure all tools are visible in Tool Preset Manager

This commit is contained in:
2026-03-10 01:30:11 -04:00
parent dcc13efaf7
commit f213d37287
3 changed files with 55 additions and 12 deletions

View File

@@ -0,0 +1,12 @@
prompt = """
In src/gui_2.py, modify 'App._render_tool_preset_manager_modal':
1. Instead of iterating over 'self._editing_tool_preset_categories.items()', iterate over 'models.DEFAULT_TOOL_CATEGORIES.items()'.
2. For each category and each tool in that category:
- Check if the tool exists in 'self._editing_tool_preset_categories[cat_name]'.
- Determine the current mode: "disabled" (not present), "auto", or "ask".
- Show three radio buttons: "Disabled", "Auto", "Ask".
- If "Disabled" is selected, remove the tool from 'self._editing_tool_preset_categories[cat_name]'.
- If "Auto" or "Ask" is selected, update 'self._editing_tool_preset_categories[cat_name][tool_name]' accordingly.
- Ensure 'self._editing_tool_preset_categories' is initialized with nested dicts for all categories from 'models.DEFAULT_TOOL_CATEGORIES' when 'New Tool Preset' is clicked or a preset is selected.
Use 1-space indentation.
"""