From 01a1054fbad66834f679dae2ab84844523692445 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Mon, 13 Jul 2026 21:52:36 +0000 Subject: [PATCH] Preserve null semantics for invalid team ids Co-Authored-By: aman --- .../lib/hexclave-app/apps/implementations/server-app-impl.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/template/src/lib/hexclave-app/apps/implementations/server-app-impl.ts b/packages/template/src/lib/hexclave-app/apps/implementations/server-app-impl.ts index 7b6c64fef..dba0dba85 100644 --- a/packages/template/src/lib/hexclave-app/apps/implementations/server-app-impl.ts +++ b/packages/template/src/lib/hexclave-app/apps/implementations/server-app-impl.ts @@ -19,6 +19,7 @@ import { ProviderType } from "@hexclave/shared/dist/utils/oauth"; import { runAsynchronously } from "@hexclave/shared/dist/utils/promises"; import { suspend } from "@hexclave/shared/dist/utils/react"; import { Result } from "@hexclave/shared/dist/utils/results"; +import { isUuid } from "@hexclave/shared/dist/utils/uuids"; import { WebAuthnError, startRegistration } from "@simplewebauthn/browser"; import { useMemo } from "react"; // THIS_LINE_PLATFORM react-like import * as yup from "yup"; @@ -87,6 +88,10 @@ export class _HexclaveServerAppImplIncomplete(async ([teamId]) => { + // The previous list-and-find implementation treated unknown or malformed IDs as null; preserve that behavior without making an invalid request. + if (!isUuid(teamId)) { + return null; + } try { return await this._interface.getServerTeam(teamId); } catch (error) {