fix
This commit is contained in:
parent
388505d7e0
commit
f735b0551c
1 changed files with 2 additions and 0 deletions
|
|
@ -2201,6 +2201,7 @@ turnLoop:
|
||||||
toolArgs = toolReq.Arguments
|
toolArgs = toolReq.Arguments
|
||||||
}
|
}
|
||||||
case HookActionDenyTool:
|
case HookActionDenyTool:
|
||||||
|
allResponsesHandled = false
|
||||||
denyContent := hookDeniedToolContent("Tool execution denied by hook", decision.Reason)
|
denyContent := hookDeniedToolContent("Tool execution denied by hook", decision.Reason)
|
||||||
al.emitEvent(
|
al.emitEvent(
|
||||||
EventKindToolExecSkipped,
|
EventKindToolExecSkipped,
|
||||||
|
|
@ -2240,6 +2241,7 @@ turnLoop:
|
||||||
ChatID: ts.chatID,
|
ChatID: ts.chatID,
|
||||||
})
|
})
|
||||||
if !approval.Approved {
|
if !approval.Approved {
|
||||||
|
allResponsesHandled = false
|
||||||
denyContent := hookDeniedToolContent("Tool execution denied by approval hook", approval.Reason)
|
denyContent := hookDeniedToolContent("Tool execution denied by approval hook", approval.Reason)
|
||||||
al.emitEvent(
|
al.emitEvent(
|
||||||
EventKindToolExecSkipped,
|
EventKindToolExecSkipped,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue