mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-26 17:12:27 +03:00
Validated on the combined batch board over release/v3.8.50 tip d91238b7: static gates clean, typecheck:core clean, focused tests green.
Defaults summary and strips malformed ids on kept Responses input items — both 400s observed against live muse-spark traffic; the flipped legacy assertion is documented contract propagation. Thank you @maxmad64bis!
8 lines
429 B
TypeScript
8 lines
429 B
TypeScript
// Shared by reasoningInputPolicy.ts and responsesInputSanitizer.ts: both strip a
|
|
// Responses-API `input[]` item's `id` field when it isn't a valid string before
|
|
// replay, so a malformed value (e.g. `null`, observed on opencode/zen) never
|
|
// survives to trip a strict upstream with "Expected 'id' to be a string." (#11108).
|
|
export function isValidResponsesItemId(id: unknown): id is string {
|
|
return typeof id === "string";
|
|
}
|