Skip to content

keep queued startup enable and disable commands - #46

Merged
JamesLinYJ merged 1 commit into
mainfrom
cursor/startup-toggle-queue
Nov 9, 2026
Merged

JamesLinYJ merged 1 commit into
mainfrom
cursor/startup-toggle-queue

Conversation

@JamesLinYJ

@JamesLinYJ JamesLinYJ commented Nov 3, 2026 •

Copy link
Copy Markdown
Owner

Summary

Startup enable and disable clicks are no longer latest-wins. While the startup worker is busy, every accepted toggle is queued with its entry id and run in that order.

  • A later refresh does not erase queued toggles, and a toggle is not dropped when a refresh is already pending.
  • Immediately before each registry or startup-folder write, the worker re-reads the entry and compares it with the identity the page already stored. A missing or different entry skips that command and reports the existing missing failure.
  • The page still posts no new strings, menus, or window messages. Dropping the worker does not join it on the UI thread.

Test plan

  • Unit test: two different pending toggles both survive a merge, and a refresh does not erase them. A toggle also survives when a refresh is already pending. A mismatched or missing identity is the existing missing failure.
  • cargo fmt --all -- --check
  • cargo check, cargo clippy, and cargo test — not run to completion here. The default target is x86_64-pc-windows-msvc, and resource compilation stops because llvm-rc is not installed. It was not installed for this change. Linking the Windows test binary also needs link.exe, which this Linux environment does not have.
Open in Web Open in Cursor 

Accepted startup toggles stay in order while the worker is busy. A later
refresh no longer replaces that queue, and a toggle is not dropped when a
refresh is already pending. Each command re-checks the stored entry identity
immediately before the registry or startup-folder write.

Co-authored-by: jameslincn <jameslincn@outlook.sg>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 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-11-03T05:50:33.878535Z b273561 PR opened
ℹ️ 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: b27356129f

ℹ️ 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 src/pages/startup/mod.rs Resolved
@JamesLinYJ
JamesLinYJ merged commit 6aae37f into main Nov 9, 2026
3 checks passed
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