mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
6303cd6b88
Split GET /trigger/eval into a two-step flow: GET renders a confirmation page with a "Run Evaluation" button, POST performs the actual dispatch. This prevents GitHub's link unfurling bot from auto-triggering evals when it fetches the URL from PR comments. The POST handler polls for the Actions run URL after dispatch and opens it in a new tab via window.open, with a fallback link if the run isn't found within 5 seconds.