Skip to content

AI Launchpad: Notice ChatGPT and Claude connections made without clicking Connect - #55529

Open
ariskataoka wants to merge 3 commits into
trunkfrom
fix/forno-644-connections-without-click
Open

ariskataoka wants to merge 3 commits into
trunkfrom
fix/forno-644-connections-without-click

Conversation

@ariskataoka

@ariskataoka ariskataoka commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Fixes FORNO-644

Proposed changes

  • "Which AI do you use?" now shows a ChatGPT or Claude connection when you come back to the page, even without clicking Connect (copied link, desktop app).
  • On Simple, this also covers finishing after the 10-minute wait. Atomic already did.
  • Checks once per return, only while nothing is waiting. Stops once both tools are connected.
  • No visual change.
  • Follows AI Launchpad: Notice an AI tool connected through "Another AI tool" #55424.

Related product discussion/links

  • None.

Does this pull request change what data or activity we track or use?

  • No new events or properties.
  • jetpack_ai_launchpad_wizard_mcp_connected_viewed can now fire without a Connect click, and once per open tab.

Testing instructions

Setup (Simple or Atomic):

  • Run this branch: on Simple, a sandbox with this branch's jetpack-mu-wpcom; on Atomic, WordPress.com Site Helper from this PR through Jetpack Beta.
  • Turn Site Setup on: as an admin, open any wp-admin page with ?enable-ai-launchpad=1.
  • Make sure ChatGPT and Claude aren't connected to your WordPress.com account: remove them in https://wordpress.com/me/security/connected-applications, and in ChatGPT's and Claude's own connector settings.

Steps:

  • Open /wp-admin/admin.php?page=site-setup-wp-admin&start=ai-tool. You see "Which AI do you use?".
  • Right-click Claude's Connect, copy the link, and connect in another browser.
  • Click back on the first window. Claude shows as connected, without reloading.
  • Repeat with ChatGPT in a new tab of the same browser. ChatGPT shows as connected.
  • With both connected, switch away and back a few times. On Atomic, the Network tab shows no new mcp-connections requests (on Simple these requests don't show in the Network tab).

Tested on Simple and Atomic, including read-only access (Atomic) and finishing after the 10-minute wait (Simple).

Coverage: the new logic is unit-tested in lib.ts; ai-tool-step.tsx has no component tests in this package and was checked live.

Before: Claude was already connected. ChatGPT is now connected too, but the page still shows Connect.
before-simple-chatgpt-still-connect

After: with the fix, the page picks up the new connection and shows both as connected.
after-simple-both-connected


🤖 Generated with Claude Code

@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.

  • To test on WoA, go to the Plugins menu on a WoA dev site. Click on the "Upload" button and follow the upgrade flow to be able to upload, install, and activate the Jetpack Beta plugin. Once the plugin is active, go to Jetpack > Jetpack Beta, select your plugin (WordPress.com Site Helper), and enable the fix/forno-644-connections-without-click branch.
  • To test on Simple, run the following command on your sandbox:
bin/jetpack-downloader test jetpack-mu-wpcom-plugin fix/forno-644-connections-without-click

Interested in more tips and information?

  • In your local development environment, use the jetpack rsync command to sync your changes to a WoA dev blog.
  • Read more about our development workflow here: PCYsg-eg0-p2
  • Figure out when your changes will be shipped to customers here: PCYsg-eg5-p2

@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Thank you for your PR!

When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:

  • ✅ Include a description of your PR changes.
  • ✅ Add a "[Status]" label (In Progress, Needs Review, ...).
  • ✅ Add testing instructions.
  • ✅ Specify whether this PR includes any changes to data or privacy.
  • ✅ Add changelog entries to affected projects

This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖


Follow this PR Review Process:

  1. Ensure all required checks appearing at the bottom of this PR are passing.
  2. Make sure to test your changes on all platforms that it applies to. You're responsible for the quality of the code you ship.
  3. You can use GitHub's Reviewers functionality to request a review.
  4. When it's reviewed and merged, you will be pinged in Slack to deploy the changes to WordPress.com simple once the build is done.

If you have questions about anything, reach out in #jetpack-developers for guidance!


Wpcomsh plugin:

  • Next scheduled release: Atomic deploys happen twice daily on weekdays (p9o2xV-2EN-p2)

If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack.

@jp-launch-control

jp-launch-control Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Code Coverage Summary

Coverage changed in 3 files.

File Coverage Δ% Δ Uncovered
projects/packages/jetpack-mu-wpcom/src/features/ai-launchpad/js/wizard/ai-tool-step.tsx 0/618 (0.00%) 0.00% 80 💔
projects/packages/jetpack-mu-wpcom/src/features/ai-launchpad/js/lib/tracks.ts 521/521 (100.00%) 0.00% 0 💚
projects/packages/jetpack-mu-wpcom/src/features/ai-launchpad/js/wizard/lib.ts 563/563 (100.00%) 0.00% 0 💚

Full summary · PHP report · JS report

Coverage check overridden by Covered by non-unit tests Use to ignore the Code coverage requirement check when E2Es or other non-unit tests cover the code .

Base automatically changed from add/forno-661-other-ai-tool-connections to trunk November 27, 2026 04:18
…king Connect

Check once on each return to the tab or window while no wait runs, and count any new ChatGPT or Claude connection, so a copied Connect link or a connection finished after the wait timed out shows as connected. The wait for another AI tool now notices them too.

Until the tools connected before the view opened are known, only clicked tools count as new; until that read succeeds, the first check that succeeds stands in for it.
@ariskataoka
ariskataoka force-pushed the fix/forno-644-connections-without-click branch from 9b36b41 to 5b8ba30 Compare November 27, 2026 04:27
@ariskataoka
ariskataoka requested a lite review from Copilot November 27, 2026 04:31

This comment was marked as resolved.

@ariskataoka ariskataoka added the Covered by non-unit tests Use to ignore the Code coverage requirement check when E2Es or other non-unit tests cover the code label Nov 27, 2026
@ariskataoka
ariskataoka marked this pull request as ready for review November 27, 2026 05:37
@ariskataoka
ariskataoka requested a review from a team November 27, 2026 05:37
@ariskataoka ariskataoka added [Status] Needs Review This PR is ready for review. and removed [Status] In Progress labels Nov 27, 2026

@t-wright t-wright left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests well

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Covered by non-unit tests Use to ignore the Code coverage requirement check when E2Es or other non-unit tests cover the code [mu wpcom Feature] Ai Launchpad [Package] Jetpack mu wpcom WordPress.com Features [Plugin] Wpcomsh [Status] Needs Review This PR is ready for review. [Tests] Includes Tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants