From 2e8ed86658b31cdf1354c32fe9fd92d171dfe048 Mon Sep 17 00:00:00 2001 From: "opencode-agent[bot]" <219766164+opencode-agent[bot]@users.noreply.github.com> Date: Thu, 10 Sep 2026 18:27:08 +0800 Subject: [PATCH] fix(app): move compaction status below summary (#48262) Co-authored-by: Hona <10430890+Hona@users.noreply.github.com> --- .../session-timeline-notices.spec.ts | 10 ++++++++- .../src/message/message-content.tsx | 22 +++++++++---------- 2 files changed, 20 insertions(+), 12 deletions(-) diff --git a/packages/app/e2e/regression/session-timeline-notices.spec.ts b/packages/app/e2e/regression/session-timeline-notices.spec.ts index 0c89d3fe633..2224fab91bb 100644 --- a/packages/app/e2e/regression/session-timeline-notices.spec.ts +++ b/packages/app/e2e/regression/session-timeline-notices.spec.ts @@ -122,7 +122,15 @@ test("renders compaction progress, summary, and outcome in order", async ({ page ) await expect(compaction.getByRole("heading", { name: "Checkpoint" })).toBeVisible() await expect(compaction).toContainText("Streamed implementation details.") - await expect(compaction.getByRole("status").getByLabel("Compacting", { exact: true })).toBeVisible() + const running = compaction.getByRole("status").getByLabel("Compacting", { exact: true }) + await expect(running).toBeVisible() + await expect + .poll(async () => { + const summary = await compaction.locator('[data-component="text-part"]').boundingBox() + const status = await running.boundingBox() + return !!summary && !!status && status.y >= summary.y + summary.height + }) + .toBe(true) await expect(compaction.getByText("Session compacted", { exact: true })).toHaveCount(0) await timeline.send( diff --git a/packages/session-ui/src/message/message-content.tsx b/packages/session-ui/src/message/message-content.tsx index c4853a31b7d..ab25a866804 100644 --- a/packages/session-ui/src/message/message-content.tsx +++ b/packages/session-ui/src/message/message-content.tsx @@ -427,17 +427,6 @@ export function SessionCompactionMessage(props: { message: SessionMessageCompact