Repository navigation
Discard Pocket invitation parses after Cancel - #1315
Merged
Merged
Conversation
Deploying mouseterm with
|
| Latest commit: |
ef7f399
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://2c830f73.mouseterm.pages.dev |
| Branch Preview URL: | https://audit-pocket-scan-cancel.mouseterm.pages.dev |
dormouse-bot
approved these changes
Oct 21, 2026
nedtwigg
had a problem deploying
to
hosted-preview
October 21, 2026 12:57 — with
GitHub Actions
Error
This branch was successfully deployed
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.
Cancelling Pocket's scanner while an invitation was being parsed could still hand the completed parse to the pairing flow. Leaving the scanner had the same race, for both camera reads and pasted codes.
Invalidate pending parses on Cancel, teardown, and a successful handoff. Ignore their late results and rejection text, while allowing fresh input if the caller keeps the scanner open after cancellation. Update the scanner contract within its existing word budget.
Validation: all four camera/paste cancellation and teardown cases fail before the fix and pass after it; a fifth case preserves fresh input on a retained scanner. All 112 scanner and Pocket App tests, library TypeScript, spec lint, Markdown lint, and diff checks pass.