mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-20 18:57:17 +03:00
fix(pty): own daemon lifetime and hand off restarts (#45551)
This commit is contained in:
committed by
GitHub
Unverified
parent
6dbb5f5008
commit
2b8a3e7ee0
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user