Repository navigation
Release Alysis Code 0.17.3 - #56
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b71a487262
ℹ️ 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".
| return RoutineNeeds( | ||
| offline_computer=any(item.offline_computer for item in items), | ||
| online_browser=any(item.online_browser for item in items), | ||
| sites=[site for item in items for site in item.sites], |
There was a problem hiding this comment.
Deduplicate sites before validating the union
When a routine already has six approved sites and a run requests a seventh, Store._routine_access() computes wanted.union(allowed) with 13 list entries, even though there are only seven distinct sites. The sites field's max_length=10 validation runs before the model-level _normalized() deduplication, so this raises a validation error. Listing schedules then fails instead of returning the access-approval request, preventing the person from approving the additional site. Deduplicate the combined sites before constructing RoutineNeeds.
Useful? React with 👍 / 👎.
| cookies = live.site_data({"method": "site_cookies"}, cancel=cancel)["cookies"] | ||
| doomed, hosts = live_sign_out(cookies, site) | ||
| origins = sorted( | ||
| f"{scheme}://{host}" for host in hosts | known for scheme in ("https", "http") |
There was a problem hiding this comment.
Include live storage-only sites when signing out everywhere
If the running browser has signed into a new site using IndexedDB or Local Storage without cookies since its last saved checkpoint, that site's host appears in neither hosts nor known. Signing out everywhere therefore sends no storage-clear request for it, yet returns signed_out: true; the retained credentials can also be saved again when the computer finishes. The live sign-out path needs to enumerate current storage origins, not just cookie hosts and the older archive, before reporting that every sign-in was removed.
Useful? React with 👍 / 👎.
Alysis Code 0.17.3. See CHANGELOG.md for what changed.