Skip to content

Exempt background-agent polling from loop-termination detection#2319

Merged
dgageot merged 1 commit intodocker:mainfrom
krissetto:dont-kill-agent
Apr 4, 2026
Merged

Exempt background-agent polling from loop-termination detection#2319
dgageot merged 1 commit intodocker:mainfrom
krissetto:dont-kill-agent

Conversation

@krissetto
Copy link
Copy Markdown
Contributor

Adds a way to except specific tools from the loop-termination detection

Agents, having no time perception, can sometimes start background tasks and repeatedly poll them and obtain the same response because not enough time has passed. This would cause the whole agent loop to get forcefully terminated.

Let's exempt the background agent tools to alleviate the immediate issue, and rethink the strategy if more problematic scenarios occur (background tasks/processes might also have the same issue)

Signed-off-by: Christopher Petito <chrisjpetito@gmail.com>
@krissetto krissetto requested a review from a team as a code owner April 4, 2026 14:49
@dgageot dgageot merged commit dc8062b into docker:main Apr 4, 2026
8 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