Skip to content

Default Responses history to unlimited (-1) - #48940

Draft
Ankit Sinha (ankitbko) with Copilot wants to merge 1 commit into
mainfrom
copilot/fix-default-fetch-history-count
Draft

Default Responses history to unlimited (-1)#48940
Ankit Sinha (ankitbko) with Copilot wants to merge 1 commit into
mainfrom
copilot/fix-default-fetch-history-count

Conversation

Copilot AI commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

The default 100-item history limit can discard conversation context and separate tool calls from their results. Increasing the limit only postpones truncation.

  • Defaults: Change server, context, and orchestration history limits to -1 (unlimited), including persisted history references.
  • Configuration: Accept -1 through constructor options and environment parsing; retain positive limits and reject zero or other negative values.
  • Providers: Return all history for -1 in file and in-memory stores; forward the value unchanged to Foundry.
  • Contracts: Update documentation, API snapshots, and regression coverage for history exceeding 100 items across stored turns.

Explicit limits remain available:

app = ResponsesAgentServerHost(
    options=ResponsesServerOptions(default_fetch_history_count=1000),
)

Unlimited history removes item-count truncation, not model context-window limits or the need for summarization.

Co-authored-by: ankitbko <3169316+ankitbko@users.noreply.github.com>
Copilot AI changed the title Default Responses history fetch count to -1 (unlimited) Default Responses history to unlimited (-1) Sep 9, 2026
@azure-pipelines

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

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