Skip to content

Exited follow-ups: a disposal-ended flag, and the exit of a shared server #238

Open

Description

@Blind-Striker

What

Two additive follow-ups to OpenCodeServer.Exited (#174), recorded so they are not lost. Upstream
offers neither, so they wait for a consumer who asks:

  1. Telling "disposal ended the server" apart from a natural exit with the same status: code 1 on
    Windows after the tree kill, or SIGTERM (or 130) on Linux and macOS. One possible shape is an
    EndedByDisposal flag on OpenCodeServerExit.
  2. Observing the exit of a shared server that a handle from DiscoverAsync or EnsureAsync does
    not own, for example by polling its pid. Today Exited throws on such a handle, as upstream's
    attach endpoint carries no exit either.
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

    enhancement

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions