Skip to content

C11-250: close safety follow-ups from #469 - #561

Merged
BenevolentFutures merged 12 commits into
mainfrom
c11-1.0/C11-250-close-safety
Oct 2, 2026
Merged

BenevolentFutures merged 12 commits into
mainfrom
c11-1.0/C11-250-close-safety

Conversation

@BenevolentFutures

Copy link
Copy Markdown
Contributor

Follow-ups 2, 5 and 6 from the #469 shutdown-snapshot review (C11-250).

  • Close guard lifetime (2): unregisterMainWindow no longer drops the main-window close guard before windowWillClose reaches it. Guard cleanup stays in the delegate callback.
  • Socket close with a sheet attached (5): window.close returns invalid_state (v1 close_window returns an explicit error) when an operator close sheet is attached, instead of a false OK. Unknown windows still return not_found.
  • Confirm card fallback (6): the card highlight and Return routing share one .cancel fallback.

Not in this PR: findings 1, 3, 4, 7, 8, 9. No new strings, persisted fields, or hot-path changes. App-termination callback untouched.

Tests: Atlas targeted tests pass (close-guard teardown ordering, attached-sheet socket close, card fallback). Runtime proof in an Atlas guest on the packaged tagged build: with the close sheet attached, v2 and v1 close are rejected, the window and sheet remain, Cancel keeps the window open, and a close with no sheet still works. Details in the C11-250 validation comment.

🤖 Generated with Claude Code

Atin and others added 12 commits October 2, 2026 11:51
…-safety

# Conflicts:
#	Sources/AppDelegate.swift
…endered-card test

Adds a hosted-card pixel test (missing selection renders the same as Cancel
selected and differs from Confirm selected) and a Return-routing test for an
active confirm with a missing selection, plus a DEBUG-only seam to clear the
published selection.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…te equality

Whole-image byte equality differed in a few antialiased pixels between runs.
The test now checks the missing-selection render is closer to the Cancel-selected
reference than to the Confirm-selected one.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@BenevolentFutures
BenevolentFutures marked this pull request as ready for review October 2, 2026 23:29
@BenevolentFutures
BenevolentFutures merged commit 8cfd73f into main Oct 2, 2026
8 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.

1 participant