Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

fix(lume): slow down VNC typing to prevent missed characters (#981)

Francesco Bonaccid41893448a7a
diff --git a/libs/lume/src/VNC/VNCService.swift b/libs/lume/src/VNC/VNCService.swift
index 6a616ec893..cb729d2817 100644
--- a/libs/lume/src/VNC/VNCService.swift
+++ b/libs/lume/src/VNC/VNCService.swift
@@ -344,14 +344,14 @@ final class DefaultVNCService: VNCService {
}
try await client.sendKeyEvent(key: keysym, down: true)
- try await Task.sleep(nanoseconds: 30_000_000) // 30ms
+ try await Task.sleep(nanoseconds: 100_000_000) // 100ms key hold
try await client.sendKeyEvent(key: keysym, down: false)
if needsShift {
try await client.sendKeyEvent(key: X11Keysym.shiftL.rawValue, down: false)
}
- try await Task.sleep(nanoseconds: 30_000_000) // 30ms between characters
+ try await Task.sleep(nanoseconds: 250_000_000) // 250ms between characters
}
}