Skip to content

Fix Horrible slot reveal leak and gravity settings snapshot - #34

Merged
heyandromeda merged 2 commits into
mainfrom
cursor/horrible-playbook-daa3
Oct 25, 2026
Merged

heyandromeda merged 2 commits into
mainfrom
cursor/horrible-playbook-daa3

Conversation

@heyandromeda

@heyandromeda heyandromeda commented Oct 25, 2026 •

Copy link
Copy Markdown
Owner

Draft only. Do not merge.

Follow-up for the two Codex P2s on #33 (already merged at cc4f5dd):

  1. Stale slot reveal — slot interval/timeout is cancelled on disable and on each new clean, and the reveal callback is generation-guarded so #cleaned-url cannot show URL A after Copy already has B.
  2. Gravity prefs — pre-Horrible settings are stored separately in 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.

Open in Web Open in Cursor 

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.

@vercel

vercel Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
url-cleaner Ready Ready Preview Oct 25, 2026 9:32am UTC

@cursor

cursor Bot commented Oct 25, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot 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)

@cursor

cursor Bot commented Oct 25, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot 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)

cursoragent and others added 2 commits October 25, 2026 09:31
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>
@cursor
cursor Bot force-pushed the cursor/horrible-playbook-daa3 branch from 22a4415 to a13b36d Compare October 25, 2026 09:31
@cursor

cursor Bot commented Oct 25, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot 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)

@heyandromeda
heyandromeda marked this pull request as ready for review October 25, 2026 12:23
@heyandromeda
heyandromeda merged commit 40a2a49 into main Oct 25, 2026
4 checks passed
@cursor

cursor Bot commented Oct 25, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot 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)

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-25T12:25:11.607514Z a13b36d Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread app.js
Comment on lines +812 to 814
if (horribleIsOn()) return;
saveSetting(key, toggle.checked);
if (input.value.trim()) runClean({ allowAutoCopy: false });

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

This branch was successfully deployed

1 active deployment
Preview — a13b36d8 Deployed Oct 25, 2026 by vercel[bot]
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.

2 participants