Skip to content

Copy values from false choice selections - #166

Open
OskarEichler wants to merge 1 commit into
dmendel:masterfrom
OskarEichler:codex/copy-false-choice-values
Open

Copy values from false choice selections#166
OskarEichler wants to merge 1 commit into
dmendel:masterfrom
OskarEichler:codex/copy-false-choice-values

Conversation

@OskarEichler

Copy link
Copy Markdown

Summary:

  • recognize false as a valid previous Choice selection
  • copy the previous choice value when switching away from that selection

Why:
Choice uses a truthiness check for @last_selection. When false is a legitimate selector, switching to another selection skips the previous-choice handoff and loses the value that equivalent selectors preserve.

Verification:

  • focused false-selection reproduction fails on master and passes with this change
  • full current suite: 773 runs, 8,352 assertions, 0 failures/errors
  • cumulative WebAuthn and TPM downstream suites pass

Compatibility:
nil still represents no previous selection; true, numeric and symbolic selectors are unchanged.

@dmendel

dmendel commented Sep 1, 2026

Copy link
Copy Markdown
Owner

false is not a valid choice selection. Why do you want it to be?

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