Skip to content

Workshop retries forever when a gateway from a previous session is still running #54

Description

@cprevatte

Summary

If a gateway process from an earlier session is still running, launching the Workshop fails in a retry loop. The error does not mention the running gateway, so the cause is not discoverable from the message.

Steps to reproduce

  1. Build at master and run .\target\debug\promptforge-workshop.exe (Windows 11).
  2. Close the Workshop window. The gateway keeps running, which I understand is intended.
  3. Later, run .\target\debug\promptforge-workshop.exe again.

What happens

The Workshop prints this repeatedly and never opens:

could not recover the local gateway: the launched gateway wrote no validated gateway discovery file within 30s

Get-Process promptforge-gateway showed a gateway from the earlier session still running (about 23 minutes of CPU time).

Workaround

Stop-Process -Name promptforge-gateway -Force

After that the Workshop launched normally.

Expected

Either the Workshop attaches to the gateway already running, or the error names the real cause, for example that a gateway is already running and holding the port.

Notes

I launched the executable directly from target\debug rather than through the installer or the tray, so this may not be a supported path. Flagging in case the attach behaviour is meant to work either way.

Windows 11, Intel Core Ultra 7, Intel Arc 140V, built from master 16 September 2026.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions