Skip to content

[Bug]: Cursor ACP sessions never offer the AskQuestion tool, so the question UI is never used #13632

Closed as not planned

Description

@jahvi

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

  1. Use the Cursor provider (T3 spawns agent acp).
  2. Send a prompt that should make the agent ask a multiple-choice question, e.g. a skill that says "use the harness question tool (AskQuestion in Cursor)".
  3. Or ask directly: "Do not call any tools. List the exact names of every tool available to you."

Expected behavior

The model gets Cursor's AskQuestion tool. Calling it sends cursor/ask_question, which T3 already handles (handleExtRequest("cursor/ask_question", ...) → user-input.requested), so the question shows in T3's question UI. Same as the Claude (AskUserQuestion) and Codex (request_user_input) providers.

Actual behavior

AskQuestion is never in the model's tool list under ACP, so the model prints questions as plain assistant text and T3's question UI is never used.

Tool lists reported by the model with Cursor CLI 2026.09.18-9a7762b, same prompt:

Launch AskQuestion
agent acp, mode agent missing
agent acp, mode plan missing (CreatePlan present)
agent -p --trust present

T3 can't turn it on from the client side. The only clientCapabilities._meta flags the CLI reads are subagents and parameterizedModelPicker. ACP requests carry x-cursor-client-type: acp, so the tool looks filtered for ACP clients on Cursor's side, even though Cursor documents cursor/ask_question as an ACP extension.

Minimal repro client (plain agent acp over stdio, same initialize capabilities T3 sends): initialize → authenticate → session/new → optional session/set_mode → session/prompt with the tool-list prompt above.

Impact

Major degradation or frequent failure

Version or commit

T3 Code (Alpha) 0.0.42. Cursor CLI 2026.09.18-9a7762b.

Environment

macOS 26.6, Cursor provider, model claude-opus-5-5.

Workaround

None in T3. Agents fall back to plain-text questions. A possible T3-side mitigation is exposing a question tool on the t3-code MCP server that already gets injected into Cursor sessions, routed to the existing user-input flow.

Activity

  1. juliusmarminge commented on Sep 25, 2026

    @juliusmarminge
    Member

    Triage #13632

    Verdict: upstream. Cursor CLI 2026.09.23-86fc751 (newer than the reported 2026.09.18-9a7762b) still does not give ACP sessions the AskQuestion tool. T3 already handles cursor/ask_question. No matching issue in this repo. The handler is unchanged on current main (package 0.0.42).

    What the report gets right

    T3 starts Cursor with the acp subcommand (buildCursorAcpSpawnInput in apps/server/src/provider/acp/CursorAcpSupport.ts). initialize sends only:

    { "clientCapabilities": { "_meta": { "parameterizedModelPicker": true } } }

    (CURSOR_PARAMETERIZED_MODEL_PICKER_CAPABILITIES in apps/server/src/provider/Layers/CursorProvider.ts).

    On session start, CursorAdapter registers cursor/ask_question and turns it into user-input.requested (handleExtRequest in apps/server/src/provider/Layers/CursorAdapter.ts). That handler runs only after the model calls the tool.

    CLI 2026.09.23-86fc751 reads two flags from initialize: subagents (top-level or _meta.subagents) enables subagent session updates, and _meta.parameterizedModelPicker switches the model picker. ACP backend calls set x-cursor-client-type: acp. The default CLI path (agent -p) sets x-cursor-client-type: cli. The local CLI still implements cursor/ask_question and calls it when the model invokes the tool. There is no capability flag that adds AskQuestion to the ACP tool list. CreatePlan remaining available in plan mode matches that split: T3 handles both extension methods, and only AskQuestion is missing from the ACP catalog.

    Response shape, once the tool exists

    The current reply is { answers } (ProviderUserInputAnswers, a record of labels). extractAskQuestions drops option ids. CLI 2026.09.23 expects:

    { outcome: { outcome: "answered", answers: [{ questionId, selectedOptionIds }] } }

    A reply without outcome throws inside the CLI handler. Single-select questions then fall through to session/request_permission; otherwise the model is told the client does not support the extension. That path stays idle while the tool is absent from the ACP catalog.

    Recommendation

    Label bug and upstream. Leave the handler until Cursor offers AskQuestion on x-cursor-client-type: acp.

    An MCP question tool on t3-code would be a separate product surface. Cursor's native tool would stay off.

  2. added
    bug
    via-triage
    on Sep 25, 2026
  3. juliusmarminge commented on Oct 2, 2026

    @juliusmarminge
    Member

    Thanks for checking both Cursor ACP and the native CLI. Orchestrator V2 has merged in #2829.

    Cursor execution now uses the official SDK rather than ACP. We are closing this as obsolete because it tracks the missing AskQuestion tool in the transport we removed; this does not claim that every question workflow has been verified in the replacement.

    If the problem persists on a build containing V2, please open a fresh issue with the T3 version, provider version, reproduction steps, and relevant logs, and link this report.

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

    bugupstreamvia-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions