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
cortex github run only detects mentions when the comment body contains the exact substrings @cortex or starts with /cortex. GitHub usernames and slash commands are often typed with different casing (e.g. @Cortex). Those comments are skipped with “Skipping: no Cortex mention detected”, and parse_cortex_command never extracts commands from mixed-case forms.
22122.mp4
Error Message
Debug Logs
System Information
Ubuntu 24.04
RAM 32GB
Screenshots
22122.mp4
Steps to Reproduce
Save a minimal issue_comment payload as event.json (shape matches GitHub’s webhook; only action, issue, and comment are required for parsing):
Observe stdout: Skipping: no Cortex mention detected and no “Cortex command detected!”.
Repeat with "body": "@cortex help" and confirm processing proceeds past the mention check. Note: from that point the handler uses the GitHub API (reactions, comments), so you need a valid token and repository for the command to complete without error.
Expected Behavior
Any case variation of @cortex and /cortex should count as a mention and participate in command parsing, consistent with help text (“Mention @cortex anywhere in your comment”)
Actual Behavior
Comment: Please @Cortex review this → skipped; no API response.
parse_cortex_command uses find("@cortex") and find("/cortex"), so it also fails for mixed case
Project
cortex
Description
cortex github runonly detects mentions when the comment body contains the exact substrings@cortexor starts with/cortex. GitHub usernames and slash commands are often typed with different casing (e.g.@Cortex). Those comments are skipped with “Skipping: no Cortex mention detected”, andparse_cortex_commandnever extracts commands from mixed-case forms.22122.mp4
Error Message
Debug Logs
System Information
Screenshots
22122.mp4
Steps to Reproduce
Save a minimal
issue_commentpayload asevent.json(shape matches GitHub’s webhook; onlyaction,issue, andcommentare required for parsing):{ "action": "created", "issue": { "number": 1, "title": "PR title" }, "comment": { "id": 999, "body": "@Cortex help", "user": { "login": "alice" } } }Run (a dummy token is enough; the handler returns before any HTTP call when the mention is skipped):
Observe stdout:
Skipping: no Cortex mention detectedand no “Cortex command detected!”.Repeat with
"body": "@cortex help"and confirm processing proceeds past the mention check. Note: from that point the handler uses the GitHub API (reactions, comments), so you need a valid token and repository for the command to complete without error.Expected Behavior
Any case variation of
@cortexand/cortexshould count as a mention and participate in command parsing, consistent with help text (“Mention@cortexanywhere in your comment”)Actual Behavior
Please @Cortex review this→ skipped; no API response.parse_cortex_commandusesfind("@cortex")andfind("/cortex"), so it also fails for mixed caseAdditional Context
No response