onlook
onlook copied to clipboard
[bug] Incorrect File Highlight in Sidebar
Describe the bug
Expected behavior: The file currently being edited (active tab at the top) should be highlighted in red in the left sidebar.
Actual behavior: The red highlight only updates when a file is clicked from the left panel, not when switched via the top tabs. As a result, the highlight stays on the previously clicked file even when a new one is active.
https://github.com/user-attachments/assets/1894c654-738f-4846-be45-f901f41c65c3
Steps to Reproduce:
- Click a file from the left panel — it's highlighted in red
- Now switch to another file via the top tab — the highlight doesn't update
- Left panel still shows the previous file as active