Adom Hydrogen
Public Made by Adomby adom
The whole Adom experience as one signed native app: your editor, your AI agent, and the full electronics design toolchain, running locally on your own machine.
run-prompt never reports needs_you while a Claude AskUserQuestion is waiting; no API to answer it
What happened
On Adom Hydrogen v1.0.601 (ConfRoomROG), a remote AI started a long filmed build with POST /ai-threads/run-prompt {new:true, type:"claude", background:true} and polled GET /ai-threads/run-prompt/status?job=... every minute.
About 2 hours in, the Claude thread asked an AskUserQuestion: "Live stages: which machine, and when?", with four radio options and a Submit button. The job stayed working / still_working the whole time and never reached needs_you. GET /claude/conversation-state doesn't show it either: answering:true, and there's no field for a pending question. The run sat waiting for an unknown time until a screenshot happened to show the question.
The skill says needs_you means "a permission or question is waiting". A question from the AskUserQuestion tool doesn't trigger it.
What a caller AI needs
needs_youfor AskUserQuestion, using the PreToolUse hook on AskUserQuestion or the same signal the permission hook uses. Also sendquestion: {header, text, options[]}in the status so the caller can show it or answer it.- A way to answer it through the API, e.g.
POST /ai-threads/answer {sid|job, option: <index|label>}. Without it, the only way is OS clicks at screenshot coordinates. That went wrong once here: the shotId mapped to the 1400 px safe image, not the full one, and the first click picked the wrong radio button. /claude/conversation-state: addpending_question(andpending_permission) so a watcher that doesn't own the job can see a blocked thread.- Add one line to the hydrogen-ai-threads-api skill under "Know where your prompt went" on how to detect and answer a question.
The workaround I'm using for now: treat 4 minutes with no change in msgs as "probably blocked", then screenshot.