From 677f1227c37db376ed12136e286772e5cc65605a Mon Sep 17 00:00:00 2001 From: kshitijk4poor Date: Tue, 14 Apr 2026 19:23:44 +0530 Subject: [PATCH] =?UTF-8?q?fix:=20remove=20@staticmethod=20from=20=5Fconte?= =?UTF-8?q?xt=5Fcompletions=20=E2=80=94=20crashes=20on=20@=20mention?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR #9467 added a call to self._fuzzy_file_completions() inside _context_completions(), but the method was still decorated with @staticmethod and didn't receive self. Every @ mention in the input triggers 'name self is not defined' from prompt_toolkit's async completer, spamming the error on every keystroke. Fix: remove @staticmethod, add self parameter. The method already uses self._fuzzy_file_completions() and self._get_project_files() via that call chain, so it was never meant to stay static after the fuzzy search feature was added. --- hermes_cli/commands.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hermes_cli/commands.py b/hermes_cli/commands.py index e08aacf64..516392bd1 100644 --- a/hermes_cli/commands.py +++ b/hermes_cli/commands.py @@ -844,8 +844,7 @@ class SlashCommandCompleter(Completer): return None return word - @staticmethod - def _context_completions(word: str, limit: int = 30): + def _context_completions(self, word: str, limit: int = 30): """Yield Claude Code-style @ context completions. Bare ``@`` or ``@partial`` shows static references and matching