GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Question tool hangs in ACP mode · Issue #17920 · anomalyco/opencode

Question tool hangs in ACP mode #17920

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
Question tool hangs in ACP mode#17920
Copy link
Assignees
jlongster

Description

@Meskjei
Meskjei
opened on Mar 17, 2026
Issue body actions

Bug Description

When OpenCode runs via ACP (Agent Client Protocol), the question tool hangs indefinitely when the LLM tries to ask the user a question.

Root Cause

In packages/opencode/src/acp/agent.ts, the handleEvent method only handles these event types:

  • permission.asked - forwarded to client via requestPermission
  • message.part.updated
  • message.part.delta

The question.asked event is not handled, so when the question tool is invoked:

  1. QuestionService.ask() publishes question.asked event
  2. A Deferred is created to wait for the answer
  3. No handler forwards this to the ACP client
  4. The tool blocks forever waiting for a response

Proposed Fix

Add a question.asked event handler in the ACP agent that:

  1. Converts the question options to ACP requestPermission options
  2. Calls connection.requestPermission() to get user input from the client
  3. Maps the response back to question answers
  4. Calls the SDK's question.reply() to unblock the tool

Impact

This affects all ACP-compatible editors (Zed, JetBrains, Neovim plugins) when the LLM tries to use the question tool.

Reacted by Toby Harris

Activity

  1. github-actions commented on Mar 17, 2026

    @github-actions
    github-actionsBot
    on Mar 17, 2026 – with GitHub Actions
    Contributor
    More actions

    This issue might be a duplicate of existing issues. Please check:

    • [FEATURE]: Enable question tool for ACP clients (Zed, etc.) #13752: Describes the exact same problem — question tool not handled in ACP mode (Zed, etc.), causing it to hang/be silently dropped, with the same proposed fix of mapping question.asked to requestPermission.
  2. Meskjei
    added a commit that references this issue on Mar 17, 2026

    fix(acp): handle question.asked event to prevent hanging

    This issue will close once commit 05f0214 is merged into the 'dev' branch.
    05f0214
  3. thdxr
    assigned
    jlongster
    on May 3, 2026
  4. rekram1-node commented on Jun 23, 2026

    @rekram1-node
    rekram1-node
    on Jun 23, 2026
    Member
    More actions

    Automated: closing question issues.

    GitHub Issues are for bug reports and feature requests only — questions / support are no longer tracked here.

    • For help & questions: https://discord.gg/opencode
    • Billing issues with Opencode Go / Zen: [email protected]

    If this is a bug or feature request, please open a new issue with the appropriate template.

  5. rekram1-node
    closed this as not plannedon Jun 23, 2026
  6. rekram1-node commented on Jun 23, 2026

    @rekram1-node
    rekram1-node
    on Jun 23, 2026
    Member
    More actions

    Reopening – this was incorrectly closed by automated question-issue cleanup. Sorry for the noise.

  7. rekram1-node
    reopened this on Jun 23, 2026
  8. WaterRRabbit commented on Jun 25, 2026

    @WaterRRabbit
    WaterRRabbit
    on Jun 25, 2026
    More actions

    +1 — we also need this. Happy to help test once #33482 / #20017 lands.

  9. github-actions commented on Aug 25, 2026

    @github-actions
    github-actionsBot
    on Aug 25, 2026 – with GitHub Actions
    Contributor
    More actions

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

  10. github-actions
    closed this as not plannedon Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @jlongster
    jlongster

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.