pup surface: player window never opens (open reported as succeeded, or fails silently when adom-bridge is not on PATH) in 1.9.57
Version: adom-tts 1.9.57 (adom-tts --version), checked 2026-11-11. Adom Bridge 2.1.185 on Windows, with three Bridge machines on the relay.
Summary: with surface = pup, the pup player window is never actually opened. In one case adom-tts reports the open as a success. In the other, the open fails but the CLI prints success. Either way the clip sits in "AUDIENCE OFFLINE" and buffers. Related to #2, but this happens with the target already pinned.
Setup (identical on all three workspaces)
adom-tts settings set surface pup
adom-tts settings set pup_session adom-tts-<workspace> # a separate session per workspace
# ~/.adom/tts/env.json also carries "ADOM_BRIDGE_TARGET": "<the laptop's Bridge name>"
The player log confirms the pin was picked up: env_adopted vars=["ADOM_BRIDGE_TARGET"].
Case A: the open is reported as succeeded, but no window appears
This happened on a cloud container and on a local WSL workspace.
Steps: run adom-tts say "test" --out /tmp/t.mp3 --thread t --desc t --play from a normal shell.
Player log:
drain_start surface="pup"
audience_wait poll_age_ms=9223372036854775807
surface_open_skipped opened_ms_ago=1 reason="a surface open succeeded moments ago; one open per 10s (issue #7)" surface="pup"
surface_reoffer attempt=2 reason="page has not polled for 15s" surface="pup"
...
surface_reoffer attempt=11 reason="page has not polled for 168s" surface="pup"
What happened:
pup_list_windowson the Bridge machine shows no window with thatsessionId.- The re-offers never produce a window.
sayreportsAUDIENCE OFFLINE ... BUFFERED, and the clip waits out the 10-minute buffer.
Case B: the player is spawned from a non-login ssh shell and adom-bridge is not on PATH
This happened on a second cloud container.
Steps:
- Over
ssh <container> 'adom-tts restart', the shell's PATH lacks~/.local/bin, whereadom-bridgelives. - The restart prints:
restarted: ... spawned a fresh pup player. pinned to Bridge target: <name>
Player log:
open_surface_failed error="invoke adom-bridge pup_open_window" surface="pup"
What happened:
- No warning reaches the caller.
- The player stays up with no page until something else opens one.
- Running
export PATH=$HOME/.local/bin:$PATHbeforeadom-tts restartavoids this case.
Workaround that works
Open the player page yourself, in the background. Use the player port from
~/.adom/tts/player.json; the URL is the container's proxy URL for that port, orhttp://127.0.0.1:<port>/for a WSL workspace.adom-bridge --target <laptop> --ai-thread "adom-tts player" pup_open_window \ '{"sessionId":"adom-tts-<workspace>","url":"<player page>","profile":"adom-tts","background":true}'The page lands as "Adom TTS" (not a sign-in page) and starts polling within a few seconds.
Unlock autoplay. A fresh pup page then holds the first clip because of Chrome's autoplay policy:
pause_hold at_s=0.0.- The built-in force-play
pup_eval(el.play()without a gesture) does not release it. - A DevTools evaluate that carries a user gesture does, and it lasts for the page's lifetime:
adom-bridge --target <laptop> --ai-thread "adom-tts player" pup_devtools \ '{"sessionId":"adom-tts-<workspace>","method":"Runtime.evaluate","params":{"expression":"document.querySelector(\"audio\").play()","userGesture":true,"awaitPromise":true}}'- The built-in force-play
After these two steps, clips play normally on all three workspaces: say --play --confirm returns CONFIRMED in a few seconds.
Suggested fixes
- Only report a surface as opened when it exists. Count the open as a success only once
pup_open_windowreturns a window, and checkpup_list_windowsfor the session. Otherwise log the CLI's real stdout and stderr inopen_surface_failed. - Find adom-bridge without relying on PATH. Resolve it by absolute path (for example
~/.local/bin/adom-bridge) or fall back to that path. When the open fails, makerestartandsaysay so instead of printing success. - Unlock autoplay after a pup open. Send the
userGesture: trueevaluate right after opening, so the first clip does not stall atpause_hold.
1 Reply
Log in to reply.