-
Notifications
You must be signed in to change notification settings - Fork 322
timeout-minutes on agent step not enforced inside AWF container #23965
Description
Bug
When a workflow sets timeout-minutes on the step that executes the Copilot CLI agent inside the AWF firewall container, the timeout is not enforced. The agent process continues running indefinitely past the configured timeout, until it hits the GitHub Actions 6-hour job timeout (or 72-hour workflow timeout).
Expected behavior
The agent step should be terminated after timeout-minutes expires, just like any other GitHub Actions step.
Actual behavior
The agent step ignores timeout-minutes and runs until the job-level or workflow-level timeout. This appears to be caused by signal delivery (SIGTERM/SIGKILL) not reaching the process inside the AWF Docker container.
Impact
Runaway agents consume expensive runner time with no way to cap execution duration at the step level. The only workaround is manually cancelling the workflow run.
Reproduction
- Create a workflow with an agent step that has
timeout-minutes: 10 - Point it at a project with a very large build/test suite that will take longer than 10 minutes
- Observe that the agent step runs well past 10 minutes without being killed