fix: only send auth header when API key is set, show agent panel by default with localStorage persistence
Run Tests / Backend Tests (push) Failing after 1m9s
Run Tests / Test Summary (push) Has been cancelled
Run Tests / Frontend Tests (push) Has been cancelled
Deploy Dashboard (Dev) / deploy-dev (push) Failing after 18m59s

This commit is contained in:
Gan, Jimmy
2026-04-02 22:47:19 +08:00
parent 54bfea16f2
commit 09acdcf868
2 changed files with 15 additions and 3 deletions
+12 -1
View File
@@ -11,9 +11,20 @@
let loading = $state(true);
let showTaskModal = $state(false);
let editingTask = $state(null);
let showAgentPanel = $state(false);
let showAgentPanel = $state(
typeof localStorage !== 'undefined'
? localStorage.getItem('opc_showAgentPanel') !== 'false'
: true
);
let unsubscribe = null;
// Persist agent panel visibility
$effect(() => {
if (typeof localStorage !== 'undefined') {
localStorage.setItem('opc_showAgentPanel', showAgentPanel);
}
});
async function loadData() {
loading = true;
try {