Skip to content

Commit 699ab74

Browse files
cameroncookecodex
andcommitted
fix(ui-automation): Normalize runtime labels deterministically
Use locale-insensitive lowercase normalization for runtime snapshot label filtering in both structured output and text rendering. This keeps internal target filtering deterministic across host locales. Co-Authored-By: Codex <codex@openai.com>
1 parent bf7753e commit 699ab74

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/utils/renderers/domain-result-text.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1196,7 +1196,7 @@ function compactRuntimeSnapshotText(value: string | undefined): string {
11961196
}
11971197

11981198
function normalizedRuntimeSnapshotText(value: string | undefined): string {
1199-
return compactRuntimeSnapshotText(value).toLocaleLowerCase();
1199+
return compactRuntimeSnapshotText(value).toLowerCase();
12001200
}
12011201

12021202
function isHiddenRuntimeTarget(element: RuntimeElementV1): boolean {

src/utils/structured-output-envelope.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function compactRuntimeSnapshotText(value: string | undefined): string {
106106
}
107107

108108
function normalizedRuntimeSnapshotText(value: string | undefined): string {
109-
return compactRuntimeSnapshotText(value).toLocaleLowerCase();
109+
return compactRuntimeSnapshotText(value).toLowerCase();
110110
}
111111

112112
function isHiddenRuntimeTarget(element: RuntimeElementV1): boolean {

0 commit comments

Comments
 (0)