fix(session): loosen remaining stored numeric schemas to tolerate legacy data (#26622)

This commit is contained in:
Kit Langton
2026-05-09 22:10:48 -04:00
committed by GitHub
parent 1141b9bfb3
commit e143fa9126
5 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -305,7 +305,7 @@ export namespace Tool {
export const RetryError = Schema.Struct({
message: Schema.String,
statusCode: NonNegativeInt.pipe(Schema.optional),
statusCode: Schema.Finite.pipe(Schema.optional),
isRetryable: Schema.Boolean,
responseHeaders: Schema.Record(Schema.String, Schema.String).pipe(Schema.optional),
responseBody: Schema.String.pipe(Schema.optional),
@@ -320,7 +320,7 @@ export const Retried = EventV2.define({
aggregate: "sessionID",
schema: {
...Base,
attempt: NonNegativeInt,
attempt: Schema.Finite,
error: RetryError,
},
})