Skip to content

fix(agent): make AskUserQuestion available in all interactive modes - #1185

Merged
edenreich merged 1 commit into
mainfrom
fix/issue-1184
Sep 12, 2026
Merged

edenreich merged 1 commit into
mainfrom
fix/issue-1184

Conversation

@inference-gateway-maintainer

Copy link
Copy Markdown
Contributor

Resolves #1184

Summary

AskUserQuestion is no longer plan-mode only: removing it from planOnlyTools makes it advertised and executable in standard, auto, and auto-with-judge modes whenever tools.ask_user_question.enabled is true, so the agent can ask a multiple-choice clarifying question mid-task instead of guessing. RequestPlanApproval remains plan-only and plan mode is unchanged. Headless runs keep the existing nil-broker degradation path.

Changes

  • internal/agent/llm_tool_service.go: dropped AskUserQuestion from planOnlyTools (stays in planModeAllowedTools), so ListToolsForMode advertises it and ExecuteTool no longer rejects it outside plan mode
  • config/prompts.go: tool description no longer says "(plan mode only)"; the "call BEFORE RequestPlanApproval" sentence is now scoped to plan mode
  • config/reminders.go: the auto, auto-with-judge, and standard mode-change guidance now list only RequestPlanApproval as the disabled plan-only tool
  • config/config.go: fixed the stale "plan-mode only" comment on AskUserQuestionToolConfig
  • README.md: tool table row no longer describes AskUserQuestion as plan mode
  • internal/agent/llm_tool_service_test.go: TestListToolsForMode_AskUserQuestionModes asserts the tool is advertised in plan, standard, auto, and auto-with-judge and still excluded from read-only; TestExecuteTool_ModeGuard now has "standard/auto allow AskUserQuestion" cases while standard rejects RequestPlanApproval stays
  • Refreshed stale comments in ask_user_question.go, autocomplete_test.go, and tool_mode_test.go

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.
@inference-gateway-maintainer
inference-gateway-maintainer Bot marked this pull request as ready for review September 12, 2026 15:56
@inference-gateway-maintainer
inference-gateway-maintainer Bot requested a review from a team as a code owner September 12, 2026 15:56
@edenreich
edenreich merged commit e9bc320 into main Sep 12, 2026
1 check passed
@edenreich
edenreich deleted the fix/issue-1184 branch September 12, 2026 16:09
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.190.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Make AskUserQuestion available on all modes

1 participant