Skip to content

PartialStreamSubmissionError

Error raised when a streamed commit submission fails after an ambiguous or partial append.

The completedOperations field contains operations the SDK knows completed. Before retrying manually, inspect repository state because the failed append may have committed additional operations that were not reflected locally.

https://docs.warmhub.ai/sdk/transient-retry/#partial-submissions

  • Error

new PartialStreamSubmissionError(input): PartialStreamSubmissionError

unknown

object[]

PartialStreamSubmissionError

Error.constructor

readonly code: "PARTIAL_STREAM_SUBMISSION" = 'PARTIAL_STREAM_SUBMISSION'

Stable error code. Always 'PARTIAL_STREAM_SUBMISSION'.


readonly completedOperations: object[]

Operations the SDK confirmed completed before the ambiguous or failing append. The remaining operations may or may not have landed; inspect repository state before retrying manually.

optional opIndex?: number

name: string

operation: "add" | "revise" | "retract" | "noop"

dataHash: string

version: number

optional status?: "noop" | "applied" | "error"

optional error?: object

code: string

message: string

optional details?: { reason: "expected_version_mismatch"; expectedVersion: number; currentVersion: number; } | { reason: "lease_held"; leaseExpiresAt: string; }

optional submittedName?: string

optional resolvedName?: string

optional retryable?: boolean

optional warnings?: object

Non-blocking warnings collected during shape validation — see GH-1418. Aliased to the generated wire shape so this type cannot drift from the backend’s streamMutationResultEntrySchema.warnings.

undeclaredFields: string[]

optional undeclaredFieldsTruncated?: true

optional totalUndeclared?: number


readonly cause: unknown

Underlying error that triggered the partial submission, preserved for diagnostics. Inspect via isWarmHubError(err.cause) / err.cause.kind.

Error.cause