Expected Behavior:
โ
File Tree tab should show D3.js tree visualization
โ
Tree should show at least a session root node
โ
No event items should be visible
โ
Control buttons: Expand All, Collapse All, Reset Zoom
โ
Legend showing file/class/function/method indicators
Fixed Issues:
๐ง EventViewer now respects container ID passed to constructor
๐ง UIStateManager cleans up leaked event items from non-event tabs
๐ง CodeViewer aggressively removes foreign content from its container
๐ง Added tab activity checks to prevent rendering in inactive tabs
Console Commands for Testing:
// Check if File Tree tab is active
document.getElementById('claude-tree-tab').classList.contains('active')
// Check File Tree container content
document.getElementById('claude-tree-container').children.length
// Force render the tree
window.CodeViewer.show()
// Check for leaked event items
document.querySelectorAll('#claude-tree-container .event-item').length