Repository navigation
AI Launchpad: Notice ChatGPT and Claude connections made without clicking Connect - #55529
ariskataoka wants to merge 3 commits into
Conversation
|
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
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:
If you have questions about anything, reach out in #jetpack-developers for guidance! Wpcomsh plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
Code Coverage SummaryCoverage changed in 3 files.
Full summary · PHP report · JS report Coverage check overridden by
Covered by non-unit tests
|
…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.
9b36b41 to
5b8ba30
Compare
Fixes FORNO-644
Proposed changes
Related product discussion/links
Does this pull request change what data or activity we track or use?
jetpack_ai_launchpad_wizard_mcp_connected_viewedcan now fire without a Connect click, and once per open tab.Testing instructions
Setup (Simple or Atomic):
jetpack-mu-wpcom; on Atomic, WordPress.com Site Helper from this PR through Jetpack Beta.?enable-ai-launchpad=1.Steps:
/wp-admin/admin.php?page=site-setup-wp-admin&start=ai-tool. You see "Which AI do you use?".mcp-connectionsrequests (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.tsxhas 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.

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

🤖 Generated with Claude Code