{"version":"2.1.337","anchor":"dialog-elements-carry-cancel-close-and-secret-flags","canonical_anchor":"dialog-elements-carry-cancel-close-and-secret-flags","heading":"Dialog buttons can now be marked as cancel, close or secret","tier":"internal","area":"Dialogs","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337\/e\/dialog-elements-carry-cancel-close-and-secret-flags","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337","markdown":"### Dialog buttons can now be marked as cancel, close or secret\n\nEach choice in a dialog can now be marked as a cancel option, a close option or a secret entry, alongside the existing dismiss marker\n\n**Unclear.** It is not clear what reads these new markers, so their visible effect on dialogs is unknown.\n\n**What**\n\nEach choice in a dialog Claude Code shows now carries more markers than before. It used to carry only one marker saying whether picking it dismisses the dialog. It can now also say:\n\n- Cancel: picking it cancels the dialog.\n\n- Close: picking it closes the dialog. This is set when the choice's role is \"dismiss\".\n\n- Secret: the choice holds something that should be kept hidden.\n\nThe existing dismiss marker is still there, but it is now worked out from a different value.\n\n**Why**\n\nThese markers could change how a program hosting Claude Code, or one built with the SDK (the toolkit for driving Claude Code from your own code), handles dialogs.\n\n- Area: Dialogs\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}