mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-29 06:50:43 +01:00
Merge origin/master into feat/antigravity-swarm-command
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * origin/master: refactor(plugin-sdk): remove archivedState from the resume result (#22443) refactor(runner): let the provider decide whether a released Runner relaunches (#22442) fix(connections): drop MCP wording and the MCP guide link from Google Workspace setup (#22793) fix(ui): defer the Connectors announcement until a return visit (#22790) fix(connections): show only the privacy policy link in the Google Workspace picker (#22795) Add count, newest-first and lean run reads to customer-success inspection (#22781) fix(connections): keep a finished setup checklist on screen when the app refreshes queries (#22715) perf(ci): Phase 2 PR CI under 4 minutes (dynamic workers, fast E2E boot, typecheck overlap, test-budget gate) (#22729) fix(plan-mode): open the plan review card when a Plan-mode run settles without one (#22732)
This commit is contained in:
commit
3cbfa500f4
142 files changed
+5552
-11636
No files matched your search
@@ -165,12 +165,21 @@ describe("Tailscale network connector", () => {
|
||||
it("stops polling and gives a recovery action when the sign-in deadline passes", async () => {
|
||||
fixture.list.mockResolvedValue([{ ...connected, status: "authorizing" }]);
|
||||
fixture.deviceLogin.mockResolvedValue({ connection: { ...connected, status: "authorizing" }, authorizationUrl: "https://login.tailscale.com/a/fixture", expiresAt: new Date(Date.now() - 1).toISOString() });
|
||||
render();await settle();
|
||||
expect(container.textContent).toContain("Sign-in expired");
|
||||
expect(container.querySelector('a[href="https://login.tailscale.com/a/fixture"]')).toBeNull();
|
||||
await new Promise(resolve => setTimeout(resolve, 2100));
|
||||
expect(fixture.deviceLogin).toHaveBeenCalledOnce();
|
||||
expect(button("Cancel sign-in")).toBeDefined();
|
||||
vi.useFakeTimers({ toFake: ["setTimeout", "clearTimeout", "setInterval", "clearInterval"] });
|
||||
try {
|
||||
render();
|
||||
for (let i = 0; i < 6; i++) {
|
||||
await Promise.resolve();
|
||||
await vi.advanceTimersByTimeAsync(1);
|
||||
}
|
||||
expect(container.textContent).toContain("Sign-in expired");
|
||||
expect(container.querySelector('a[href="https://login.tailscale.com/a/fixture"]')).toBeNull();
|
||||
await vi.advanceTimersByTimeAsync(2100);
|
||||
expect(fixture.deviceLogin).toHaveBeenCalledOnce();
|
||||
expect(button("Cancel sign-in")).toBeDefined();
|
||||
} finally {
|
||||
vi.useRealTimers();
|
||||
}
|
||||
});
|
||||
|
||||
it.each(["cancelled", "failed"])("explains %s consent and retries the same saved connection", async outcome => {
|
||||
|
||||
@@ -105,8 +105,13 @@ async function openAndRun(testEntry = entry) {
|
||||
await renderDialog(testEntry);
|
||||
const button = [...document.body.querySelectorAll("button")].find((candidate) => candidate.textContent?.trim() === "Run");
|
||||
expect(button).toBeTruthy();
|
||||
await act(() => button!.click());
|
||||
await act(async () => { await new Promise((resolve) => window.setTimeout(resolve, 260)); });
|
||||
vi.useFakeTimers({ toFake: ["setTimeout", "clearTimeout", "Date"] });
|
||||
try {
|
||||
await act(() => button!.click());
|
||||
await act(async () => { await vi.advanceTimersByTimeAsync(260); });
|
||||
} finally {
|
||||
vi.useRealTimers();
|
||||
}
|
||||
await flushReact();
|
||||
}
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@ import { useToast } from "@/context/ToastContext";
|
||||
import { redactUrlSecrets } from "@/lib/redact-url-secrets";
|
||||
import { useAuthorizationWindow } from "@/hooks/useAuthorizationWindow";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { connectionTransportLabel } from "@/lib/connection-transport-label";
|
||||
import { Link } from "@/lib/router";
|
||||
import type { AppDetailSectionProps } from "./types";
|
||||
import { RevokeGrantDialog } from "./IdentitiesSection";
|
||||
@@ -628,8 +629,4 @@ export function connectionAddress(connection: ToolConnection): string {
|
||||
return "Not set";
|
||||
}
|
||||
|
||||
export function connectionTransportLabel(transport: ToolConnection["transport"]): string {
|
||||
if (transport === "mcp_remote") return "Remote HTTP";
|
||||
if (transport === "local_stdio") return "Local command";
|
||||
return "Unknown";
|
||||
}
|
||||
export { connectionTransportLabel };
|
||||
@@ -27,6 +27,7 @@ import { AgentSelect } from "@/components/AgentMultiSelect";
|
||||
import { ToolsPageHeader, LoadingState, RelativeTime } from "./shared";
|
||||
import { ANALYTICS_MASK_CLASS } from "@/lib/analytics/privacy";
|
||||
import { googleAccessRetrySummary } from "../../features/connections/googleAccessRemoval";
|
||||
import { auditTransportLabel } from "@/lib/connection-transport-label";
|
||||
|
||||
const PAGE_SIZE = 50;
|
||||
const ALL = "__all";
|
||||
@@ -286,7 +287,7 @@ function ActivityRow({
|
||||
<DetailFact label="Reason code" value={reasonCode} mono />
|
||||
<DetailFact label="Actor type" value={event.actorType ?? "—"} />
|
||||
{runId ? <DetailFact label="Run ID" value={runId} mono /> : null}
|
||||
{transport ? <DetailFact label="Transport" value={transport} mono /> : null}
|
||||
{transport ? <DetailFact label="Type" value={auditTransportLabel(transport)} /> : null}
|
||||
{requestMethod && endpoint ? <DetailFact label="HTTP request" value={`${requestMethod} ${endpoint}`} mono /> : null}
|
||||
{mcpMethod ? <DetailFact label="MCP method" value={mcpMethod} mono /> : null}
|
||||
{requestId ? <DetailFact label="Request ID" value={requestId} mono /> : null}
|
||||
|
||||
Reference in new issue
Block a user