Skip to content

feat(agents): allow session idle timeouts up to 240 minutes - #10276

Open
Deeksha Sharma (Deeksharma) wants to merge 1 commit into
Azure:mainfrom
Deeksharma:deekssharma/hosted-agent-idle-timeout-max-240min
Open

Deeksha Sharma (Deeksharma) wants to merge 1 commit into
Azure:mainfrom
Deeksharma:deekssharma/hosted-agent-idle-timeout-max-240min

Conversation

@Deeksharma

Copy link
Copy Markdown
Contributor

Summary

Raise the hosted-agent session idle timeout maximum from 3,600 seconds (60 minutes) to 14,400 seconds (240 minutes).

  • Update client-side validation, Agent.json, azure.ai.agent.json, model comments, and README guidance.
  • Preserve the 120-second minimum and optional-setting behavior: omitted values remain absent from API requests so Foundry applies its 900-second default.
  • Cover 3,600, 3,601, 14,400, and 14,401-second boundaries, wire serialization, code deployment, and both authoring schemas.

Related contract change: Azure/azure-rest-api-specs#46925
Previous minimum-bound change: #9728

Validation

From cli/azd/extensions/azure.ai.agents:

go test ./internal/pkg/agents/agent_yaml ./internal/project -run 'TestCreateHostedAgentAPIRequest_.*Session|TestCreateAgentAPIRequest_CodeDeploySessionConfiguration|TestAgentDefinitionRoundTrip_SessionConfiguration|TestDocSchema|TestHostedAgentSchemaSessionIdleTimeoutBoundaries|TestDocExamplesAreValid' -count=1
go build ./...
go fix ./...

All passed. Go formatting and git diff --check passed. No live Azure deployment was run.

Rollout

This PR enables authoring and client-side acceptance only. Values above 3,600 seconds require the corresponding Foundry service support to be deployed. No TypeSpec dependency bump, extension release-version change, or registry update is included.

For optional live deploy regression coverage, use the foundry-extension-scenario-orchestrator agent with the foundry-extension-scenario-pr-regression skill to select the relevant deploy scenarios.

Raise the hosted-agent idle timeout ceiling to 14,400 seconds in\nclient validation and both authoring schemas. Preserve the 120-second\nminimum and omitted-setting behavior (900-second server default).\n\nUpdate documentation and cover the old and new boundaries, API\nserialization, code deployment, and both JSON schemas.

Authored-by: GitHub Copilot CLI v1.0.89
Model: GPT-6 Astra (gpt-6-astra)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 9fc49c48-e2df-41d0-ae12-d852fc9653c8
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
3 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The implementation consistently updates validation, schemas, documentation, and focused boundary coverage.

Review effort: Balanced
Findings: None

What changed in this PR

Raises hosted-agent session idle timeout validation from 60 to 240 minutes while preserving existing minimum and default behavior.

Changes:

  • Updates both authoring schemas, models, validation, and documentation.
  • Adds boundary, serialization, code-deployment, and schema tests.
  • Aligns client behavior with the related Foundry contract change.
File Description
schemas/​azure.ai.agent.json Raises the service schema maximum.
schemas/​Agent.json Raises the standalone agent schema maximum.
README.md Documents the new supported range.
internal/​project/​doc_examples_test.go Tests both schema boundaries.
internal/​pkg/​agents/​agent_yaml/​yaml.go Updates validation constants and comments.
internal/​pkg/​agents/​agent_yaml/​map_test.go Tests mapping and wire serialization.
internal/​pkg/​agents/​agent_api/​models.go Updates API model documentation.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

This branch has not been deployed

No deployments
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