You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(shell): quoted arguments starting with a cue word are misclassified as natural language #930
_looks_like_natural_language (src/synapsekit/shell/lexer.py) returns True whenever the quoted content matches _NL_CUES (find/list/run/show/open/check/search/…) regardless of at_line_start. This misclassifies ordinary quoted shell arguments that happen to begin with a cue word:
git commit -m "find and fix the bug" → the commit message is dropped and planned as natural language
grep "search term" file.txt → "search term" is stripped out of the command
echo "run the tests" → argument stripped
The existing test only covers "hello world" (no cue word), so it passes while the bug hides.
Fix: gate the _NL_CUES heuristic (and the standalone-phrase shorthand) on at_line_start/quote_at_start; keep only the explicit nl:/ask: prefixes unconditional. Add regression tests for cue-word quoted args mid-command.
Fixed in #925 (commit 3df9ac9) — cue-word/bare-phrase NL heuristics are now gated on the quote opening a command; regression tests cover git commit -m and grep. CI green. Lands on main when #925 merges.
Activity
fix(shell): bound subprocess output and stop misreading quoted args
fix(shell): bound subprocess output and stop misreading quoted args
AmitoVrito commentedon Aug 12, 2026
Fixed in #925 (commit
3df9ac9) — cue-word/bare-phrase NL heuristics are now gated on the quote opening a command; regression tests covergit commit -mandgrep. CI green. Lands on main when #925 merges.