Skip to content

Fix nine problems found in a project audit - #21

Merged
ugzv merged 9 commits into
mainfrom
fix/audit-fixes
Nov 10, 2026
Merged

ugzv merged 9 commits into
mainfrom
fix/audit-fixes

Conversation

@ugzv

@ugzv ugzv commented Nov 10, 2026

Copy link
Copy Markdown
Owner

Summary

Nine small fixes from a read-through of the whole project.

  • Detection: code detection on a long mail did work that grew with the square of its candidates, on the main thread. A 250 KB mail took about 10 s; now about 1 s.
  • Sources: a resumed Gmail or Outlook account was shown as working before its provider answered, and each failed try reset the retry backoff, so an offline Mac retried every 5 s.
  • Sources: signing in again kept the old cached access token, so mail stayed broken for up to an hour after granting the missing permission.
  • Detection: a sign-in link written out in the plain-text part was dropped when the HTML part had no links.
  • Menu: the search field could vanish while a query was still filtering the list.
  • CLI: codecatch get --timeout inf reported a closed connection instead of a usage error.
  • Scripts: make-icon.swift reported success when iconutil failed.
  • Site: the demo caret kept blinking under reduced motion.
  • README: "optional blur" is now Hide Codes Until Hover.

Privacy and safety

No change to what CodeCatch reads, stores, copies, types, opens or sends. The plain-text link fallback offers links from mail that was already read, through the same sign-in link checks.

Tests

Three new tests, each failing on the old code: longMailCannotStallDetection, resumedAccountIsNotLiveBeforeItsProviderAnswers, and a plain-text link case in parsesMultipartEmail. scripts/test.sh, swift format lint --strict and scripts/check-site.py pass. The one-line fixes have no tests.

@ugzv
ugzv merged commit f9b73a4 into main Nov 10, 2026
4 checks passed
@ugzv
ugzv deleted the fix/audit-fixes branch November 10, 2026 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant