Browse Source

Add visual feedback about typing commands

Alessandro Pignotti 4 months ago
parent
commit
29377a9fe3
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/lib/AnthropicTab.svelte

+ 6 - 0
src/lib/AnthropicTab.svelte

@@ -73,6 +73,12 @@
 			} else if (tool.action === "wait") {
 			} else if (tool.action === "wait") {
 				icon = "fa-hourglass-half";
 				icon = "fa-hourglass-half";
 				messageContent = "Waiting";
 				messageContent = "Waiting";
+			} else if (tool.action === "key") {
+				icon = "fa-keyboard";
+				messageContent = `Key press: ${tool.text}`;
+			} else if (tool.action === "type") {
+				icon = "fa-keyboard";
+				messageContent = "Type text";
 			} else {
 			} else {
 				icon = "fa-screwdriver-wrench";
 				icon = "fa-screwdriver-wrench";
 				messageContent = "Use the system";
 				messageContent = "Use the system";