Browse Source

Claude: Support the wait tool

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

+ 6 - 0
src/lib/WebVM.svelte

@@ -586,6 +586,12 @@
 					}
 					return ret;
 				}
+				case "wait":
+				{
+					// Wait 2x what the machine expects to compensate for virtualization slowdown
+					await yieldHelper(tool.duration * 2 * 1000);
+					return null;
+				}
 				default:
 				{
 					break;