Skip to content

fix(tui): allow typing 'q' in snapshot name/commit_message fields#172

Open
rlagentflowbeta[bot] wants to merge 1 commit intomainfrom
agent/fix-snapshot-name-q-key
Open

fix(tui): allow typing 'q' in snapshot name/commit_message fields#172
rlagentflowbeta[bot] wants to merge 1 commit intomainfrom
agent/fix-snapshot-name-q-key

Conversation

@rlagentflowbeta
Copy link
Contributor

Summary

  • The snapshot form's useInput handler was treating q as a cancel key unconditionally
  • Typing q while focused on the Name or Commit Message text fields would cancel the form instead of inserting the character
  • Fixed by only treating q as cancel when NOT focused on a text input field; Escape always cancels

Test plan

  • Open the snapshot form from the devbox actions menu
  • Type a name containing the letter q (e.g. my-snapshot-q) — should now insert correctly instead of cancelling
  • Verify Escape still cancels the form from both text fields and non-text fields
  • Verify q still cancels the form when focused on the Metadata or Create fields

🤖 Generated with Claude Code

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 <[email protected]>
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.

0 participants