Skip to content

[BUG] The timeout limit does not stop cat /dev/zero > /dev/null #374

Open

Description

@strandly-the-agent

Checks

  • I have updated to the latest minor and patch version of Strands Shell (built from main @ dbb6189)
  • 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

dbb6189 (--version prints 0.0.0)

Language Runtime Version

Rust 1.100.0

Operating System

Linux 6.18 (aarch64)

Installation Method

built from source

Steps to Reproduce

Config file to.toml:

[limits]
timeout = 2
strands-shell --config to.toml -c 'cat /dev/zero > /dev/null; echo "rc=$?"'

Expected Behavior

The command is stopped after 2 seconds with execution timeout exceeded, as happens with the same config for sleep 100 and for while :; do :; done.

Actual Behavior

No output, and it was still running when I killed it after 8 seconds.

Additional Context

Found while reviewing #354; not related to that change. #366 is another case where the timeout does not fire; I don't know whether the cause is shared.

head -c 100000000 /dev/zero > /dev/null finishes at once, and cat /dev/zero | head -c 3 ends as soon as head exits, so reading /dev/zero itself works.

Possible Solution

Not investigated.

Related Issues

#366

Activity

  1. added
    bug
    on Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    Fields

    Language

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions