From ee80381876ff2cd0994ddd54089fd26c78b1e586 Mon Sep 17 00:00:00 2001 From: Amp Date: Tue, 11 Aug 2026 04:40:23 +0000 Subject: [PATCH] test(gateway): isolate cache proof from runtime startup Amp-Thread-ID: https://ampcode.com/threads/T-019fee8d-665d-707b-a380-23f2a6a1ce03 Co-authored-by: Peter Steinberger --- src/gateway/session-utils.perf.test.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/gateway/session-utils.perf.test.ts b/src/gateway/session-utils.perf.test.ts index 418cc5a0a641..f5450e57f423 100644 --- a/src/gateway/session-utils.perf.test.ts +++ b/src/gateway/session-utils.perf.test.ts @@ -66,6 +66,16 @@ describe("listSessionsFromStore resolver cache", () => { model: tuple.model, inputTokens: 100, outputTokens: 50, + // Keep runtime selection outside this cache proof. ACP metadata gives + // the row a concrete runtime without cold-loading provider plugins. + acp: { + backend: "acpx", + agent: "codex", + runtimeSessionName: `cache-proof-${i}`, + mode: "oneshot", + state: "idle", + lastActivityAt: now, + }, } as SessionEntry; }