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
{{ message }}
Repository navigation
[TASK] Refactor unify the two tool-approval and rejection routes #1153
Tool approval and rejection are implemented twice: the state machine route (internal/agent/states/approving_tools.go, buildRejectionEntry, finishApprovals) and the older executeTool route in internal/agent/agent.go (createRejectionEntry, checkToolResultsStatus). Both decide approval, both build a rejection tool result with drifted wording ("Tool call rejected" vs "Tool execution rejected"), and both hold the stop-the-turn rule. PR #1148 had to change the approval signature and the rejection text in both places.
Confirm whether the older route still runs; if not, delete it. Either way, keep one rejection builder and one stop-the-turn rule. While there, make the turn-stop semantics explicit rather than overloading ToolExecutionResult.Rejected (human rejection stops the turn; a judge rejection is now a plain failure so the driver continues).
Acceptance Criteria
One rejection-entry builder shared by every approval path
One place decides whether a rejected batch ends the turn
ToolExecutionResult states the outcome explicitly (or the docs on Rejected say what it means for turn control)
The older executeTool approval route is removed or documented as still live, with a test
Activity
feat(agent): add auto-with-judge mode with an LLM judge as the tool a…
refactor(agent): remove the dead executeTool approval route
refactor(agent): remove the dead executeTool approval route (#1160)
inference-gateway-releaser commentedon Sep 2, 2026
🎉 This issue has been resolved in version 0.188.0 🎉
The release is available on:
Your semantic-release bot 📦🚀