summaryrefslogtreecommitdiffhomepage
path: root/packages/frontend/src/lib/components
diff options
context:
space:
mode:
Diffstat (limited to 'packages/frontend/src/lib/components')
-rw-r--r--packages/frontend/src/lib/components/TabBar.svelte2
-rw-r--r--packages/frontend/src/lib/components/ToolPermissions.svelte10
2 files changed, 12 insertions, 0 deletions
diff --git a/packages/frontend/src/lib/components/TabBar.svelte b/packages/frontend/src/lib/components/TabBar.svelte
index feb1e5b..3cbd849 100644
--- a/packages/frontend/src/lib/components/TabBar.svelte
+++ b/packages/frontend/src/lib/components/TabBar.svelte
@@ -56,6 +56,7 @@ const activeUserTabId = $derived(
>
<span class="flex items-center gap-1.5">
<span class="w-1.5 h-1.5 rounded-full shrink-0 {statusColor(tab.agentStatus)}"></span>
+ <span class="font-mono text-[10px] px-1 py-0.5 rounded bg-base-300 text-base-content/60 shrink-0" title="Tab ID — agents address this tab by this handle">{tabStore.shortHandleFor(tab.id)}</span>
<span class="max-w-32 truncate text-xs">{tab.title}</span>
</span>
<button
@@ -89,6 +90,7 @@ const activeUserTabId = $derived(
>
<span class="flex items-center gap-1">
<span class="w-1 h-1 rounded-full shrink-0 {statusColor(tab.agentStatus)}"></span>
+ <span class="font-mono text-[10px] px-1 rounded bg-base-300 text-base-content/60 shrink-0" title="Tab ID — agents address this tab by this handle">{tabStore.shortHandleFor(tab.id)}</span>
<span class="max-w-28 truncate text-xs">{tab.title}</span>
</span>
{#if tab.persistent}
diff --git a/packages/frontend/src/lib/components/ToolPermissions.svelte b/packages/frontend/src/lib/components/ToolPermissions.svelte
index d64eaf9..0caf0fa 100644
--- a/packages/frontend/src/lib/components/ToolPermissions.svelte
+++ b/packages/frontend/src/lib/components/ToolPermissions.svelte
@@ -28,6 +28,16 @@ const toolPermissions: ToolPermission[] = [
description: "Allow the AI to open new independent top-level tabs",
},
{
+ id: "send_to_tab",
+ label: "Message other tabs",
+ description: "Allow the AI to send messages to other tabs by their ID",
+ },
+ {
+ id: "read_tab",
+ label: "Read other tabs",
+ description: "Allow the AI to read other tabs' latest responses by their ID",
+ },
+ {
id: "web_search",
label: "Web search",
description: "Allow the AI to search the web via Firecrawl",