mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-05 15:31:27 +00:00
add singal abort for hooks
This commit is contained in:
parent
a0041191a7
commit
8bd7cf2cda
16 changed files with 344 additions and 52 deletions
|
|
@ -59,6 +59,7 @@ describe('clearCommand', () => {
|
|||
}),
|
||||
getModel: () => 'test-model',
|
||||
getToolRegistry: () => undefined,
|
||||
getApprovalMode: () => 'default',
|
||||
},
|
||||
},
|
||||
session: {
|
||||
|
|
@ -108,6 +109,7 @@ describe('clearCommand', () => {
|
|||
expect(mockFireSessionStartEvent).toHaveBeenCalledWith(
|
||||
SessionStartSource.Clear,
|
||||
'test-model',
|
||||
expect.any(String), // permissionMode
|
||||
);
|
||||
|
||||
// SessionEnd should be called before SessionStart
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue