From 13b670e5e93dc0243f970832673385e9855a1df6 Mon Sep 17 00:00:00 2001 From: Adam Malczewski Date: Thu, 21 May 2026 20:26:07 +0900 Subject: feat: tool permission toggles, settings improvements, UI polish - Tool permissions (read, edit, bash) stored in DB and control Agent tool registration - Agent invalidated when permissions change; cache warning in Permissions panel - Default: read=allow, edit=ask, bash=ask (matches UI checkboxes) - Settings: auto-save title model on selection (removed save button) - Settings: auto-expand thinking checkbox with shared reactive store - Permissions panel: renamed from Permission Log, shows tool toggles + collapsible log - Sidebar: renamed Current Model to Model Choice - Chat input: allow typing while agent runs (just disable send) - Chat cursor: fix doubled rectangle (removed unicode char) - Generic GET/PUT /tabs/settings/:key endpoints for key-value settings --- .../frontend/src/lib/components/ChatInput.svelte | 3 +- .../frontend/src/lib/components/ChatMessage.svelte | 5 +- .../src/lib/components/PermissionLog.svelte | 116 +++++++++++++++++---- .../src/lib/components/SettingsPanel.svelte | 90 +++++++++------- .../src/lib/components/SidebarPanel.svelte | 10 +- packages/frontend/src/lib/settings.svelte.ts | 8 ++ 6 files changed, 162 insertions(+), 70 deletions(-) create mode 100644 packages/frontend/src/lib/settings.svelte.ts (limited to 'packages/frontend/src') diff --git a/packages/frontend/src/lib/components/ChatInput.svelte b/packages/frontend/src/lib/components/ChatInput.svelte index 9563a9f..8910bb4 100644 --- a/packages/frontend/src/lib/components/ChatInput.svelte +++ b/packages/frontend/src/lib/components/ChatInput.svelte @@ -29,9 +29,8 @@ function submit() { bind:this={inputEl} bind:value={inputValue} type="text" - placeholder={isDisabled ? "Agent is running..." : "Type a message..."} + placeholder="Type a message..." class="input flex-1" - disabled={isDisabled} onkeydown={handleKeydown} />