From 476e3fc3820ae48f3de948c8ee78d6f3cc4ec0eb Mon Sep 17 00:00:00 2001 From: "opencode-agent[bot]" Date: Sun, 5 Jul 2026 00:51:28 +0000 Subject: [PATCH] chore: generate --- .../session-parent-hydration-benchmark.spec.ts | 7 ++++++- .../unit/session-tab-switch-probe.test.ts | 14 ++++++++++++-- packages/app/src/context/server-session.test.ts | 4 +--- 3 files changed, 19 insertions(+), 6 deletions(-) diff --git a/packages/app/e2e/performance/timeline/session-parent-hydration-benchmark.spec.ts b/packages/app/e2e/performance/timeline/session-parent-hydration-benchmark.spec.ts index 77c8491efd..2a214831da 100644 --- a/packages/app/e2e/performance/timeline/session-parent-hydration-benchmark.spec.ts +++ b/packages/app/e2e/performance/timeline/session-parent-hydration-benchmark.spec.ts @@ -48,7 +48,12 @@ benchmark("hydrates an orphaned latest turn after a cold session click", async ( const results = [] as Awaited>[] for (let run = 0; run < 5; run++) { results.push( - await withBenchmarkPage(browser, `session-parent-hydration-${mode}-${run}`, (page) => trial(page, mode), testInfo), + await withBenchmarkPage( + browser, + `session-parent-hydration-${mode}-${run}`, + (page) => trial(page, mode), + testInfo, + ), ) } const timing = results.map((result) => result.metrics.firstCorrectObservedMs!).sort((a, b) => a - b) diff --git a/packages/app/e2e/performance/unit/session-tab-switch-probe.test.ts b/packages/app/e2e/performance/unit/session-tab-switch-probe.test.ts index 3b71dc5c46..d5d7f09a69 100644 --- a/packages/app/e2e/performance/unit/session-tab-switch-probe.test.ts +++ b/packages/app/e2e/performance/unit/session-tab-switch-probe.test.ts @@ -30,7 +30,12 @@ test("stops sampling when the session switch fails", async () => { const failure = new Error("switch failed") const context = testPage() - await expect(measureSessionSwitch(context.page, input(async () => Promise.reject(failure)))).rejects.toBe(failure) + await expect( + measureSessionSwitch( + context.page, + input(async () => Promise.reject(failure)), + ), + ).rejects.toBe(failure) expect(context.stops).toHaveLength(1) }) @@ -39,7 +44,12 @@ test("stops sampling when the stable wait fails", async () => { const failure = new Error("stable wait failed") const context = testPage(failure) - await expect(measureSessionSwitch(context.page, input(async () => {}))).rejects.toBe(failure) + await expect( + measureSessionSwitch( + context.page, + input(async () => {}), + ), + ).rejects.toBe(failure) expect(context.stops).toHaveLength(1) }) diff --git a/packages/app/src/context/server-session.test.ts b/packages/app/src/context/server-session.test.ts index 77871d3473..46a0dc8266 100644 --- a/packages/app/src/context/server-session.test.ts +++ b/packages/app/src/context/server-session.test.ts @@ -194,9 +194,7 @@ describe("server session", () => { await store.sync("child") - expect(client.requests).toEqual([ - { sessionID: "child", limit: 2, before: undefined }, - ]) + expect(client.requests).toEqual([{ sessionID: "child", limit: 2, before: undefined }]) expect(client.rootRequests).toEqual([{ sessionID: "child", messageID: user.id }]) expect(store.data.message.child).toEqual([user, ...assistants]) expect(store.history.more("child")).toBe(true)