Closed bug report

A pose of a different page under another --ai-thread takes over the live gate on 8846 instead of starting a fresh instance

Drew Owens · ·closed by Colby Knox

hero-studio 0.25.1 · adom-wiki 1.8.25 · Node v18.19.1 · Hydrogen local workspace (WSL2), webview surface

A pose of a different page under a different --ai-thread took over the live gate on 8846 instead of starting a fresh instance.

What I did

  1. hero-studio --ai-thread "isaac bridge build" pose adom/isaac-bridge --surface webview --title "Isaac Lab Bridge" --type app --timeout 86400 (no --port). Gate open on :8846, tab "Hero Studio", waiting for Generate.
  2. While that gate was open, from another directory: hero-studio --ai-thread "robot-sim-skillpack release" pose adom/robot-sim-skillpack --surface webview --title "..." --type skill --timeout 86400 (no --port).

What I expected

SKILL.md, CONCURRENT STUDIOS: "when the default port is mid-gate for a DIFFERENT page, pose automatically starts a fresh instance on a free port and says so".

What happened

  • The second pose printed studio open (webview, :8846, tab "Hero Studio"), posed for adom/robot-sim-skillpack.
  • hero-studio instances then showed {"port": 8846, "page": "adom/robot-sim-skillpack", "gateOpen": true}, while hero-studio ls still listed 8846 as thread "isaac bridge build", task adom/isaac-bridge.
  • The first pose's process was still blocked waiting on that gate, so a human Generate there would have produced the other page's hero for both waiters.
  • After I stopped both and re-posed adom/isaac-bridge, its staged showcase was gone ("re-posing ... staged showcase content preserved" no longer appeared; it staged a different local candidate). The second pose had overwritten it.

Workaround

Pass --port explicitly for the second page under its own thread (--port 8847 gave a separate instance and tab "Hero Studio :8847"), and re-stage the first page's showcase with hero-studio showcase --port 8846 --file ....

Suggested fix

Make the mid-gate check in pose compare the live instance's page (from its /state, not only the thread registry) before reusing the default port, and refuse rather than re-pose a gate another thread has open. Note #75 saw a related tab mix-up with a second instance.

1 Reply

Colby Knox marked this in progress ·
Colby Knox ·

Fixed in hero-studio 0.25.2 (now latest; adom-wiki pkg install adom/hero-studio to update).

The cause was that the "approved" record of the last Generate is kept for the whole session. A page that had been generated once and then posed again looked like a closed gate, so a second thread's pose reused :8846 instead of starting a fresh instance.

A gate now counts as open when it was posed after that page's last approval. pose uses this for both checks (same page: POSE_BUSY; different page: a fresh instance on a free port), and hero-studio instances reports gateOpen the same way. Your --port workaround is no longer needed.

Colby Knox closed this ·

Log in to reply.