Repository navigation
feat(docs): Add a cookie-free Fin Ask AI pilot - #20070
rahulchhabria wants to merge 2 commits into
Conversation
Preserve Ask AI entry points with a first-party streaming dialog and server-only Fin calls. Add support handoff, durable feedback events, pilot limits, tests, and the access checklist.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
The plan checks Ask AI reachability, search volume, and server failures. An issue escalates when Ask AI traffic collapses or search errors rise. The Fin dialog stays off until the deployment turns the Fin provider on. Services: Mention PlanWhat changedAsk AI buttons now open through a first-party provider. The default path still opens the current Kapa widget. Kapa stays loaded when ASK_AI_PROVIDER is not fin. The Fin dialog is reachable when ASK_AI_PROVIDER is fin and FIN_PILOT_ENABLED is true. That dialog posts sentry-docs and develop-docs must deploy before this change is live. Those Vercel projects share RiskA provider crash can blank every page. The provider wraps the root layout. Broken click handlers can stop Ask AI or Algolia search. Turning Fin on too soon removes Kapa and can leave Ask AI with failing streams. Public scanners can hit the new routes and receive 503 while the gate stays off. Intended effectConfirm that Kapa widget requests continue while Fin stays off. Confirm that
Regression watchWatch search, the header Ask AI path, and server 500s on the same page tree. The layout wrap can fail every page. Search click handlers can fail Algolia. Do not treat gated
Not observableAsk AI open clicks are not in Sentry. Plausible Get Slack DMs about this change: cursor.com/automations/rollouts |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit bc83804. Configure here.
Check provider readiness before releasing search and navigation overlays. Keep the next-frame handoff for scroll locks and cover delayed Kapa loading with regression tests.

DESCRIBE YOUR PR
Add an opt-in Fin API pilot that preserves the docs Ask AI entry points and streams answers in a first-party dialog. This lets us evaluate Fin alongside our existing support workflow without loading Intercom Messenger or adding browser cookies or persistent storage. Kapa remains the default until the pilot is explicitly enabled.
The pilot includes sanitized answers and citations, follow-up questions, helpfulness feedback, transcript copying, and optional support handoff. Server-only Fin credentials, fixed-origin requests, shared Redis limits, and session locks bound the public API. Signed webhooks and a protected event export provide the input for a future internal agent that proposes docs changes; the docs-writing/PR worker and human-reply ingestion are outside this pilot.
The pilot guide lists API/SSE access, secrets, Redis, content configuration, support routing, privacy decisions, and permissions needed before a live test. Fin API access and streaming approval still need confirmation. Support handoff is disabled by default.
Validation: all 524 tests across 43 files passed in GitHub Actions, along with lint, spelling, links, CodeQL, and dependency/security checks. Warden and Bugbot completed with no issues found on the latest commit. Both Vercel preview builds passed.
Local checks passed 27 targeted tests, TypeScript, ESLint, and Prettier. Browser checks exercised the actual provider and dialog on desktop/mobile using simulated Fin responses, including sanitization, follow-ups, feedback, reset, focus, and support handoff. No new cookies, persistent browser storage, or third-party requests were observed in that harness. Regression tests cover preserving search until Kapa loads and releasing overlay scroll locks before opening Ask AI.
Live Fin responses still require the credentials and approvals listed in the pilot guide. The deployed preview has not been manually checked.
IS YOUR CHANGE URGENT?
PRE-MERGE CHECKLIST