From a1e42354757fa7148f2c93e3d487e4e598bc8592 Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 14 Sep 2026 07:22:32 -0700 Subject: [PATCH] test(omp): retain sparse-array regression without array constructor Credential-reference policy follows stablyai/orca#9554 by @red-projects. Co-authored-by: Konstantin Klinchuk --- src/main/pi/agent-status-input-redaction.test.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main/pi/agent-status-input-redaction.test.ts b/src/main/pi/agent-status-input-redaction.test.ts index a4a37d90efe..8e28d6588ed 100644 --- a/src/main/pi/agent-status-input-redaction.test.ts +++ b/src/main/pi/agent-status-input-redaction.test.ts @@ -65,8 +65,14 @@ describe('generated status input redaction', () => { }) it('bounds sparse array serialization and cumulative reserved slots', async () => { - expect(await postedInput({ values: new Array(5000) })).toEqual({ redacted: true }) - const values = Array.from({ length: 8 }, () => new Array(1000)) + const sparse: unknown[] = [] + sparse.length = 5000 + expect(await postedInput({ values: sparse })).toEqual({ redacted: true }) + const values = Array.from({ length: 8 }, () => { + const slots: unknown[] = [] + slots.length = 1000 + return slots + }) expect(await postedInput({ values })).toEqual({ redacted: true }) })