Browse Source

Claude: Support the wait tool

Alessandro Pignotti 5 tháng trước cách đây
mục cha
commit
f84d37e599
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  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;