From 527305caa873fff55d45633c028e5cba5ab49479 Mon Sep 17 00:00:00 2001 From: Alessandro Pignotti Date: Fri, 20 Dec 2024 12:18:41 +0100 Subject: [PATCH] Claude: Another approach for prompt autofocus --- src/lib/AnthropicTab.svelte | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/lib/AnthropicTab.svelte b/src/lib/AnthropicTab.svelte index ba9a282..f0c16ab 100644 --- a/src/lib/AnthropicTab.svelte +++ b/src/lib/AnthropicTab.svelte @@ -35,6 +35,7 @@ { await tick(); node.scrollTop = node.scrollHeight; + document.getElementById("ai-input").focus(); } function scrollMessage(node, messageList) { @@ -79,10 +80,6 @@ return false; return msg.content[0].type == "tool_result"; } - function autoFocus(node) - { - node.focus(); - }

Claude AI Integration

WebVM is integrated with Claude by Anthropic AI. You can prompt the AI to control the system.

@@ -101,7 +98,7 @@ {#if $apiState == "KEY_REQUIRED"} -