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
+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');