()
| 126 | }, [projectPath]); |
| 127 | |
| 128 | const loadCommands = async () => { |
| 129 | try { |
| 130 | setLoading(true); |
| 131 | setError(null); |
| 132 | const loadedCommands = await api.slashCommandsList(projectPath); |
| 133 | setCommands(loadedCommands); |
| 134 | } catch (err) { |
| 135 | console.error("Failed to load slash commands:", err); |
| 136 | setError("Failed to load commands"); |
| 137 | } finally { |
| 138 | setLoading(false); |
| 139 | } |
| 140 | }; |
| 141 | |
| 142 | const handleCreateNew = () => { |
| 143 | setEditingCommand(null); |
no outgoing calls
no test coverage detected