Commit a100aaf
committed
Add Windows PTY support for Python worker
Run built-in Python through ConPTY on Windows so it uses the same PTY-backed stdin and sideband accounting path as Unix. Keep the worker protocol unchanged while adding Windows console setup, input draining, and zod/Python parity coverage.
Verification: cargo check; cargo build; python tests/run_integration_tests.py --binary target/debug/mcp-repl.exe; cargo clippy --all-targets --all-features -- -D warnings; cargo test --quiet; cargo +nightly fmt. The required python3 integration command could not run because python3 is not installed on this Windows host.1 parent 5fc510b commit a100aaf
9 files changed
Lines changed: 1107 additions & 162 deletions
File tree
- docs/plans/active
- src
- tests
- fixtures
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
647 | 647 | | |
648 | 648 | | |
649 | 649 | | |
650 | | - | |
| 650 | + | |
651 | 651 | | |
652 | 652 | | |
653 | 653 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
| |||
198 | 200 | | |
199 | 201 | | |
200 | 202 | | |
201 | | - | |
| 203 | + | |
202 | 204 | | |
203 | 205 | | |
204 | 206 | | |
205 | 207 | | |
206 | | - | |
| 208 | + | |
207 | 209 | | |
208 | 210 | | |
209 | 211 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
282 | | - | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
283 | 285 | | |
284 | 286 | | |
285 | 287 | | |
| |||
631 | 633 | | |
632 | 634 | | |
633 | 635 | | |
634 | | - | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
635 | 640 | | |
636 | 641 | | |
637 | 642 | | |
| |||
1009 | 1014 | | |
1010 | 1015 | | |
1011 | 1016 | | |
1012 | | - | |
1013 | | - | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
1014 | 1020 | | |
1015 | 1021 | | |
1016 | 1022 | | |
| |||
1113 | 1119 | | |
1114 | 1120 | | |
1115 | 1121 | | |
1116 | | - | |
| 1122 | + | |
1117 | 1123 | | |
1118 | 1124 | | |
1119 | 1125 | | |
| |||
1127 | 1133 | | |
1128 | 1134 | | |
1129 | 1135 | | |
1130 | | - | |
| 1136 | + | |
| 1137 | + | |
1131 | 1138 | | |
1132 | | - | |
| 1139 | + | |
1133 | 1140 | | |
1134 | 1141 | | |
1135 | 1142 | | |
| |||
1459 | 1466 | | |
1460 | 1467 | | |
1461 | 1468 | | |
1462 | | - | |
| 1469 | + | |
1463 | 1470 | | |
1464 | 1471 | | |
1465 | 1472 | | |
1466 | 1473 | | |
1467 | | - | |
| 1474 | + | |
1468 | 1475 | | |
1469 | 1476 | | |
1470 | 1477 | | |
| |||
0 commit comments