fix(runtime): stop GitHub bridges after failed startup probes

A failed file-bridge verification left its queue worker polling until the
native session retired. Stop and clear an unverified bridge before
returning anonymous launchers, both for direct file startup and HTTP/2
fallback. Retain the handle if stopping throws so outer teardown can
retry cleanup.

Both new regression cases fail before the fix. They verify the gateway
listener closes and remote polling stops before startup returns. The
GitHub contract suites pass 88 tests, and the final native broker suite
passes 23 tests. Server typechecking also passes.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Devin FoleyandPaperclip committed 2026-11-13 17:50:45 -08:00
1 parent bac360ae33
commit 5d0ebe543c
3 files changed
+37 -6

No files matched your search

+1
View File
@@ -199,6 +199,7 @@ environment before publishing the launcher environment. The probe authenticates
to the inactive broker and acquires no GitHub credential. If the HTTP/2 bridge
fails this startup check, the controller closes it and tries the existing file
bridge once. Both transports use the same live identity and credential resolver.
An unverified final bridge is stopped before anonymous launchers are returned.
This startup fallback cannot replay an agent command. A later HTTP/2 loss
still makes the warm session unavailable for reuse.