Skip to content

Don't send invalid /<commands> to the server #1140

@klxdev

Description

@klxdev

Checks

Operating system

macOS 15.4.0 (24E248)

Expected behaviour

When provided a / that doesn't exist of is misspelled, don't send this request to the LLM. Just reply with command not found and let me know that I should use /help

Actual behaviour

I mistyped /clear with /claer accidentally and I have to wait 20 seconds+ for the server to return for no reason. I also could not CTRL+C to stop this.

Steps to reproduce

Type a misspelled of non-existent command and hit enter in the chat.

Environment

<This will be visible to anyone. Do not include personal or sensitive information>

[q-details]
version = "1.7.2"
hash = "c03d6d3b14000add86a30ff00213a3c7baefe0ef"
date = "2025-03-29T00:42:37.54045Z (11d ago)"
variant = "full"

[system-info]
os = "macOS 15.4.0 (24E248)"
chip = "Apple M1 Pro"
total-cores = 10
memory = "32.00 GB"

[environment]
cwd = "/Users/USER/workspaces/EvaAI/src/AgxApp"
cli-path = "/Users/USER/workspaces/EvaAI/src/AgxApp"
os = "Mac"
shell-path = "/bin/zsh"
shell-version = "5.9"
terminal = "iTerm 2"
install-method = "unknown"

[env-vars]
PATH = "/Users/USER/.local/share/mise/installs/node/lts/bin:/Users/USER/.local/share/mise/installs/python/3.12.9/bin:/Users/USER/.local/share/mise/installs/rust/1.85.1/bin:/Users/USER/bin:/Users/USER/.local/bin:/usr/local/bin://Users/USER/.toolbox/bin:/Users/USER/.local/share/nvim/mason/bin:/Users/USER/workspaces/EvaAI/src/AgxApp/.venv/bin:/Users/USER/bin:/Users/USER/.local/bin:/usr/local/bin://Users/USER/.toolbox/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/USER/.local/share/mise/installs/node/lts/bin:/Users/USER/bin:/Users/USER/.local/bin://Users/USER/.toolbox/bin:/Applications/iTerm.app/Contents/Resources/utilities"
QTERM_SESSION_ID = "c3e25810f85e4d59af3e73d1517c81f8"
Q_SET_PARENT_CHECK = "1"
Q_TERM = "1.7.2"
Q_USING_ZSH_AUTOSUGGESTIONS = "1"
SHELL = "/bin/zsh"
TERM = "xterm-256color"
__CFBundleIdentifier = "com.googlecode.iterm2"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions