Add diagnostic logging to character state tracking

This commit is contained in:
Claude
2025-12-05 05:12:58 +00:00
parent 14465e5ae9
commit ffed3aa1b5
2 changed files with 9 additions and 0 deletions
@@ -358,9 +358,16 @@ function getStatColor(statKey, value) {
* Call this after parsing an LLM response to update the UI
*/
export function updateCharacterStateDisplay() {
console.log('[Character State Renderer] 🎭 updateCharacterStateDisplay called');
// Find the main container
const $mainContainer = $('#rpg-character-state-container');
console.log('[Character State Renderer] Container found:', $mainContainer && $mainContainer.length > 0);
if ($mainContainer && $mainContainer.length) {
console.log('[Character State Renderer] ✅ Rendering character state overview');
renderCharacterStateOverview($mainContainer);
} else {
console.warn('[Character State Renderer] ❌ Container #rpg-character-state-container not found in DOM');
}
}