Skip to content

Support session-scoped model configuration in the Sessions model picker #329265

Description

@benvillalobos

While migrating the new chat input widget into the automation dialog, I noticed that changing the reasoning effort or context size in the automation dialog also changes it in the regular New Chat widget, even before saving the automation.

The automation configuration itself is persisted and restored correctly by the provider. However, the Sessions ModelPicker does not provide delegate.modelConfiguration, causing ModelPickerWidget to fall back to the global ILanguageModelsService.

We need the Sessions model picker to support provider/session-scoped model configuration so that:

  • Configuration is read from the session supplied to NewChatInputWidget.
  • Picker changes update only that session draft.
  • Providers can restore persisted model configuration into a session.
  • Separate New Chat inputs do not affect one another.
  • The global configuration remains a fallback when no scoped access is available.
  • Reasoning effort and context size remain correct when an automation is edited or executed.

An investigation snapshot that captures and forwards provider-owned model configuration is available here:

That snapshot does not yet implement the required session-scoped IModelConfigurationAccess; it is intended as a place to resume the investigation.

Metadata

Metadata

Assignees

Labels

automationsIssue for the sessions window automation feature

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions