Skip to content

Conversation

@ammar-agent
Copy link
Collaborator

Observed many agents polling without sleep, draining resources. The error message now explicitly encourages the use of short sleeps in busy loops while discouraging standalone sleep commands.

Changes:

  • Updated error message from "sleep commands are blocked" to "do not start commands with sleep; prefer <10s sleeps in busy loops"
  • More permissive framing that validates sleep when used properly in polling loops
  • Maintains blocking of standalone sleep commands at script start

Generated with cmux

@ammar-agent ammar-agent changed the title 🤖 Refine bash sleep error to encourage busy loops 🤖 Update bash sleep error to permit <10s sleeps in busy loops Oct 17, 2025
@ammario ammario added this pull request to the merge queue Oct 18, 2025
Merged via the queue into main with commit b9c3fe6 Oct 18, 2025
8 checks passed
@ammario ammario deleted the bash-sleep branch October 18, 2025 01:29
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