Skip to content

Fix/tui selection cancel state#948

Open
rambhardwajj wants to merge 3 commits into
goharbor:mainfrom
rambhardwajj:fix/tui-selection-cancel-state
Open

Fix/tui selection cancel state#948
rambhardwajj wants to merge 3 commits into
goharbor:mainfrom
rambhardwajj:fix/tui-selection-cancel-state

Conversation

@rambhardwajj
Copy link
Copy Markdown

Description

Fixes inconsistent cancellation handling in interactive TUI selection views. The shared selection model did not mark selections as aborted when users pressed q, esc, or ctrl+c, which could lead callers to receive an empty choice or zero-value ID.

Type of Change

Please select the relevant type.

  • Bug fix
  • New feature
  • Refactor
  • Documentation update
  • Chore / maintenance

Changes

  • Added explicit abort handling for q, esc, and ctrl+c in the shared selection model
  • Added a helper for safely retrieving selected choices versus aborted/empty selections
  • Updated selection wrappers to return errors instead of empty or zero-value selections
  • Added tests for selection cancel and normal selection behavior

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.

[bug]: TUI selection cancel returns empty or zero-value choice instead of aborting

1 participant