A comment posted twice within seconds is one comment - #520
Merged
Conversation
Two identical comments 830 ms apart, on the same sentence, by the same person: nothing stopped a second submit while the first was in flight, and neither host looked for a twin. The composer submits once at a time and says Posting…; an IME's Enter is not a submit; and both hosts answer the second POST of the same words on the same spot within fifteen seconds with the record already there. Closes #519. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
PreviewOpen this: https://pr-520-tdoc-preview.jyshi1107.workers.dev/ — the homepage, this PR's code This link is unique to this PR. New commits update the same URL. It is not tdoc.dev. Preview has no Durable Object — concurrent comments use the KV fallback. Data expires in 14 days. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #519.
busy), button reads Posting…; ⌘+Enter and the button share the guard.isComposing/ keyCode 229) is not a submit.duplicateComment()— same author, same words, same spot (anchor text / aid / selector) or same parent, within 15 s → respond with the existing record plusduplicate_of. Shared helper, pinned by no-drift.comment-dedupe.test.js; verified on the local server: two identical POSTs 200 ms apart → one comment, the second answered withduplicate_of.Offline suite green.
🤖 Generated with Claude Code