From ca6542f602b01abba41f0a0ea5e1213e1acaa9f4 Mon Sep 17 00:00:00 2001 From: kshitijk4poor <82637225+kshitijk4poor@users.noreply.github.com> Date: Wed, 17 Jun 2026 12:36:01 +0530 Subject: [PATCH] docs(cli): note URL exclusion in _extract_path_word docstring The docstring described a token as path-like when it contains a "/" separator, but the keystroke-latency fix now excludes "://" scheme tokens (URLs) even though they contain "/". Document the exclusion so the contract matches the behavior. --- hermes_cli/commands.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hermes_cli/commands.py b/hermes_cli/commands.py index ed6f83f39e6..f81d50eace9 100644 --- a/hermes_cli/commands.py +++ b/hermes_cli/commands.py @@ -1280,6 +1280,10 @@ class SlashCommandCompleter(Completer): current word doesn't look like a path. A word is path-like when it starts with ``./``, ``../``, ``~/``, ``/``, or contains a ``/`` separator (e.g. ``src/main.py``). + + Tokens containing a ``://`` scheme separator (e.g. URLs like + ``https://example.com/x``) are excluded even though they contain a + ``/`` — they are never useful local-path completions. """ if not text: return None