fix(chat): recall the current session's prompts by default; tidy the six merged PRs
Input history (#3035) shipped with "All projects" as the default scope and only recorded prompts sent after the upgrade, so ArrowUp showed other sessions' prompts and, once switched to "Current session", nothing at all. Default to the current session and merge the visible transcript's prompts with the persisted bucket. Existing sessions recall as they did before #3035, while new prompts keep their attachments and stay recallable after a revert hides them from the transcript. Cleanup across #1855, #2297, #3072, #3178, #3035 and #3135: drop the duplicate poll guards in the file content poller, the zod schema the VS Code package cannot depend on, a copied file-URL helper and stray whitespace; move the Enter-to-send strings into the settings namespace; document OPENCHAMBER_CHATS_DIR, resolve the chats root once on the server and warm it alongside the other bootstrap calls.
This commit is contained in:
@@ -121,7 +121,7 @@ describe('settings helpers', () => {
|
||||
inputHistoryLimit: 40,
|
||||
});
|
||||
expect(helpers.formatSettingsResponse({})).toMatchObject({
|
||||
inputHistoryScope: 'global',
|
||||
inputHistoryScope: 'session',
|
||||
inputHistoryLimit: DEFAULT_INPUT_HISTORY_LIMIT,
|
||||
});
|
||||
} finally {
|
||||
@@ -265,14 +265,14 @@ describe('settings helpers', () => {
|
||||
expect(helpers.sanitizeSettingsUpdate({ inputHistoryScope: 'workspace' })).toEqual({});
|
||||
});
|
||||
|
||||
it('defaults inputHistoryScope to global in formatted settings responses', () => {
|
||||
it('defaults inputHistoryScope to session in formatted settings responses', () => {
|
||||
const helpers = createTestHelpers();
|
||||
|
||||
expect(helpers.formatSettingsResponse({ inputHistoryScope: 'session' })).toMatchObject({
|
||||
inputHistoryScope: 'session',
|
||||
expect(helpers.formatSettingsResponse({ inputHistoryScope: 'global' })).toMatchObject({
|
||||
inputHistoryScope: 'global',
|
||||
});
|
||||
expect(helpers.formatSettingsResponse({})).toMatchObject({
|
||||
inputHistoryScope: 'global',
|
||||
inputHistoryScope: 'session',
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user