mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-17 23:35:54 +01:00
Fix model swap (#299621)
This commit is contained in:
@@ -1946,11 +1946,9 @@ export class ChatInputPart extends Disposable implements IHistoryNavigationWidge
|
||||
if (e.currentSessionResource && newSessionType !== this._currentSessionType) {
|
||||
this._currentSessionType = newSessionType;
|
||||
this.initSelectedModel();
|
||||
this.checkModelInSessionPool();
|
||||
}
|
||||
|
||||
// Validate that the current model belongs to the new session's pool
|
||||
this.checkModelInSessionPool();
|
||||
|
||||
// For contributed sessions with history, pre-select the model
|
||||
// from the last request so the user resumes with the same model.
|
||||
this.preselectModelFromSessionHistory();
|
||||
|
||||
Reference in New Issue
Block a user