From 1b50f89842232d69bcb3a3d861d166ad60b8aa2b Mon Sep 17 00:00:00 2001 From: guangyang1206 Date: Fri, 22 May 2026 12:05:21 +0800 Subject: [PATCH] fix: auto-accept CSB trust interstitial for free tier (onlook-dev/onlook#3087) - Uncomment and enable CSB free tier actions to auto-click #btn-answer-yes - Add actions parameter to Firecrawl scrapeUrl() call - This allows the Penpal connection to establish properly on CSB free tier - Fixes timeout issue where preload script couldn't be injected due to interstitial Fixes #3087 --- .../client/src/server/api/routers/project/project.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/apps/web/client/src/server/api/routers/project/project.ts b/apps/web/client/src/server/api/routers/project/project.ts index bfece724ee..f21169bab1 100644 --- a/apps/web/client/src/server/api/routers/project/project.ts +++ b/apps/web/client/src/server/api/routers/project/project.ts @@ -84,15 +84,16 @@ export const projectRouter = createTRPCRouter({ const url = getSandboxPreviewUrl(branch.sandboxId, port); const app = new FirecrawlApp({ apiKey: env.FIRECRAWL_API_KEY }); - // Optional: Add actions to click the button for CSB free tier - // const _csbFreeActions = [{ - // type: 'click', - // selector: '#btn-answer-yes', - // }]; + // CSB free tier: auto-accept trust interstitial + const csbFreeActions = [{ + type: 'click' as const, + selector: '#btn-answer-yes', + }]; const result = await app.scrapeUrl(url, { formats: ['screenshot'], onlyMainContent: true, timeout: 10000, + actions: csbFreeActions, }); if (!result.success) {