Skip to content

ProcessExitedNotification

Base classes

Name Children Inherits
CodexBaseModel
codexed.models.base
Base model for all Codex API models.

⋔ Inheritance diagram

graph TD
  4155573559["v2_protocol.ProcessExitedNotification"]
  3116041069["base.CodexBaseModel"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  3116041069 --> 4155573559
  3879467795 --> 3116041069
  2751680898 --> 3879467795

🛈 DocStrings

Bases: CodexBaseModel

Final process exit notification for process/spawn.

Source code in src/codexed/models/v2_protocol.py
class ProcessExitedNotification(CodexBaseModel):
    """Final process exit notification for `process/spawn`."""

    exit_code: int
    """
    Process exit code.
    """
    output_drain_timed_out: bool | None = None
    """
    Whether output collection hit its post-exit deadline before seeing EOF or reaching the requested byte cap on either stream. Older servers omit this field.
    """
    process_handle: str
    """
    Client-supplied, connection-scoped `processHandle` from `process/spawn`.
    """
    stderr: str
    """
    Buffered stderr capture.

    Empty when stderr was streamed via `process/outputDelta`.
    """
    stderr_cap_reached: bool
    """
    Whether stderr reached `outputBytesCap`.

    In streaming mode, stderr is empty and cap state is also reported on the final stderr `process/outputDelta` notification.
    """
    stdout: str
    """
    Buffered stdout capture.

    Empty when stdout was streamed via `process/outputDelta`.
    """
    stdout_cap_reached: bool
    """
    Whether stdout reached `outputBytesCap`.

    In streaming mode, stdout is empty and cap state is also reported on the final stdout `process/outputDelta` notification.
    """

exit_code instance-attribute

exit_code: int

Process exit code.

output_drain_timed_out class-attribute instance-attribute

output_drain_timed_out: bool | None = None

Whether output collection hit its post-exit deadline before seeing EOF or reaching the requested byte cap on either stream. Older servers omit this field.

process_handle instance-attribute

process_handle: str

Client-supplied, connection-scoped processHandle from process/spawn.

stderr instance-attribute

stderr: str

Buffered stderr capture.

Empty when stderr was streamed via process/outputDelta.

stderr_cap_reached instance-attribute

stderr_cap_reached: bool

Whether stderr reached outputBytesCap.

In streaming mode, stderr is empty and cap state is also reported on the final stderr process/outputDelta notification.

stdout instance-attribute

stdout: str

Buffered stdout capture.

Empty when stdout was streamed via process/outputDelta.

stdout_cap_reached instance-attribute

stdout_cap_reached: bool

Whether stdout reached outputBytesCap.

In streaming mode, stdout is empty and cap state is also reported on the final stdout process/outputDelta notification.

:fa-brands-github: Show source on GitHub