Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

OpenCode hangs when Claude emits AskUserQuestion

未关闭
#125 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
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
派生
134
平均合并
11 小时 29 分钟
30 天内合并 PR
36

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

rivet-dev/agents 的其他 Issue

查看 rivet-dev/agents 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。