You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] compound_pipe_into_function_redirected_from_cli overflows the stack on Windows CI #406
I have updated to the latest minor and patch version of Strands Shell
I have checked the documentation and this is not expected behavior
I have searched ./issues and there are no duplicates of my issue
Binding
Rust
Strands Shell Version
main @ 4f838f9
Language Runtime Version
CI toolchain (Rust job, windows-latest)
Operating System
Windows Server 2025 (GitHub windows-latest runner)
Installation Method
built from source
Steps to Reproduce
Run the Rust CI job on Windows against anything containing current main, e.g. cargo test -p strands-shell --test shell_integration compound_pipe_into_function_redirected_from_cli on a Windows debug build.
Expected Behavior
The test passes, as it does on Ubuntu and macOS.
Actual Behavior
The CLI child process overflows its main-thread stack:
---- compound_pipe_into_function_redirected_from_cli stdout ----
thread 'compound_pipe_into_function_redirected_from_cli' panicked at tests\shell_integration.rs:3172:5:
assertion `left == right` failed
left: "\nthread 'main' (8084) has overflowed its stack\n"
right: ""
Seen on three runs so far, from two PRs that merged main on 2026-11-26:
Neither PR touches the executor. main itself doesn't run the Rust job on push, so this shows up only on PRs.
Additional Context
The script is g() { cat; }; { { echo a; } | g; } > f; echo "file:$(cat f)", run through the CLI binary. A comment next to the neighbouring test (tests/shell_integration.rs, just above compound_pipe_into_function_in_substitution_from_execute) already notes that a function call inside $( ) overflows the 1 MiB main-thread stack of a Windows debug build, and moves that case in process. This test has the same shape (a function call plus $( )) but still goes through the CLI. The tests come from #384.
Possible Solution
Either run this case in process like its neighbour, or give the CLI's main work a larger stack (for example, run it on a spawned thread with an explicit stack size). The second also covers real Windows users of the debug CLI. I have not tried either; I have no Windows machine.
Activity