From f94729f5f797050a1446cc3024dcc2105e2f5f9f Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 30 Sep 2026 15:50:58 +0200 Subject: [PATCH] Relay's error description is set only when one survives Typecheck under exactOptionalPropertyTypes refused the relay commit: a provider error that filters down to nothing left errorDescription explicitly undefined in the page and handoff payloads. The field is now added only when a relayed value remains. Co-Authored-By: Claude Opus 5.5 --- src/app.ts | 6 ++++-- tests/app.test.ts | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/app.ts b/src/app.ts index 299364a..09d8266 100644 --- a/src/app.ts +++ b/src/app.ts @@ -972,6 +972,8 @@ export async function buildApp(options: BuildAppOptions = {}): Promise { expect(providerError).toBe("e".repeat(64)); expect(providerErrorDescription).toHaveLength(256); expect(providerErrorDescription).toMatch(allowed); - expect(providerErrorDescription.startsWith("xxx")).toBe(true); + expect(String(providerErrorDescription).startsWith("xxx")).toBe(true); }); it("cannot inject markup into the browser page, and is bounded there", async () => {