Files
kithara-studio/frontend
rin.kagamine fe6ec467c6 fix: SuggestionsModal now fetches fresh suggestions every time
Bug: SuggestionsModal only fetched on first open because it checked
if suggestions.length === 0 before fetching. This meant changing the
prompt and re-opening the modal showed stale suggestions.

Fix: useEffect now:
- Clears suggestions and error on every open
- Always fetches fresh suggestions when isOpen changes
- Also re-fetches when userInput changes while modal is open
- Dependency array: [isOpen, userInput]

Result: Every click of 'Get Suggestions' generates new, relevant
suggestions based on the current prompt.
2026-05-29 22:57:14 -04:00
..