Skip to content

Lower hosted agent session idle timeout minimum to 120 seconds - #9728

Merged
Travis Angevine (trangevi) merged 1 commit into
Azure:mainfrom
Deeksharma:Deeksharma/hosted-agent-session-idle-timeout
Sep 3, 2026
Merged

Lower hosted agent session idle timeout minimum to 120 seconds#9728
Travis Angevine (trangevi) merged 1 commit into
Azure:mainfrom
Deeksharma:Deeksharma/hosted-agent-session-idle-timeout

Conversation

@Deeksharma

Copy link
Copy Markdown
Contributor

Summary

Relaxes the client-side validation floor for sessionConfiguration.idleTimeoutSeconds on hosted agents from 300 to 120 seconds (2 minutes), ahead of the corresponding upcoming server-side change. The maximum remains 3600 seconds.

This follows up on #9612, which introduced sessionConfiguration.idleTimeoutSeconds support in the azure.ai.agents extension.

Changes

  • agent_yaml/yaml.goMinSessionIdleTimeoutSeconds 300 → 120; updated doc comment.
  • agent_api/models.go — updated range in doc comment to 120–3600.
  • schemas/azure.ai.agent.json & schemas/Agent.jsonminimum 300 → 120; updated descriptions.
  • README.md — "between 120 and 3600 seconds".
  • doc_examples_test.go — min-valid boundary → 120, below-min → 119.

Behavior

  • Values from 120 to 3600 seconds (inclusive) are now accepted.
  • Omitting the setting is unchanged: session_configuration is left out of the request and the service applies its default (900 seconds).

Tests

  • Boundary tests use the Min/MaxSessionIdleTimeoutSeconds constants and adapt automatically.
  • gofmt clean, go build ./... passes, and full agent_yaml + project package tests pass.

Note: The matching server-side change is rolling out separately; this relaxes the client floor so it's ready when the server accepts the lower bound.

Relax the client-side validation floor for
sessionConfiguration.idleTimeoutSeconds from 300 to 120 seconds (2
minutes) ahead of the upcoming server-side change. The maximum remains
3600 seconds.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@microsoft-github-policy-service

Copy link
Copy Markdown
Contributor

Thank you for your contribution Deeksha Sharma (@Deeksharma)! We will review the pull request and get back to you soon.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
18 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.

Pull request overview

Lowers hosted-agent session idle timeout validation from 300 to 120 seconds across implementation, schemas, and documentation.

Changes:

  • Updates the minimum timeout constant and API documentation.
  • Synchronizes both JSON schemas and README guidance.
  • Adjusts schema boundary tests for 120/119 seconds.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
schemas/azure.ai.agent.json Lowers the schema minimum to 120.
schemas/Agent.json Synchronizes the alternate schema constraint.
README.md Documents the new valid range.
internal/project/doc_examples_test.go Updates minimum-boundary schema tests.
internal/pkg/agents/agent_yaml/yaml.go Changes the validation minimum constant.
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.

@microsoft-github-policy-service microsoft-github-policy-service Bot added the no-recent-activity identity issues with no activity label Sep 2, 2026
@microsoft-github-policy-service

Copy link
Copy Markdown
Contributor

Hi @Deeksha Sharma (@Deeksharma). Thank you for your interest in helping to improve the Azure Developer CLI experience and for your contribution. We've noticed that there hasn't been recent engagement on this pull request. If this is still an active work stream, please let us know by pushing some changes or leaving a comment. Otherwise, we'll close this out in 7 days.

@trangevi
Travis Angevine (trangevi) merged commit 5df5702 into Azure:main Sep 3, 2026
31 of 34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

customer-reported identify a customer issue no-recent-activity identity issues with no activity

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support hosted agent session idle timeout in azure.yaml

3 participants