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:
@@ -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`);
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user