Skip to content

Commit 6e1a71b

Browse files
sandy081Copilot
andauthored
sessions: Chat windows setting is an experiment in startup mode (#346830)
`sessions.chatWindows.enabled` also controls whether chat windows are restored at startup, so an experiment assignment only applies at startup. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent b850ad5 commit 6e1a71b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/vs/sessions/contrib/chatWindow/browser/chatWindow.contribution.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Registry.as<IConfigurationRegistry>(ConfigurationExtensions.Configuration).regis
2525
default: product.quality !== 'stable',
2626
scope: ConfigurationScope.APPLICATION,
2727
tags: ['preview'],
28-
experiment: { mode: 'auto' },
28+
experiment: { mode: 'startup' },
2929
description: localize('sessions.chatWindows.enabled', "Controls whether chats of the Agents window can be opened in windows of their own, and whether the chat windows that were open are restored at startup. Turning it off hides the actions that open chat windows; the chat windows that are open stay until closed."),
3030
},
3131
}

‎src/vs/sessions/contrib/chatWindow/test/browser/chatWindowContribution.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ suite('Chat window contribution', () => {
127127
off: offered({ [ChatContextKeys.enabled.key]: true, [`config.${CHAT_WINDOWS_ENABLED_SETTING}`]: false }),
128128
on: offered({ [ChatContextKeys.enabled.key]: true, [`config.${CHAT_WINDOWS_ENABLED_SETTING}`]: true }),
129129
aiDisabled: offered({ [ChatContextKeys.enabled.key]: false, [`config.${CHAT_WINDOWS_ENABLED_SETTING}`]: true }),
130-
}, { default: product.quality !== 'stable', scope: ConfigurationScope.APPLICATION, tags: ['preview', 'onExP'], experiment: { mode: 'auto' }, off: false, on: true, aiDisabled: false });
130+
}, { default: product.quality !== 'stable', scope: ConfigurationScope.APPLICATION, tags: ['preview', 'onExP'], experiment: { mode: 'startup' }, off: false, on: true, aiDisabled: false });
131131
});
132132

133133
test('the session header offers Open in New Window in the main window and Move to Main Window in a chat window', () => {

0 commit comments

Comments
 (0)