Repository navigation
Fix Horrible slot reveal leak and gravity settings snapshot - #34
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: d4619a59-3f17-44fa-b3db-98da19f71a68) |
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: 333a62f8-a4c6-4b41-8704-88e5b2988a70) |
Cancel slot timers on disable and each new clean so the shown URL cannot lag behind Copy. Keep gravity slider changes out of real prefs and restore the pre-Horrible snapshot after reload. Co-authored-by: Andromeda <heyandromeda@users.noreply.github.com>
Co-authored-by: Andromeda <heyandromeda@users.noreply.github.com>
22a4415 to
a13b36d
Compare
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: 423fb3c6-231f-4c2f-9eee-01430576838e) |
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: 4df122c9-4fdf-494b-a345-fbdf7bdab350) |
Codex Review SummaryThis 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: a13b36d8b0
ℹ️ 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".
| if (horribleIsOn()) return; | ||
| saveSetting(key, toggle.checked); | ||
| if (input.value.trim()) runClean({ allowAutoCopy: false }); |
There was a problem hiding this comment.
Recompute results when the panic controls restore cleaning settings
When Aggressive or Duplicates has changed during Horrible mode, clicking “Make it stop” or pressing Escape restores the checkboxes without recomputing the result. In horrible.js, stopEverything() calls playbook.disable() before onStop removes the Horrible attribute, so this new guard discards the restoration's change events; the subsequent disable has no snapshot left to restore. For example, cleaning https://example.com/?ref=important with joke-enabled Aggressive and then stopping leaves https://example.com/ displayed and available to Copy even though Aggressive is now off. Suppress preference writes separately from recalculation, or recompute once after restoring all settings and removing the attribute.
Useful? React with 👍 / 👎.
Draft only. Do not merge.
Follow-up for the two Codex P2s on #33 (already merged at
cc4f5dd):#cleaned-urlcannot show URL A after Copy already has B.url-cleaner.horrible-settings. Gravity/joke checkbox changes do not write the real preference keys. Make it stop / disable restores the snapshot even after a reload.Regression coverage: unit tests for the snapshot helpers and
shouldCommitSlotReveal, plus Playwright for both repros.Note
Low Risk
Targeted Horrible-mode UX fixes with isolated storage and timer lifecycle changes; normal cleaning paths are only gated by early returns when Horrible is active.
Reviewed by Cursor Bugbot for commit a13b36d. Bugbot is set up for automated code reviews on this repo. Configure here.