Break expression sync cycle and guard portrait lookup

This commit is contained in:
Tremendoussly
2026-03-15 17:38:39 +01:00
parent 1d297aeecf
commit 9ef5b16663
5 changed files with 101 additions and 74 deletions
+10 -2
View File
@@ -134,7 +134,10 @@ import {
removeDesktopTabs,
updateStripWidgets
} from './src/systems/ui/desktop.js';
import { removeAlternatePresentCharactersPanel } from './src/systems/ui/alternatePresentCharacters.js';
import {
removeAlternatePresentCharactersPanel,
renderAlternatePresentCharacters
} from './src/systems/ui/alternatePresentCharacters.js';
import {
initExpressionSync,
queueExpressionCaptureForSpeaker,
@@ -142,7 +145,8 @@ import {
onAlternatePresentCharactersVisibilityChanged,
onHideDefaultExpressionDisplaySettingChanged,
clearExpressionSyncCache,
onExpressionSyncChatChanged
onExpressionSyncChatChanged,
setExpressionSyncRefreshHandler
} from './src/systems/integration/expressionSync.js';
// Feature modules
@@ -173,6 +177,10 @@ import {
// Old state variable declarations removed - now imported from core modules
// (extensionSettings, lastGeneratedData, committedTrackerData, etc. are now in src/core/state.js)
setExpressionSyncRefreshHandler(() => {
renderAlternatePresentCharacters({ useCommittedFallback: true });
});
// Utility functions removed - now imported from src/utils/avatars.js
// (getSafeThumbnailUrl)