feat: reload button in sidebar footer

Adds a "reload" button next to "debug" and "clear" in the sidebar
footer. Calls location.reload() to fully refresh the side panel,
re-run connection logic, and clear stale state.
This commit is contained in:
Garry Tan
2026-04-02 19:00:37 -07:00
parent 55382859ba
commit e34aefa799
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -154,6 +154,7 @@
<div class="footer-left">
<button class="debug-toggle" id="debug-toggle" title="Toggle debug panels">debug</button>
<button class="footer-btn" id="clear-chat" title="Clear chat">clear</button>
<button class="footer-btn" id="reload-sidebar" title="Reload sidebar">reload</button>
</div>
<div class="footer-right">
<span class="dot" id="footer-dot"></span>
+5
View File
@@ -599,6 +599,11 @@ document.getElementById('clear-chat').addEventListener('click', async () => {
</div>`;
});
// ─── Reload Sidebar ─────────────────────────────────────────────
document.getElementById('reload-sidebar').addEventListener('click', () => {
location.reload();
});
// ─── Debug Tabs ─────────────────────────────────────────────────
const debugToggle = document.getElementById('debug-toggle');