From cb0c10aa9f323fc1626e6e4efed45a9ba316fd1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Flor=C3=AAncio?= Date: Fri, 14 Aug 2026 14:49:07 +0100 Subject: [PATCH] fix: reduce clarification context font size (#2659) --- .../components/github/my-github/use-saved-presets.test.ts | 5 +++-- .../web/components/task/chat/clarification-input-overlay.tsx | 2 +- apps/web/e2e/tests/chat/mobile-clarification.spec.ts | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/web/components/github/my-github/use-saved-presets.test.ts b/apps/web/components/github/my-github/use-saved-presets.test.ts index 2740153363..c5e1981acc 100644 --- a/apps/web/components/github/my-github/use-saved-presets.test.ts +++ b/apps/web/components/github/my-github/use-saved-presets.test.ts @@ -58,10 +58,11 @@ function workspaceSettings( async function expectRandomUuidPresetId() { const uuid = "123e4567-e89b-42d3-a456-426614174000"; vi.spyOn(globalThis.crypto, "randomUUID").mockReturnValue(uuid); - vi.mocked(fetchGitHubWorkspaceSettings).mockResolvedValue(workspaceSettings()); + const existing = { ...valid, id: "p_existing" }; + vi.mocked(fetchGitHubWorkspaceSettings).mockResolvedValue(workspaceSettings([existing])); vi.mocked(updateGitHubWorkspaceSettings).mockResolvedValue(workspaceSettings()); const { result } = renderHook(() => useSavedPresets(WORKSPACE_ID)); - await waitFor(() => expect(result.current.presets).toEqual([])); + await waitFor(() => expect(result.current.presets).toEqual([existing])); let created: SavedPreset | null = null; await act(async () => { diff --git a/apps/web/components/task/chat/clarification-input-overlay.tsx b/apps/web/components/task/chat/clarification-input-overlay.tsx index cd1df8c386..90815a23cf 100644 --- a/apps/web/components/task/chat/clarification-input-overlay.tsx +++ b/apps/web/components/task/chat/clarification-input-overlay.tsx @@ -597,7 +597,7 @@ export function ClarificationInputOverlay({ {sharedContext && (
{sharedContext}
diff --git a/apps/web/e2e/tests/chat/mobile-clarification.spec.ts b/apps/web/e2e/tests/chat/mobile-clarification.spec.ts index 7af632201d..45e7e3d13b 100644 --- a/apps/web/e2e/tests/chat/mobile-clarification.spec.ts +++ b/apps/web/e2e/tests/chat/mobile-clarification.spec.ts @@ -98,6 +98,7 @@ test.describe("Mobile clarification multiline answer", () => { await expect(context).toHaveText( "Picking the foundational stack: answer all three so we can move forward.", ); + await expect(context).toHaveCSS("font-size", "13px"); await expect(context).toHaveCSS("margin-top", "12px"); await expect(context).toHaveCSS("padding", "0px"); await expect(context).toHaveCSS("border-width", "0px");