Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

OpenCode hangs when Claude emits AskUserQuestion

オープン
#125 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
領域
ai, backend

調査の方向性

Start with research/agents/claude.md and server/packages/sandbox-agent/src/opencode_compat.rs, then trace how AskUserQuestion is handled in Claude Code headless mode. Confirm whether the question becomes an event and how responses return to the session; done means the question is displayed, the user can respond, and the session no longer hangs.

索引モデルが issue の本文から書いたものです。

説明

Problem

When Claude Code emits an AskUserQuestion tool call, OpenCode (via Gigacode/sandbox-agent) hangs instead of surfacing the question to the user.

Expected behavior

The question should be converted to a question event and displayed to the user, allowing them to respond.

Current behavior

The session hangs indefinitely waiting for a response that never comes.

Context

From research notes (research/agents/claude.md):

The headless CLI tool list does not include the AskUserQuestion tool, even though the Agent SDK documents it. As a result, prompting the CLI to "call AskUserQuestion" does not emit question events; it proceeds with normal tool/message flow instead.

This may be related to how Claude Code's headless mode handles questions differently than the interactive TUI.

Steps to reproduce

  1. Start a session with Claude Code via Gigacode/OpenCode
  2. Give a prompt that causes Claude to ask a clarifying question
  3. Observe the session hangs

Related

  • Claude agent research: research/agents/claude.md
  • Question handling: server/packages/sandbox-agent/src/opencode_compat.rs
主要言語
TypeScript
スター
1.6k
フォーク
131
平均マージ
7時間 40分
マージ済み PR(30日)
29

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

rivet-dev/agents のほかの issue

rivet-dev/agents の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。