Skip to content

Keep typed text on esc in the repair, follow-up, pull request and new-chat forms - #1098

Merged
lezli01 merged 1 commit into
tui-auditfrom
fix/forms-esc-keeps-text
Nov 23, 2026
Merged

lezli01 merged 1 commit into
tui-auditfrom
fix/forms-esc-keeps-text

Conversation

@lezli01

@lezli01 lezli01 commented Nov 23, 2026

Copy link
Copy Markdown
Owner

Closes #1053. Merges into tui-audit.

Inside a text field

  • In the repair prompt, the follow-up body and the pull request body, esc now keeps what was typed and leaves the field, as the issue form's body does.
  • ctrl+s still does the same, and the hint line says ctrl+s or esc keeps this text and leaves the field.
  • In the pull request form this also removes the double meaning the issue pointed out: ctrl+s used to mean "commit the field" inside the editor and "push and create" outside it, and esc used to throw the edit away. Leaving the body no longer loses it, whichever key you use.

Closing a form

  • esc on the repair, follow-up, pull request or new-chat form, once it holds a draft, asks discard this draft? y/n. y closes it; any other key keeps it.
  • A draft is the forms' existing dirty flag, which until now guarded only project switches.
  • An untouched form, or one whose request is in flight, still closes at once.

Checks

  • A test per form: esc in the field keeps the text, esc on the form asks, y closes, and an untouched form closes at once.
  • The popup-tabs test now answers the question.
  • Updated the guide's rows.
  • go test ./internal/tui passes and mage lintall is clean.

…st and new-chat forms

esc inside a text field of the repair, follow-up and pull request forms
now keeps what was typed and leaves the field, as the issue form's body
does. esc on any of the four forms, once it holds a draft, asks
"discard this draft? y/n"; an untouched form still closes at once.

Closes #1053
@lezli01
lezli01 merged commit d7a4344 into tui-audit Nov 23, 2026
24 checks passed
@lezli01
lezli01 deleted the fix/forms-esc-keeps-text branch November 23, 2026 13:35
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