OpenViking icon indicating copy to clipboard operation
OpenViking copied to clipboard

[Bug]: ov tui cannot be used on Windows systems.

Open zhoujh01 opened this issue 8 months ago • 2 comments

Bug Description

Pressing any key has no effect.

Steps to Reproduce

ov tui

Expected Behavior

normal use

Actual Behavior

Pressing any key has no effect.

Minimal Reproducible Example


Error Logs


OpenViking Version

0.2.6

Python Version

python3.11

Operating System

Windows

Model Backend

None

Additional Context

No response

zhoujh01 avatar Mar 13 '26 15:03 zhoujh01

assigned @zhoujh01

qin-ctx avatar Mar 14 '26 11:03 qin-ctx

We hit this on Windows 11 / Python 3.12 and tracked it down to os.execv() in rust_cli.py. On Windows, CPython's os.execv() doesn't replace the current process like on Unix — it spawns a child process instead, which breaks console handle inheritance. The Rust TUI (crossterm) never receives keyboard input because the console handles are in an inconsistent state.

Fix is in #790 — we replaced the three os.execv() call sites with a helper that uses subprocess.call() on Windows, which properly inherits console handles.

Bortlesboat avatar Mar 19 '26 21:03 Bortlesboat