[fix]: lots of cli input improvements#379
Merged
brandonkachen merged 8 commits intomainfrom Nov 21, 2025
Merged
Conversation
- Add missing forceFileOnlyMentions state variable in chat.tsx - Add missing messageAvailableWidth variable in chat.tsx - Fix pushUnique() calls to include matches array as first argument in use-suggestion-engine.ts
- Prevent @ menu from triggering inside quotes (single, double, backticks) - Prevent @ menu for email addresses (alphanumeric before @) - Prevent @ menu for escaped @ symbols (\@) - Prevent @ menu in URLs (colon before @) - Fix quote escape handling to properly count backslashes - Add comprehensive test suite with 53 edge case tests - All 343 CLI tests passing
- Remove outer padding to allow scrollbar at screen edge - Move padding to scrollbox content for centered text - Increase right padding to compensate for terminal's left margin - Scrollbar now appears at absolute right edge of terminal
- Add bash mode that activates when user types "!" - Clear input and show red "!" column when in bash mode - Exit bash mode with backspace on empty input - Prepend "!" to commands on submission - Adjust input width and placeholder in bash mode - Add comprehensive test suite (26 tests) - Simplify toggle width calculation Fixes issue where users couldn't exit bash mode without typing first.
Adds smart heuristic to only trigger file mention menu on tab when there is an actual word at cursor to complete. Prevents @ symbol from appearing when pressing tab at position 0 or after whitespace.
- Exit bash mode on backspace at cursor position 0 (not just empty input) - Preserve text after ! when entering bash mode - Update tests to reflect cursor-position-based exit logic
- Add /bash (aliased to /!) slash command to enter bash mode - Escape key now clears input when there is text, similar to Ctrl-C - Updated keyboard handlers to support input clearing on escape
# Conflicts: # cli/src/state/chat-store.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.