mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 11:41:04 +00:00
Session-Level Conversation History Management (#1113)
This commit is contained in:
parent
a7abd8d09f
commit
0a75d85ac9
114 changed files with 9257 additions and 4039 deletions
|
|
@ -110,6 +110,9 @@ describe('useSlashCommandProcessor', () => {
|
|||
const mockSetQuittingMessages = vi.fn();
|
||||
|
||||
const mockConfig = makeFakeConfig({});
|
||||
mockConfig.getChatRecordingService = vi.fn().mockReturnValue({
|
||||
recordSlashCommand: vi.fn(),
|
||||
});
|
||||
const mockSettings = {} as LoadedSettings;
|
||||
|
||||
beforeEach(() => {
|
||||
|
|
@ -305,11 +308,15 @@ describe('useSlashCommandProcessor', () => {
|
|||
|
||||
expect(childAction).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
invocation: expect.objectContaining({
|
||||
name: 'child',
|
||||
args: 'with args',
|
||||
}),
|
||||
services: expect.objectContaining({
|
||||
config: mockConfig,
|
||||
}),
|
||||
ui: expect.objectContaining({
|
||||
addItem: mockAddItem,
|
||||
addItem: expect.any(Function),
|
||||
}),
|
||||
}),
|
||||
'with args',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue