Skip to content

docs: correct default per-command timeout in README security section - #100

Merged
arronbailiss merged 2 commits into
strands-agents:mainfrom
arronbailiss:docs/fix-readme-default-timeout
Sep 3, 2026
Merged

arronbailiss merged 2 commits into
strands-agents:mainfrom
arronbailiss:docs/fix-readme-default-timeout

Conversation

@arronbailiss

Copy link
Copy Markdown
Member

The README "Secure Defaults" section said the shell has no per-command timeout by default and advised adding
one. The source is the opposite.

Fix: the public builder default is a 30-second per-command timeout.

Verified against source:

  • ShellBuilder::default() sets timeout: Some(Duration::from_secs(30)) (src/shell.rs).
  • Config tests assert the 30s default: cfg.timeout_secs == Some(30.0) (tests/config.rs), cfg.timeout == 30.0
    (tests/python/test_config.py), cfg.timeout == 30 (tests/js/test_config.mjs).
  • None (no timeout) only arises via the custom-kernel embedding path Shell::with_kernel, which bypasses the builder.

Docs-only, one line.

The "Secure Defaults" section claimed the shell has no per-command
timeout by default and advised adding one. The source is the opposite:
`ShellBuilder::default()` sets `timeout: Some(Duration::from_secs(30))`
(src/shell.rs), and the config tests assert this default
(`cfg.timeout_secs == Some(30.0)` in tests/config.rs;
`cfg.timeout == 30.0`/`30` in the Python and JS config tests).

`None` (no timeout) only arises via the custom-kernel embedding path
(`Shell::with_kernel`), which bypasses the builder and reports
`timeout_secs: None` (tests/config.rs::with_kernel_reports_default_config_snapshot).

Rewrite the bullet so it states the real 30s default, that `timeout`
adjusts it, and that the no-timeout state applies only to `with_kernel`.
@arronbailiss
arronbailiss requested a review from a team as a code owner September 3, 2026 05:42
Comment thread README.md Outdated
@arronbailiss
arronbailiss enabled auto-merge (squash) September 3, 2026 13:38
@arronbailiss
arronbailiss merged commit 943e4dc into strands-agents:main Sep 3, 2026
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants