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] A command substitution that starts after the deadline reports "maximum recursion depth exceeded" #260
stderr reports the timeout: strands-shell: execution timeout exceeded.
Actual Behavior
strands-shell: maximum recursion depth exceeded
strands-shell: maximum recursion depth exceeded
strands-shell: execution timeout exceeded
No recursion limit was hit (default max_depth 64). An agent reading this stderr is told the wrong cause. Same output on main and on #257. exec echo hi $(sleep 5) shows the same mislabel.
Additional Context
src/exec.rs:1684-1690 (main @ c7c2202): the substitution checks sub.check_limits(), which covers both the deadline and the depth limit, but always prints the depth message:
sub.depth += 1;if sub.check_limits().is_some(){
proc.captured_stderr.push_str("strands-shell: maximum recursion depth exceeded\n");
proc.err_msg("strands-shell: maximum recursion depth exceeded");
Activity
test: cover strands-agents#260 shapes where nothing downstream report…
fix: have a substitution after the deadline print the limit it hit (s…