Merge pull request #96 from tomt610/fix/fab-spinning-together-mode

fix(fab): prevent spinning in together mode and update widgets
This commit is contained in:
Spicy Marinara
2026-01-12 02:38:48 +01:00
committed by GitHub
+6 -4
View File
@@ -114,10 +114,9 @@ export function onMessageSent() {
// This allows auto-update to distinguish between new generations and loading chat history // This allows auto-update to distinguish between new generations and loading chat history
setIsAwaitingNewMessage(true); setIsAwaitingNewMessage(true);
// Show FAB loading state for together mode (starts spinning) // Note: FAB spinning is NOT shown for together mode since no extra API request is made
if (extensionSettings.generationMode === 'together') { // The RPG data comes embedded in the main response
setFabLoadingState(true); // FAB spinning is handled by apiClient.js for separate/external modes when updateRPGData() is called
}
// For separate mode with auto-update disabled, commit displayed tracker // For separate mode with auto-update disabled, commit displayed tracker
if (extensionSettings.generationMode === 'separate' && !extensionSettings.autoUpdate) { if (extensionSettings.generationMode === 'separate' && !extensionSettings.autoUpdate) {
@@ -233,6 +232,9 @@ export async function onMessageReceived(data) {
renderQuests(); renderQuests();
renderMusicPlayer($musicPlayerContainer[0]); renderMusicPlayer($musicPlayerContainer[0]);
// Update FAB widgets with newly parsed data
updateFabWidgets();
// Then update the DOM to reflect the cleaned message // Then update the DOM to reflect the cleaned message
// Using updateMessageBlock to perform macro substitutions + regex formatting // Using updateMessageBlock to perform macro substitutions + regex formatting
const messageId = chat.length - 1; const messageId = chat.length - 1;