Sfoglia il codice sorgente

Claude: Support the wait tool

Alessandro Pignotti 4 mesi fa
parent
commit
f84d37e599
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  1. 6 0
      src/lib/WebVM.svelte

+ 6 - 0
src/lib/WebVM.svelte

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