fix: AI Copilot shows all presets in suggestion list

Change suggestions from getContextualSuggestions (filtered)
to promptMgr.presets (all). MIDI item name still shown in
header when hasSelItem is true.
This commit is contained in:
2026-07-28 20:20:22 +07:00
parent 6a46b1ffe4
commit 0dc3f10406
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -16128,7 +16128,7 @@ const App = () => {
const selMidiInfo = getSelectedMidiItemInfo();
const hasSelItem = !!selMidiInfo;
const promptMgr = window.PromptTemplateManager ? new window.PromptTemplateManager() : null;
const suggestions = promptMgr ? promptMgr.getContextualSuggestions(hasSelItem) : [];
const suggestions = promptMgr ? promptMgr.presets : [];
const handleApplySuggestion = (preset) => {
if (hasSelItem) {
setAiPrompt(`Rearrange this melody line in ${preset.name} style`);