Command-parser false positive: Python heredoc variable REG classified as blocked reg command (0.2.51, Linux)

Author: 190171398-cloudCreated Sep 28, 2026Updated Sep 28, 2026

Environment

Desktop Commander package 0.2.51, Linux. This report is based on read-only inspection of the installed command-manager.js and parser-only reproduction. No filter configuration was changed.

Minimal input

The following string was supplied as data to extractCommands; it was not executed:

python3 - <<'PY'
REG = 'example'
print(REG)
PY

Observed behavior

The installed extractCommands parser returns a command list containing reg. That name matches the configured command blocklist, despite the heredoc containing only a Python variable assignment and a print call.

The same parser reports reg for a previously rejected multiline Python maintenance operation. Both diagnostic checks treated the input as data; neither the shell input above nor the maintenance operation was executed during the checks.

Expected behavior

The parser should distinguish interpreter/heredoc data from shell commands while retaining rejection of genuinely prohibited executables, shell substitutions, and nested execution.

Please advise whether an official fix or a supported per-operation review process is available. No removal of blocked commands or alternate execution workaround is requested.

Evidence limitations

The retained original operation history records isError=true, but its error-response body is truncated. This report establishes a reproducible local parser defect; it does not claim recovery of the complete historical denial message or prove that this was the only safety check involved.

Impact

A reviewed local development maintenance operation remains unexecuted.

This report intentionally omits the private installation command, device identifier, authorization documents, and runtime data.

Source: wonderwhy-er/DesktopCommanderMCP