Fix: Use configured relationship emojis from tracker config instead of hardcoded defaults

- Load relationshipEmojis from config.relationshipEmojis in thoughts.js
- Custom relationships added in Edit Trackers now display correctly as emojis
- Falls back to default emojis if config not available
This commit is contained in:
Spicy_Marinara
2025-11-06 09:37:41 +01:00
parent d8707318c8
commit fe69a15a48
2 changed files with 15 additions and 4 deletions
+4 -2
View File
@@ -217,8 +217,10 @@ export function onCharacterChanged() {
// Load chat-specific data when switching chats
loadChatData();
// Commit tracker data from the last assistant message to initialize for this chat
commitTrackerData();
// Don't call commitTrackerData() here - it would overwrite the loaded committedTrackerData
// with data from the last message, which may be null/empty. The loaded committedTrackerData
// already contains the committed state from when we last left this chat.
// commitTrackerData() will be called naturally when new messages arrive.
// Re-render with the loaded data
renderUserStats();