Skip to content

Protect switch removal and new drafts from accidental loss - #831

Merged
enaboapps merged 4 commits into
mainfrom
codex/switch-loss-protection-827
Sep 21, 2026
Merged

enaboapps merged 4 commits into
mainfrom
codex/switch-loss-protection-827

Conversation

@enaboapps

@enaboapps enaboapps commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Switch deletion and populated new-draft cancellation now require an accessible confirmation. Failed saves retain the assignment and keep recovery available; untouched drafts still cancel immediately. Focus returns to the appropriate control after the dialog closes and the background becomes interactive.

This PR is stacked on #832 and preserves keyboard-entry cleanup after confirmed deletion.

Validation: lint/build, 180 frontend tests plus 5 feed tests passed. Rust formatting/Clippy, 510 Rust unit tests and 7 integration tests passed before the final frontend-only focus changes; one existing test ignored. Independent review passed at e17de72. Regression tests and a real browser check verify focus after deletion and draft discard, including inert background cleanup. Native Windows ARM64 checks passed for Keep/Discard draft, local and remote deletion, focus restoration and keyboard-entry cleanup on the combined build.

Closes #827.

@enaboapps
enaboapps force-pushed the codex/switch-loss-protection-827 branch from ce26289 to 9976209 Compare September 21, 2026 14:35
@enaboapps
enaboapps changed the base branch from main to codex/switch-name-entry-823 September 21, 2026 14:35
@enaboapps enaboapps added this to the v1.0.0-rc.15 milestone Sep 21, 2026
@enaboapps
enaboapps marked this pull request as ready for review September 21, 2026 15:04
@enaboapps
enaboapps changed the base branch from codex/switch-name-entry-823 to main September 21, 2026 17:18
Keep switch removal confirmation with remote-preset source labels from main.

Co-authored-by: Cursor <cursoragent@cursor.com>
@enaboapps
enaboapps merged commit dce531d into main Sep 21, 2026
6 checks passed
@enaboapps
enaboapps deleted the codex/switch-loss-protection-827 branch September 22, 2026 09:14
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.

Protect switch removal and populated new drafts from accidental loss

1 participant