fix: respond to ConPTY DSR cursor query on spawn

ConPTY sends ESC[6n (Device Status Report — report cursor position)
immediately on session start and blocks the child process until it
receives a reply. Since portable-pty never responds, the child hangs
forever and the PTY times out.

Fix: write ESC[1;1R (cursor at row 1, col 1) to the PTY input pipe
right after spawning, before reading any output. This unblocks ConPTY
and allows the child process to start normally.
This commit is contained in:
Sanskar Singh
2026-05-16 11:08:31 +05:30
parent 158b00266b
commit 0cb3a8ba6d
5 changed files with 79 additions and 2 deletions
+1
View File
@@ -61,3 +61,4 @@ python/omp-rpc/src/omp_rpc.egg-info/
# parallel-agent worktrees
.wt/
CPU*.md
packages/coding-agent/binaries/