question tool not rendering interactive UI in OpenCode Web - only displays plain text #4510

Closed
opened 2026-02-16 17:44:26 -05:00 by yindo · 1 comment
Owner

Originally created by @iyangdianfeng on GitHub (Jan 9, 2026).

Originally assigned to: @adamdotdevin on GitHub.

Description

What happened?

When the AI assistant invokes the question tool to ask for user input with options, OpenCode Web fails to render the interactive question UI. Instead of showing clickable options with descriptions, the interface only displays the plain text "question" without any interactive elements.

The question tool is defined in OpenCode tool schema and should render an interactive UI similar to other tools (like how bash shows command output with syntax highlighting, or how file operations show structured results). However, the Web UI appears to lack the rendering logic for this specific tool.

Plugins

No response

OpenCode version

1.1.8

Steps to reproduce

  1. run > opencode web
  2. go to the site "http://127.0.0.1:4096/"
  3. send the creation proposal with questions.
  4. Trigger the AI assistant to call the question tool (for example, by asking it to create a task proposal using workflows that require user choices)
  5. The AI attempts to ask a question like:
{
  "tool": "question",
  "state": {
    "status": "running",
    "input": {
      "questions": [
        {
          "multiple": false,
          "question": "合并后的新页面应该替换哪个标签页?是完全移除「收款列表」和「银行流水明细」两个标签,还是保留其中一个标签并更新其内容?",
          "header": "标签页处理",
          "options": [
            {
              "label": "移除两个标签,创建新的「银行交易仪表板」标签",
              "description": "创建全新的标签页,移除原有的两个"
            },
            {
              "description": "使用收款列表标签,重构其内容",
              "label": "保留「收款列表」标签,更新为新界面"
            },
            {
              "label": "保留「银行流水明细」标签,更新为新界面",
              "description": "使用银行流水明细标签,重构其内容"
            },
            {
              "label": "保留两个标签,只更新其中一个",
              "description": "不删除任何标签,选择其中一个更新"
            }
          ]
        }
      ]
    }
  }
}
  1. Observe that only "question" text appears without any UI

Screenshot and/or share link

Image Image

Operating System

macOS Tahoe Version 26.2

Terminal

ITerm2

Originally created by @iyangdianfeng on GitHub (Jan 9, 2026). Originally assigned to: @adamdotdevin on GitHub. ### Description **What happened?** When the AI assistant invokes the question tool to ask for user input with options, OpenCode Web fails to render the interactive question UI. Instead of showing clickable options with descriptions, the interface only displays the plain text "question" without any interactive elements. The **question** tool is defined in OpenCode tool schema and should render an interactive UI similar to other tools (like how bash shows command output with syntax highlighting, or how file operations show structured results). However, the Web UI appears to lack the rendering logic for this specific tool. ### Plugins _No response_ ### OpenCode version 1.1.8 ### Steps to reproduce 1. run `> opencode web` 2. go to the site "http://127.0.0.1:4096/" 3. send the creation proposal with questions. 3. Trigger the AI assistant to call the question tool (for example, by asking it to create a task proposal using workflows that require user choices) 4. The AI attempts to ask a question like: ```json { "tool": "question", "state": { "status": "running", "input": { "questions": [ { "multiple": false, "question": "合并后的新页面应该替换哪个标签页?是完全移除「收款列表」和「银行流水明细」两个标签,还是保留其中一个标签并更新其内容?", "header": "标签页处理", "options": [ { "label": "移除两个标签,创建新的「银行交易仪表板」标签", "description": "创建全新的标签页,移除原有的两个" }, { "description": "使用收款列表标签,重构其内容", "label": "保留「收款列表」标签,更新为新界面" }, { "label": "保留「银行流水明细」标签,更新为新界面", "description": "使用银行流水明细标签,重构其内容" }, { "label": "保留两个标签,只更新其中一个", "description": "不删除任何标签,选择其中一个更新" } ] } ] } } } ``` 6. Observe that only "question" text appears without any UI ### Screenshot and/or share link <img width="1816" height="842" alt="Image" src="https://github.com/user-attachments/assets/6846b957-8042-49c9-bdbd-b5fd8a2fb254" /> <img width="2596" height="1230" alt="Image" src="https://github.com/user-attachments/assets/6a91f0ba-d1b1-44ff-940e-ffdc2f929bd0" /> ### Operating System macOS Tahoe Version 26.2 ### Terminal ITerm2
yindo added the bugweb labels 2026-02-16 17:44:26 -05:00
yindo closed this issue 2026-02-16 17:44:26 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 9, 2026):

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

  • #6330: Generic UI Intent Channel for cross-client plugin-driven UX - Addresses the architectural gap where interactive UI features (like the question tool) only work in TUI but fail in Desktop/Web clients
  • #7448: Plan mode: Critical Issue in TUI and Web GUI - Explicitly mentions that the web GUI doesn't display asked questions
  • #6604: MCP Tool Output - Related to tools not rendering their output properly in the web UI

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 9, 2026): This issue might be a duplicate of existing issues. Please check: - #6330: Generic UI Intent Channel for cross-client plugin-driven UX - Addresses the architectural gap where interactive UI features (like the question tool) only work in TUI but fail in Desktop/Web clients - #7448: Plan mode: Critical Issue in TUI and Web GUI - Explicitly mentions that the web GUI doesn't display asked questions - #6604: MCP Tool Output - Related to tools not rendering their output properly in the web UI Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4510