generated from nhcarrigan/template
fix: open memory browser panel for /memory command and default agent type to general-purpose
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
import { editorStore } from "$lib/stores/editor";
|
||||
import { configStore } from "$lib/stores/config";
|
||||
import { debugConsoleStore } from "$lib/stores/debugConsole";
|
||||
import { memoryBrowserStore } from "$lib/stores/memoryBrowser";
|
||||
import type { ConnectionStatus } from "$lib/types/messages";
|
||||
import StatsDisplay from "./StatsDisplay.svelte";
|
||||
import AboutPanel from "./AboutPanel.svelte";
|
||||
@@ -71,6 +72,9 @@
|
||||
let showTaskLoop = $state(false);
|
||||
let showWorkflowPanel = $state(false);
|
||||
let showMemoryPanel = $state(false);
|
||||
memoryBrowserStore.subscribe((s) => {
|
||||
showMemoryPanel = s.isOpen;
|
||||
});
|
||||
|
||||
const progress = $derived($achievementProgress);
|
||||
const activeAgentCount = $derived($runningAgentCount);
|
||||
@@ -179,7 +183,7 @@
|
||||
</button>
|
||||
|
||||
<!-- Memory Manager -->
|
||||
<button onclick={menuAction(() => (showMemoryPanel = true))} class="nav-item">
|
||||
<button onclick={menuAction(() => memoryBrowserStore.open())} class="nav-item">
|
||||
<svg class="w-5 h-5 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path
|
||||
stroke-linecap="round"
|
||||
@@ -563,7 +567,7 @@
|
||||
{/if}
|
||||
|
||||
{#if showMemoryPanel}
|
||||
<MemoryBrowserPanel isOpen={showMemoryPanel} onClose={() => (showMemoryPanel = false)} />
|
||||
<MemoryBrowserPanel isOpen={showMemoryPanel} onClose={() => memoryBrowserStore.close()} />
|
||||
{/if}
|
||||
|
||||
{#if showWorkflowPanel}
|
||||
|
||||
Reference in New Issue
Block a user