fix(dispatch): strip CRLF \r from comment body before command matching - #2168
Conversation
E2E tests did not runE2E tests run automatically for org/repo members and collaborators on pull requests. For other contributors, a maintainer must add the See E2E testing guide for details. |
Site previewPreview: https://3fcb05f8-site.fullsend-ai.workers.dev Commit: |
|
🤖 Review · Started 2:04 PM UTC |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
GitHub comment bodies use \r\n line endings. The `head -1 | awk` pipeline preserved the \r, making COMMAND=/fs-fix\r which silently failed the exact-match case statement. Add `tr -d '\r'` to all four extraction pipelines in both dispatch routers. Closes #2137 Co-authored-by: Cursor <cursoragent@cursor.com> Signed-off-by: Adam Scerra <ascerra@redhat.com> Co-authored-by: Cursor <cursoragent@cursor.com>
9fea9a1 to
0ea6a36
Compare
|
🤖 Finished Review · ✅ Success · Started 2:08 PM UTC · Completed 2:15 PM UTC |
ReviewFindingsMedium
Info
|
|
/ok-to-test |
|
🤖 Finished Retro · ✅ Success · Started 5:04 PM UTC · Completed 5:10 PM UTC |
Retro: PR #2168 — fix(dispatch): strip CRLF from comment bodyOverall assessment: This workflow went well. A human-authored fix for a high-priority silent-failure bug (#2137) was opened, reviewed by the review agent, approved by two humans, and merged within ~3 hours. The review agent provided high-quality findings, including identifying a latent CRLF exposure in Timeline:
Skipped proposals (already covered):
Proposals filed
|
Summary
\rfrom GitHub comment bodies in the dispatch command extraction pipeline so slash commands match correctly when the comment has multiple lineshead -1 | awkpipelines across both dispatch routers (reusable-dispatch.ymland scaffolddispatch.yml)\r\n(CRLF) line endings;head -1strips\nbut keeps\r, soCOMMANDbecomes/fs-fix\rwhich silently fails the exact-matchcasestatementEvidence
/fs-fixon PR #2136)/fs-triage(node-api #2)Change
One-token insertion in each of 4 pipelines —
tr -d '\r'betweenhead -1andawk:Files changed
.github/workflows/reusable-dispatch.yml— COMMAND (line 127) and SECOND_WORD (line 155)internal/scaffold/fullsend-repo/.github/workflows/dispatch.yml— COMMAND (line 82) and SECOND_WORD (line 110)Both routers are kept in sync per repo conventions.
Test plan
/fs-triagewith a multi-line body on a test issue and confirm triage agent triggers/fs-fix(no body) on a test PR and confirm it still works (regression check)Closes #2137
Made with Cursor