Repository navigation
fix(agent): make AskUserQuestion available in all interactive modes - #1185
Merged
Merged
Conversation
Remove AskUserQuestion from planOnlyTools so it is advertised and executable in standard, auto, and auto-with-judge modes. RequestPlanApproval stays plan-only. Update the tool description, mode-change reminders, config comment, and README to drop the plan-only wording, and extend the mode-matrix tests.
3 tasks
inference-gateway-maintainer
Bot
marked this pull request as ready for review
September 12, 2026 15:56
inference-gateway-maintainer
Bot
requested a review
from a team
as a code owner
September 12, 2026 15:56
6 tasks
Contributor
|
🎉 This PR is included in version 0.190.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #1184
Summary
AskUserQuestionis no longer plan-mode only: removing it fromplanOnlyToolsmakes it advertised and executable in standard, auto, and auto-with-judge modes whenevertools.ask_user_question.enabledis true, so the agent can ask a multiple-choice clarifying question mid-task instead of guessing.RequestPlanApprovalremains plan-only and plan mode is unchanged. Headless runs keep the existing nil-broker degradation path.Changes
internal/agent/llm_tool_service.go: droppedAskUserQuestionfromplanOnlyTools(stays inplanModeAllowedTools), soListToolsForModeadvertises it andExecuteToolno longer rejects it outside plan modeconfig/prompts.go: tool description no longer says "(plan mode only)"; the "call BEFORE RequestPlanApproval" sentence is now scoped to plan modeconfig/reminders.go: the auto, auto-with-judge, and standard mode-change guidance now list onlyRequestPlanApprovalas the disabled plan-only toolconfig/config.go: fixed the stale "plan-mode only" comment onAskUserQuestionToolConfigREADME.md: tool table row no longer describesAskUserQuestionas plan modeinternal/agent/llm_tool_service_test.go:TestListToolsForMode_AskUserQuestionModesasserts the tool is advertised in plan, standard, auto, and auto-with-judge and still excluded from read-only;TestExecuteTool_ModeGuardnow has "standard/auto allow AskUserQuestion" cases whilestandard rejects RequestPlanApprovalstaysask_user_question.go,autocomplete_test.go, andtool_mode_test.go