summaryrefslogtreecommitdiffhomepage
path: root/packages/frontend/src/lib/components/SidebarPanel.svelte
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-06-01 09:14:30 +0900
committerAdam Malczewski <[email protected]>2026-06-01 09:14:30 +0900
commitdd3c71e3d5c8c1b9b23bcf3fdbc34dc306a80570 (patch)
tree82c6f31dc96465d62c3cb23f54a79f40a6f16d1a /packages/frontend/src/lib/components/SidebarPanel.svelte
parentbbc85ff04b6009ff77a72b93c5853eecf9cb3e82 (diff)
downloaddispatch-dd3c71e3d5c8c1b9b23bcf3fdbc34dc306a80570.tar.gz
dispatch-dd3c71e3d5c8c1b9b23bcf3fdbc34dc306a80570.zip
feat(sidebar): add Debug panel with copy-conversation action
New "Debug" panel option in the sidebar, grouping dev-facing actions. Currently exposes the Copy-conversation button (ported from the old header). Leaves room for additional debug actions without re-cluttering the header. The Copy action wraps `tabStore.copyConversation()` and shows a "Copied"/"Failed" affordance for 1.5s, matching the previous header behavior.
Diffstat (limited to 'packages/frontend/src/lib/components/SidebarPanel.svelte')
-rw-r--r--packages/frontend/src/lib/components/SidebarPanel.svelte4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/frontend/src/lib/components/SidebarPanel.svelte b/packages/frontend/src/lib/components/SidebarPanel.svelte
index 206ed09..66fa6a4 100644
--- a/packages/frontend/src/lib/components/SidebarPanel.svelte
+++ b/packages/frontend/src/lib/components/SidebarPanel.svelte
@@ -4,6 +4,7 @@ import type { CacheStats, KeyInfo, LogEntry, TaskItem } from "../types.js";
import CacheRatePanel from "./CacheRatePanel.svelte";
import ClaudeReset from "./ClaudeReset.svelte";
import ConfigPanel from "./ConfigPanel.svelte";
+import DebugPanel from "./DebugPanel.svelte";
import KeyUsage from "./KeyUsage.svelte";
import ModelSelector from "./ModelSelector.svelte";
import ModelStatus from "./ModelStatus.svelte";
@@ -95,6 +96,7 @@ const viewOptions = [
"Skills",
"Tools",
"Settings",
+ "Debug",
];
function addPanel() {
@@ -181,6 +183,8 @@ function contentClass(_selected: string): string {
<ToolPermissions entries={permissionLog} {apiBase} />
{:else if panel.selected === "Settings"}
<SettingsPanel {keys} {apiBase} />
+ {:else if panel.selected === "Debug"}
+ <DebugPanel />
{/if}
</div>
</div>