fix(pty): own daemon lifetime and hand off restarts (#45551)

This commit is contained in:
James Long
2026-08-27 11:52:48 -04:00
committed by GitHub
Unverified
parent 6dbb5f5008
commit 2b8a3e7ee0
24 changed files with 1107 additions and 645 deletions
@@ -40,6 +40,12 @@ export const PersistentPtyGroup = HttpApiGroup.make("server.experimental")
error: [ServiceUnavailableError],
}),
)
.add(
HttpApiEndpoint.post("persistentPty.handoff", "/api/experimental/persistent-pty/handoff", {
success: Schema.Struct({ handoff: Schema.NullOr(PersistentPty.Handoff) }),
error: [ServiceUnavailableError],
}),
)
.add(
HttpApiEndpoint.get("persistentPty.get", "/api/experimental/persistent-pty/:ptyID", {
params: { ptyID: Pty.ID },