mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-12-02 15:01:42 -05:00
504595dfa8
Review on #6984: past the 32nd question, a click split across script sessions gave the later message boxes their buttons' safe default (the click-wide limiter answers nothing), but a single session failed with "too many interactive prompts" (interaction::reserve), so a form could take its error path in one case and go on in the other. XfaHost's message box now asks only while interaction::can_ask() and otherwise gives the safe default, as the PR describes; the 32-question bound is unchanged. FormCalc's $host.messageBox goes through the same path. AcroForm app.alert keeps its own limit. Test: an_xfa_click_asks_at_most_32_questions now asserts what the script receives: 32 asked and answered Yes, the other 28 get No without being asked, and the script completes (seen failing without the fix: "too many interactive prompts"). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>