Skip to content

ask-user-question tells the agent "the user dismissed the question" when the question was interrupted #7347

Closed

Description

@k0d3r1s

Summary

The ask-user-question tool gives every non-timeout cancel reason the same result: "The user dismissed the question without answering. Proceed with your best judgement, or ask again in your reply." That includes plugin-disposed, server-restarted, thread-stopped and request-aborted. After a plugin reload or a server restart, the agent carries on as if the user chose not to answer.

Repro

Code path (found by reading main):

  1. An agent calls the ask-user-question tool. The question is pending.
  2. The plugin is reloaded or disabled, or the server restarts. The interaction is cancelled with reason plugin-disposed or server-restarted.
  3. The tool returns the "user dismissed" text. The agent proceeds with its own judgement.

Cause

Line numbers are from main at 7c1353d8.

  • plugins/ask-user-question/src/server.ts:107-112: only reason === "timeout" gets its own message. Every other reason gets the "dismissed" text.
  • packages/plugin-sdk/src/backend-contract.ts:989-996: PluginInteractionCancelReason is user, request-aborted, thread-stopped, thread-deleted, plugin-disposed, server-restarted and timeout. Only user means the user dismissed the question.

Suggested fix

Use the "dismissed" text only for reason user. For the other reasons, say that the question was interrupted before the user answered and that the user has not responded. What the agent should do next (ask again, or stop and wait) is a product choice.

result.reason === "user"
  ? "The user dismissed the question without answering. ..."
  : result.reason === "timeout"
    ? buildTimeoutMessage(Date.now() - askedAt)
    : "The question was interrupted before it was answered. The user has not responded."

Activity

  1. added theissue type on Nov 10, 2026
  2. added
    plugins
    ask-user-question
    confirmed-repro
    on Nov 10, 2026
  3. bb-slop-cop commented on Nov 10, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    • Classification: Bug · Priority: Medium · Effort: Low. Labels: plugins, ask-user-question, confirmed-repro.
    • Reproduction report: REPRODUCED, high root-cause confidence. A pending-question disposal regression fails on trusted main in two clean checkouts; no live server restart or downstream model continuation is claimed.
    • Root cause: the tool handles timeout separately but incorrectly translates every other cancellation reason into deliberate user dismissal.
    • Fix: ready PR #7375 preserves user/timeout messages and reports other cancellations as unanswered interruptions. Two files, 24 changed lines; regression passes after the fix, all 38 plugin tests pass, and typecheck, lint, and diff checks pass.

    AGENT GENERATED

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    ask-user-questionconfirmed-reproplugins

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions