Skip to content

fix(lemonade): remove shell=True from Popen calls with list args - #805

Closed
CodeLine9 wants to merge 1 commit into
amd:mainfrom
CodeLine9:clawoss/fix/lemonade-subprocess-shell
Closed

CodeLine9 wants to merge 1 commit into
amd:mainfrom
CodeLine9:clawoss/fix/lemonade-subprocess-shell

Conversation

@CodeLine9

Copy link
Copy Markdown
Contributor

Bug

lemonade_client.py passes shell=True to subprocess.Popen while also passing base_cmd as a list. On POSIX, this causes only the first list element to be used as the shell command — serve, --log-level, --ctx-size etc. are silently dropped.

Fix

Remove shell=True from the two Popen calls that use list-form base_cmd. The Windows path already correctly joins into a single string and keeps shell=True.

Affected:

  • start_server silent mode (line ~712)
  • start_server foreground mode (line ~726)

Closes #787

@github-actions github-actions Bot added llm LLM backend changes performance Performance-critical changes labels Apr 18, 2026
@CodeLine9

Copy link
Copy Markdown
Contributor Author

Closing — won't have bandwidth to address feedback on this. Apologies for the noise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

llm LLM backend changes performance Performance-critical changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lemonade: subprocess.Popen(list, shell=True) drops arguments on POSIX

1 participant