Skip to content

[Bug] Prevent empty non-interactive tasks from reading stdin - #1855

Open
nightcityblade wants to merge 1 commit into
kyegomez:masterfrom
nightcityblade:fix/issue-1852
Open

[Bug] Prevent empty non-interactive tasks from reading stdin#1855
nightcityblade wants to merge 1 commit into
kyegomez:masterfrom
nightcityblade:fix/issue-1852

Conversation

@nightcityblade

Copy link
Copy Markdown

Thank you for contributing to Swarms!

Please make sure your PR is passing linting and testing before submitting. Run make format, make lint and make test to check this locally.

See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/kyegomez/swarms/blob/master/CONTRIBUTING.md

If you're adding a new integration, please include:

  1. a test for the integration, preferably unit tests that do not rely on network access,
  2. an example notebook showing its use.

Maintainer responsibilities:

If no one reviews your PR within a few days, feel free to email Kye at kye@swarms.world

See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/kyegomez/swarms

Validation performed:

  • .venv/bin/python -m pytest tests/structs/test_agent.py::TestBasicAgent::test_noninteractive_empty_task_does_not_read_stdin -q — 3 passed
  • .venv/bin/black . --check --diff — 955 files unchanged
  • .venv/bin/ruff check . — passed

@github-actions

github-actions Bot commented Aug 9, 2026

Copy link
Copy Markdown

Hello there, thank you for opening an PR ! 🙏🏻 The team was notified and they will get back to you asap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug][Agent] agent.run() with an empty task blocks on stdin even when interactive=False — a commented-out guard inverted the feature

1 participant