Repository navigation
Discord: support Unicode handle mention rewrite - #43357
yunhaoli24 wants to merge 3 commits into
Conversation
Greptile SummaryThis PR expands Discord mention candidate detection from ASCII-only ( Key observations:
Confidence Score: 3/5
Last reviewed commit: c29e3ef |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c29e3ef73c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c44e4d69b0
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cb54265c9f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
This pull request has been automatically marked as stale due to inactivity. |
|
Codex review: needs real behavior proof before merge. Summary Reproducibility: yes. at source level: current main's Discord mention regex only matches ASCII handles, so a cached Unicode handle such as Real behavior proof Next step before merge Security Review findings
Review detailsBest possible solution: Consolidate a Discord-only Unicode/CJK mention rewrite that preserves alias, email, URL, code-span, reserved-mention, and account-scope safeguards while leaving official external catalog pins untouched. Do we have a high-confidence way to reproduce the issue? Yes, at source level: current main's Discord mention regex only matches ASCII handles, so a cached Unicode handle such as Is this the best way to solve the issue? No. Unicode-aware parsing is the right direction, but this branch must first remove unrelated catalog changes, preserve current alias behavior during rebase, and provide real Discord proof. Full review comments:
Overall correctness: patch is incorrect Security concerns:
Acceptance criteria:
What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 540a4a73d556. |
cb54265 to
42b1b11
Compare
42b1b11 to
6a8da88
Compare
|
Updated this PR for the latest review feedback. Changes:
Tested:
|
|
Mentions on Discord are always ascii, the existing regex is correct |
Summary
@everyoneand@herepassthrough behavior unchanged你好@张三Testing
pnpm vitest src/discord/mentions.test.ts src/discord/send.sends-basic-channel-messages.test.ts