mirror of
https://github.com/Alishahryar1/free-claude-code.git
synced 2026-05-20 17:28:03 +00:00
|
Some checks are pending
CI / checks (push) Waiting to run
## What changed This updates the command parsing helpers to recognize leading environment assignments only when they match shell-style variable syntax like `FOO=bar`. The previous implementation treated any leading token containing `=` as an env assignment, which could misclassify real commands or file paths that happen to include `=`. Both `_strip_env_assignments()` and `extract_command_prefix()` now share the same validation helper so their behavior stays consistent. ## Why it matters These helpers are used by fast-path request optimizations, so incorrect prefix detection can bypass normal handling with the wrong result. Restricting env stripping to valid assignment tokens fixes false positives without changing the public API or the response format. ## How it was tested I validated the updated logic against representative inputs such as `FOO=bar git status`, plain commands like `git status`, and malformed or path-like tokens containing `=` that should not be treated as env assignments. The change is isolated to parsing logic and does not introduce new dependencies. --------- Co-authored-by: genoshide <genoshide@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| models | ||
| web_tools | ||
| __init__.py | ||
| app.py | ||
| command_utils.py | ||
| dependencies.py | ||
| detection.py | ||
| model_router.py | ||
| optimization_handlers.py | ||
| routes.py | ||
| runtime.py | ||
| services.py | ||
| validation_log.py | ||
| web_server_tools.py | ||