Skip to content

PartialStreamSubmissionError

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

The completedOperations field contains returned rows the SDK knows completed. acknowledgedOperationCount also records progress when an append response contains sparse or empty result rows. 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[]

number

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: unknown

dataHash: string

version: number

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

optional error?: object

code: string

message: string

optional details?: { reason: "expected_version_mismatch"; expectedVersion: number; currentVersion: number; } | { reason: "lease_held"; leaseExpiresAt: string; } | { reason: "validation_failed"; issues: object[]; } | { reason: "rate_limit_reset"; retryAfterSeconds: number; resetAt: string; } | { reason: "cursor_fence_unavailable"; cause: "below_floor" | "above_head" | "not_ready"; retryFromStart: true; }

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.

optional undeclaredFields?: string[]

optional undeclaredFieldsTruncated?: true

optional totalUndeclared?: number

optional coalescedWrefs?: object[]

optional coalescedWrefsTruncated?: true

optional totalCoalescedWrefs?: number

optional deprecations?: object[]


readonly acknowledgedOperationCount: number

Number of operations covered by append responses the SDK received before the failure. This can exceed completedOperations.length when the backend returns sparse or empty result rows.


readonly cause: unknown

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

Error.cause