You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to work on this. Both points verified in code:
The denial text is hardcoded at the manual-deny path in ReActAgent.applyConfirmResults (ToolResultBlock.text("Permission denied by user")). Plan: add an optional reason field to ConfirmResult (backward compatible — existing constructors keep working), and use it as the tool result text when present.
Confirmed asymmetry: the rule-based auto-deny path emits ToolResultStartEvent → ToolResultTextDeltaEvent → ToolResultEndEvent, while the manual-deny path only writes the DENIED ToolResultBlock into context without emitting any events. Plan: emit the same event triple for manually denied tool calls on resume, carrying the denial reason as the delta text.
Will keep the change focused on these two points with regression tests for both.
Activity
liulangjietou commentedon Aug 4, 2026
I'd like to work on this. Both points verified in code:
The denial text is hardcoded at the manual-deny path in
ReActAgent.applyConfirmResults(ToolResultBlock.text("Permission denied by user")). Plan: add an optionalreasonfield toConfirmResult(backward compatible — existing constructors keep working), and use it as the tool result text when present.Confirmed asymmetry: the rule-based auto-deny path emits
ToolResultStartEvent → ToolResultTextDeltaEvent → ToolResultEndEvent, while the manual-deny path only writes the DENIEDToolResultBlockinto context without emitting any events. Plan: emit the same event triple for manually denied tool calls on resume, carrying the denial reason as the delta text.Will keep the change focused on these two points with regression tests for both.
fix(core): emit tool result events on manual HITL denial and support …
fix(core): emit tool result events on manual HITL denial and support …
fix(core): support custom HITL deny reason and emit tool result events
fix(core): support custom HITL deny reason and emit tool result events
tcsp commentedon Sep 21, 2026
我也有自定义reason的诉求,这个还没有合并到主干吗?
fix(core): emit tool result events on manual HITL denial and support …