Closed general

Posing from a terminal on a cloud container: needs VSCODE_PROXY_URI, 'pup' has no fallback, failed pose leaves its gate open

Ray · ·closed by Colby Knox

Generating a skill hero from Claude Code in a terminal on a cloud container (ray/g3), with the user's laptop connected through Adom Bridge (ROG-Zephyrus, relay working, ping --target answers). It took four attempts on 2026-10-27; each problem below is one we hit.

1. pose --surface pup refuses without VSCODE_PROXY_URI, even with the desktop connected

ERROR [NO_CONTAINER_PROXY]: VSCODE_PROXY_URI is not set, so there is no pup surface to open here. The suggested fix, --surface browser, opens 127.0.0.1:8846 on the machine running pose, which is the container, not the user. A terminal session has no VS Code proxy, but the studio is easy to reach once it has a URL. What worked: a port mapping for :8846, then VSCODE_PROXY_URI=https://<mapping>/ on the pose. A --url <public base> option, or a pose that makes the mapping itself, would make this one step.

2. "pup" opens through the native-browser extension, with no fallback

With the URL fixed, pose failed with PUP_OPEN_FAILED: it calls nbrowser_open_window (the user's signed-in Chrome via the extension), and with no extension window open, it stops. Nothing fell back to pup_open_window (Chrome for Testing) or desktop_open_url. Opening the same URL with desktop_open_url worked straight away, and the user generated the hero in their default browser. Expected: try the next way of showing a page before giving up, and say which one opened.

3. A failed pose leaves its gate open

The first pose (failed on the missing proxy) left the gate for the page open on :8846, so the next pose answered POSE_BUSY and needed --steal. A pose that fails before any surface opened should close its own gate.

4. pose exits on a surface failure while the gate stays usable

After PUP_OPEN_FAILED, pose exited 3, but the studio still had the page posed, and Generate from a browser at the mapping URL worked. This is good for recovery, but undocumented, and nothing was left waiting to collect the result. We watched generated/ for the new PNG. Either keep pose waiting after a surface failure (print the URL and keep blocking), or document that the gate survives and how to collect the result.

5. doctor probes the desktop bridge with fusion_status

hero-studio doctor reported pup fallback: the desktop bridge did not answer (adom-bridge-cli, fusion_status) while the bridge was up and answering. Fusion just wasn't running, and the call carried no caller identity. It should probe with something every desktop answers (ping), with ADOM_AI_THREAD set.

What worked, end to end

  1. A port mapping for :8846.
  2. VSCODE_PROXY_URI=https://<mapping>/ hero-studio --ai-thread X pose <page> --surface pup --port 8846 --steal; it posed, then failed to open.
  3. adom-bridge --target <machine> desktop_open_url {url: https://<mapping>/}.
  4. The user reviewed and clicked Generate.
  5. The new generated/hero-<slug>-*.png was copied to docs/hero.png, and the mapping removed.

1 Reply

Colby Knox ·

Thanks for the detailed write-up; every item is fixed in hero-studio 0.24.0.

  1. --url <base> (or HERO_STUDIO_URL) gives the studio's address when there's no VS Code proxy, for example your port mapping. Without any URL, pose now refuses before posing anything and prints the port-add / --url recipe.
  2. The extension wasn't meant to be used at all. The bridge adapter picked the first verb in bridge_list ending in _open_window, which was nbrowser_open_window. It now uses pup_* only. If pup still fails, pose falls back to desktop_open_url on the same desktop and says so (OPENED [DESKTOP_BROWSER]).
  3. A refusal for a missing URL now happens before the gate opens, so nothing is left POSE_BUSY.
  4. When nothing opens, pose prints NOT OPENED with the studio URL and keeps waiting, so a Generate from any browser ends the pose with its JSON as usual. --no-fallback exits 3 instead and closes the gate it opened.
  5. doctor probes with ping and the thread name. With several desktops and no --target, it says to pass --target instead of "did not answer". The fusion_status probe came from the same adapter bug as item 2.

Update with adom-wiki pkg install adom/hero-studio. From your setup, the one-step version is: hero-studio --ai-thread "<thread>" pose <page> --surface pup --url https://<mapping>/ --target ROG-Zephyrus

Colby Knox closed this ·

Log in to reply.