From 21b187f2d51cf010964714a88e77a5b6e81a7fca Mon Sep 17 00:00:00 2001 From: l0ng-ai Date: Fri, 20 Nov 2026 02:47:51 +0800 Subject: [PATCH] test: fix main's spacing-scale and model-refresh failures (#4591) pnpm test failed on main twice: the HTTP Client's redirect list from #4519 used gap: 2px instead of --space-0-5, and the agent model-refresh test's IPC mock lacked vcsRemotes, which the session's origin lookup reads since #4554. --- src/features/agents/modelRefresh.test.tsx | 1 + src/features/http-client/HttpClient.module.css | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/features/agents/modelRefresh.test.tsx b/src/features/agents/modelRefresh.test.tsx index d4e79693b3..abc61b9a0c 100644 --- a/src/features/agents/modelRefresh.test.tsx +++ b/src/features/agents/modelRefresh.test.tsx @@ -54,6 +54,7 @@ vi.mock("@/platform/ipc", async (original) => ({ agentCommands: async () => ok([]), vcsBranchInfo: async () => ok({ head: "main" }), vcsConfigGet: async () => ok(null), + vcsRemotes: async () => ok([]), vcsBranches: async () => ok([]), agentCreate: (request: NewAgentTask) => backend.create(request), agentEntries: async () => ok([{ type: "user", text: "Earlier message", attachments: [] }] satisfies AgentEntry[]), diff --git a/src/features/http-client/HttpClient.module.css b/src/features/http-client/HttpClient.module.css index 8a4e813c64..babaf06830 100644 --- a/src/features/http-client/HttpClient.module.css +++ b/src/features/http-client/HttpClient.module.css @@ -135,7 +135,7 @@ .redirects { display: flex; flex-direction: column; - gap: 2px; + gap: var(--space-0-5); padding: 2px 8px; border-bottom: 1px solid var(--border); font-family: var(--font-mono);