Derive Copilot SDK session timeout from agent step timeout (minus 30s)#36505
Conversation
…ervability Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
@copilot set the copilot sdk timeout to the agent time - 30 seconds. |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
@copilot copilot_harness.cjs must set the timeout on the fly based on the timeout configured for the agent step - not just hardcoded in a single agentic workflow. |
There was a problem hiding this comment.
Pull request overview
Increases the Copilot SDK send/wait timeout for the Daily Security Observability agentic workflow so long-running (7-day) analyses don’t terminate early due to the SDK’s idle/wait limit, while staying within the GitHub Actions job timeout budget.
Changes:
- Adds a workflow-level
envoverride indaily-security-observability.mdto setCOPILOT_SDK_SEND_TIMEOUT_MSto 59m30s. - Regenerates the compiled workflow lock file so the same env override is applied at runtime.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/daily-security-observability.md | Adds workflow-level env override for Copilot SDK send timeout to match the 60-minute job timeout budget. |
| .github/workflows/daily-security-observability.lock.yml | Carries the env override into the compiled workflow so it takes effect in GitHub Actions runtime. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 2/2 changed files
- Comments generated: 0
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Implemented in 2f89666. |
|
|
The Daily Security Observability workflow was failing in the
copilotengine after the SDK driver hit its 10-minutesession.idlewait limit, causing runs to terminate before completion. This update generalizes the fix so SDK timeout is derived automatically from the configured agent step timeout, instead of relying on a workflow-specific hardcoded value.Problem scope
copilot-sdkruns can outlast the SDK default send/wait timeout.Change
actions/setup/js/process_runner.cjsso, in SDK mode:COPILOT_SDK_SEND_TIMEOUT_MSis explicitly set, it is respected.GH_AW_TIMEOUT_MINUTESas agent timeout minus 30 seconds.actions/setup/js/process_runner.test.cjsfor:GH_AW_TIMEOUT_MINUTESWhy this is bounded
Branch update requested by pr-sous-chef for run https://github.com/github/gh-aw/actions/runs/26843942909