Skip to content

Conversation

@R44VC0RP
Copy link
Contributor

@R44VC0RP R44VC0RP commented Jan 11, 2026

Summary

Adds support for the question tool in the web UI, fixing #7599.

Changes:

  • Enable QuestionTool in web client (removed CLI-only restriction)
  • Add question state management to global-sync context
  • Create QuestionPrompt component with tabbed multi-question support
  • Position question prompt above input in dock area (popunder style)
  • Add question rendering to share/web view
  • Wire up question respond/reject handlers in DataProvider

Status

WIP - Core functionality is working but design refinements are still in progress:

  • Fine-tune spacing and visual polish
  • Ensure seamless connection between question prompt and input box

Testing

  1. Start dev servers:
    • API: cd packages/opencode && bun dev -- serve --port 5555
    • Vite: cd packages/app && bun dev
  2. Open http://localhost:3000
  3. Trigger a question tool (e.g., ask the AI to ask you questions)

Fixes #7599

- Enable QuestionTool in web client (remove CLI-only restriction)
- Add question state management to global-sync context
- Create QuestionPrompt component with tabbed multi-question support
- Position question prompt above input in dock area (popunder style)
- Add question rendering to share/web view
- Wire up question respond/reject handlers in DataProvider

WIP: Design refinements still in progress
@github-actions
Copy link
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

Based on my search, I found one potentially related PR:

Related PR:

The current PR (#7732) appears to be focused on exposing/integrating question tool support in the web UI layer, while #6681 addresses the tool itself. They may be complementary rather than duplicates, but reviewing #6681 would ensure consistency in how questions are handled.

@adamdotdevin
Copy link
Contributor

@R44VC0RP ohhhh, screenshots?

@R44VC0RP
Copy link
Contributor Author

Ah @adamdotdevin sorry linked in issue:

#7599 (comment)

image

@mortimr
Copy link

mortimr commented Jan 11, 2026

Nice 👀 ! Maybe we should find a way to join forces #7653

@offlinehacker
Copy link

offlinehacker commented Jan 11, 2026

I have implemented it #7751 as part of message-part.ts, so it's actually part of conversation and looks the same as permission prompt or other prompts. I was not aware that you were working on it as well.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Question tool content missing in Web UI (opencode serve)

4 participants