From b1c2adc3cdd5bf3f241298edd47fb959c6b7591d Mon Sep 17 00:00:00 2001 From: Andrew Liu <159852527+aliu39@users.noreply.github.com> Date: Mon, 13 Apr 2026 23:07:46 -0700 Subject: [PATCH 1/2] feat(autofix): Disable rethink button when empty and submit on Enter Disable the rethink submit button when user context is blank/whitespace. Also allow submitting by pressing Enter (without Shift) while the textarea is focused, matching typical chat-style submit conventions. Co-Authored-By: Claude Sonnet 4.6 --- static/app/components/events/autofix/v3/nextStep.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/static/app/components/events/autofix/v3/nextStep.tsx b/static/app/components/events/autofix/v3/nextStep.tsx index 5e3375cad8a391..e3da6452259a6a 100644 --- a/static/app/components/events/autofix/v3/nextStep.tsx +++ b/static/app/components/events/autofix/v3/nextStep.tsx @@ -314,6 +314,14 @@ function NextStepTemplate({ placeholder={placeholderPrompt} value={userContext} onChange={event => setUserContext(event.target.value)} + onKeyDown={event => { + if (event.key === 'Enter' && !event.shiftKey) { + event.preventDefault(); + if (!isProcessing && userContext.trim()) { + onClickNo(userContext); + } + } + }} />