mirror of
https://github.com/stablyai/orca.git
synced 2026-09-22 08:02:28 +00:00
* Fix Windows ConPTY probe failures by removing startup control bytes Avoid prepending terminal probes with interrupt (`\x03`) or line-kill (`\x15`) control characters on fresh shell launches. In Windows ConPTY, echoing a startup Ctrl+C can print a literal "^C" and corrupt the subsequent PowerShell commands. - Extract probe command sequence generation to a dedicated helper - Include E2E unit tests in the Vitest test suite config * Rename terminal probe E2E test to match unit test pattern Update the Vitest configuration glob pattern to target only E2E tests ending in `.unit.test.ts`, and rename the terminal probe input sequence test to match. This ensures only unit-like E2E tests are picked up by Vitest.
6 lines
257 B
TypeScript
6 lines
257 B
TypeScript
export function buildFreshShellProbeInputSequence(command: string): readonly string[] {
|
|
// Why: Windows ConPTY can echo a startup Ctrl+C as literal "^C", which
|
|
// corrupts the following PowerShell command before the shell is ready.
|
|
return [command]
|
|
}
|