Bug report: Prime Agent on Windows - three reproducible breakages (with ready fixes) #1969
samuelbouchard174-ctrl
started this conversation in
Bug reports
Replies: 2 comments
|
hell |
0 replies
|
hello i mean |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Bug report: Prime Agent on Windows — three reproducible breakages (with ready fixes)
Platform: Windows 10 (10.0.19045), Node 24, npm 11, running from a source checkout.
I hit three separate bugs repeatedly on Windows, and worked up fixes for each.
All are small, tested, and live on this branch in my fork:
https://github.com/samuelbouchard174-ctrl/prime-agent/tree/win-fsync-journal-fixes(5 commits, rebased on latest main).1. Kernel setup always fails on a fresh Windows machine
packages/coding-agent/src/core/kernel/bootstrap.tsresolves the kernel venvpython as
path.join(venv, "bin", "python")— the POSIX layout. On Windows thevenv python is
Scripts\python.exe. Result: every fresh setup fails withFailed to set up the Python kernel runtime ... kernel-venv\bin\python, and theassistant replies empty for every message. Fix:
venvPythonPath()helper(
Scripts\python.exeon win32,bin/pythonelsewhere).2. Daemon supervisor dies on command journal compaction
command-recovery-journal.tscompact()callsfsyncSync()on a directoryhandle, which Windows rejects with
EPERM. That repeatedly breaks the daemonsupervisor and the kernel then reports
Kernel has been shut downon every toolcall; restarts don't help. Fix: guard the directory fsync to POSIX only.
3. Multi-line pastes become one message per line
Terminals without bracketed-paste support (Windows console/conhost) deliver a
multi-line paste as raw CR/LF bytes. The TUI editor treats each newline as an
Enter keypress, so a 20-line paste becomes 20 submitted prompts (hundreds of
queued messages). Fix (in
packages/tui):StdinBufferwraps raw multi-linechunks in bracketed-paste markers;
Editor/Inputtreat any text+newline chunkas paste content instead of submit.
Also included
run()couldn't spawn.cmd/.batPATH shims;findExecutable()ignoredPATHEXT — both fixed (needed to run bootstrap tests on Windows).
uvas a batch file;POSIX-only interpreter tests
it.skipIf(win32), still run on Linux CI).npm run checkand the affected suites are green; changelog fragments included.Happy to split these into separate, discussion-anchored PRs if you'd like them
adopted — they're intended to make Windows a first-class platform.
All reactions