app
Grok Bot
Public Made by Adomby adom
Grok Bridge lets Adom talk to Grok Bot. Adom's AI environment is for electrical engineers: any provider, any desktop power tool, one place.
Send to AI: use Hydrogen's AI picker (no type) and the run-prompt job status for toasts
Ask
When this dashboard's "Send to AI" opens a new thread, stop naming the AI and let Hydrogen's AI picker ask the user; then use the run-prompt job to show real status.
What Hydrogen does now (1.0.213 to 1.0.218, insiders)
POST /ai-threads/run-prompt {new:true, prompt, submit, name, tags:["app:adom/<this repo>"]}with NOtypeputs up the AI picker in the shell: Claude Code and Codex with their logos, keys 1/2, Enter, Esc, a 5 s countdown to the user's default, and a "remember for this app" checkbox keyed on theapp:tag. Passtypeonly when the caller (an AI thread, a script) genuinely wants a specific AI.- The answer carries
jobandstate. PollGET /ai-threads/run-prompt/status?job=<job>about once a second untilterminal:true; every answer hashuman, a ready toast line for the phase (waiting for the AI picker, Codex picked, Claude Code is working, Claude Code needs you, delivered to Codex). - Add
background:trueto get{job, state:"accepted"}back at once and run the rest detached, so the picker's 5 to 45 s never sits inside your request timeout. cancelled:true(statecancelled) means the user pressed Escape: do not retry, do not fall back to naming an AI.- Hydrogen toasts the pick outcome in the shell itself ("Sending to Codex"), so you do not need to duplicate that one.
The kicad-bridge dashboard did this in 1.0.125 (kicad-bridge issue #77 has the shape): the dashboard's own send drops type, the shared newbie-panel module's request is proxied with type stripped and the app: tag added, and the reply is forwarded verbatim. The full contract is the hydrogen-ai-threads-api skill, sections "The AI picker" and "Know where your prompt went" (hydrogen-bootstrap 0.5.25).