mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 11:41:04 +00:00
resolve comment
This commit is contained in:
parent
91179fa6db
commit
68304c85b8
1 changed files with 8 additions and 7 deletions
|
|
@ -1347,14 +1347,14 @@ export class CoreToolScheduler {
|
|||
cancelMessage += `\n\n${failureHookResult.additionalContext}`;
|
||||
}
|
||||
this.setStatusInternal(callId, 'cancelled', cancelMessage);
|
||||
return;
|
||||
} else {
|
||||
this.setStatusInternal(
|
||||
callId,
|
||||
'cancelled',
|
||||
'User cancelled tool execution.',
|
||||
);
|
||||
}
|
||||
this.setStatusInternal(
|
||||
callId,
|
||||
'cancelled',
|
||||
'User cancelled tool execution.',
|
||||
);
|
||||
return;
|
||||
return; // Both code paths should return here
|
||||
}
|
||||
|
||||
if (toolResult.error === undefined) {
|
||||
|
|
@ -1506,6 +1506,7 @@ export class CoreToolScheduler {
|
|||
'User cancelled tool execution.',
|
||||
);
|
||||
}
|
||||
return;
|
||||
} else {
|
||||
// PostToolUseFailure Hook
|
||||
let exceptionErrorMessage = errorMessage;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue