@adhdev/daemon-core 0.9.82-rc.105 → 0.9.82-rc.107

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -17850,6 +17850,9 @@ async function handleResolveAction(h, args) {
17850
17850
  if (buttonIndex < 0 && (action === "always" || /always/i.test(button))) {
17851
17851
  buttonIndex = buttons.findIndex((b) => /always/i.test(b));
17852
17852
  }
17853
+ if (buttonIndex < 0 && (action === "approve" || action === "accept")) {
17854
+ buttonIndex = pickApprovalButton(buttons, provider).index;
17855
+ }
17853
17856
  if (buttonIndex < 0) {
17854
17857
  return { success: false, error: "Approval action did not match any visible button" };
17855
17858
  }