From b83dfe67aaa31c2bc65b96027105b15eea12534d Mon Sep 17 00:00:00 2001 From: Runloop Agent Date: Sat, 14 Mar 2026 21:53:46 +0000 Subject: [PATCH] fix(tui): allow typing 'q' in snapshot name/commit_message fields The snapshot form's useInput handler was treating 'q' as a cancel key unconditionally, so typing 'q' in the Name or Commit Message fields would cancel the entire form instead of inserting the character. Only allow 'q' to cancel when not focused on a text input field; Escape always cancels regardless of field. Co-Authored-By: Claude Sonnet 4.6 --- src/components/DevboxActionsMenu.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/DevboxActionsMenu.tsx b/src/components/DevboxActionsMenu.tsx index 3299183f..66036405 100644 --- a/src/components/DevboxActionsMenu.tsx +++ b/src/components/DevboxActionsMenu.tsx @@ -380,7 +380,10 @@ export const DevboxActionsMenu = ({ ] as const; const currentFieldIndex = snapshotFields.indexOf(snapshotFormField); - if (input === "q" || key.escape) { + const isInTextField = + snapshotFormField === "name" || + snapshotFormField === "commit_message"; + if (key.escape || (!isInTextField && input === "q")) { // Cancel snapshot form setSnapshotFormMode(false); setSnapshotName("");