You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(showcase): prevent eval auto-trigger by requiring confirmation click (CopilotKit#4543)
## Summary
- The "Run Evaluation" link in PR comments was a GET endpoint that
dispatched the eval workflow directly. GitHub's link unfurling/preview
bot fetches URLs embedded in comments, which caused evals to
auto-trigger on every PR push without anyone clicking the link.
- Changed the GET endpoint to render a confirmation page (no side
effects). The actual dispatch now requires a POST via the form button
click.
- After dispatch, the response opens in a new tab (via `target="_blank"`
on the form) and redirects to the Actions workflow run page where
progress can be monitored — instead of redirecting back to the PR.
## Test plan
- [ ] Deploy eval-webhook to Railway
- [ ] Open a test PR, verify the bot comment link shows the confirmation
page (no auto-dispatch)
- [ ] Click "Run Evaluation" on the confirmation page, verify eval
dispatches and new tab opens to Actions run
- [ ] Verify the original tab preserves navigation history
0 commit comments