From 5abbe2a4052643675cc219de21d92ce51f5092fd Mon Sep 17 00:00:00 2001 From: James Babcock Date: Wed, 19 Aug 2026 12:40:57 -0700 Subject: [PATCH] Fix an EvenHub compatibility issue when a text container is updated with only an ID and not a container name --- app/apps/evenhub/session.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/apps/evenhub/session.ts b/app/apps/evenhub/session.ts index 43d3bf74..c8b7b3fb 100644 --- a/app/apps/evenhub/session.ts +++ b/app/apps/evenhub/session.ts @@ -703,8 +703,13 @@ export class EvenHubSession implements EvenHubMicClient, EvenHubImuClient { private textUpgrade(data: Record): boolean { const id = readNumber(data, "containerID", -1); + // containerID is the identity; containerName is optional in the wild (e.g. + // level-even-g2 omits it). Match by id, enforcing the name only when the app + // actually supplies a non-empty one. (updateImage already matches by id.) const name = readString(data, "containerName", ""); - const container = this.page?.containers.find((c) => c.kind === "text" && c.id === id && c.name === name); + const container = this.page?.containers.find( + (c) => c.kind === "text" && c.id === id && (name === "" || c.name === name), + ); if (!container || container.kind !== "text") return false; const content = readString(data, "content", ""); const offset = readOptionalNumber(data, "contentOffset");