Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

OpenCode hangs when Claude emits AskUserQuestion

Aperta
#125 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Ambito
ai, backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
TypeScript
Stelle
1.6k
Fork
134
Merge medio
7h 40m
PR unite (30g)
29

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di rivet-dev/agents

Tutte le issue di rivet-dev/agents

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.