PluginProbe
Extendify / 3.2.3
Extendify v3.2.3
3.2.3 3.2.2 3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 All 129 releases
← All changes | src/Agent/follow-ups/cards/add-to-menu.js +8 -1 3.2.2 → 3.2.3 View file →
@@ -16,7 +16,14 @@
16 16 // select-block has no example, so find-agent routes this message.
17 17 // translators: Shown in the AI Agent chat as the user's own request, sent when they click the "Add to menu" button.
18 18 message: __('Add this to the menu', 'extendify-local'),
19 19 },
20 - // The publish confirm writes the new status into the context.
20 + // Picked after the confirm's reload, so the context holds the saved status.
21 21 score: ({ context }) => (context?.postStatus === 'publish' ? 1 : 0),
22 + toolContext: () => {
23 + const { postId, postTitle } = window.extAgentData?.context ?? {};
24 + return {
25 + refersTo: { postId, postTitle },
26 + nextStep: 'Add this page to the menu',
27 + };
28 + },
22 29 };