Skip to content

feat(lemonade): allow commands to be wrapped via supervisor script#26

Merged
sofiageo merged 1 commit into
lemonade-sdk:mainfrom
abn:feat/command-wrapper
Jun 14, 2026
Merged

feat(lemonade): allow commands to be wrapped via supervisor script#26
sofiageo merged 1 commit into
lemonade-sdk:mainfrom
abn:feat/command-wrapper

Conversation

@abn

@abn abn commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

This pull request adds support for directly executing commands passed as arguments to the lemonade-supervisor.sh script if the command exists in the PATH. It also updates the smoke test suite to verify this new behavior. The most important changes are:

Supervisor Script Enhancement:

  • Updated lemonade-supervisor.sh to check if the first argument is a command available in the PATH and, if so, execute it directly using exec. This allows the supervisor script to act as a command dispatcher for known commands.
flatpak run ai.lemonade_server.Lemonade lemonade pull ...

Test Suite Updates:

  • Added /app/bin to the PATH in the smoke test setup to ensure test commands can be found and executed.
  • Introduced a new smoke test that verifies the supervisor script executes a command directly when it is present in the PATH, and ensures that the usual application processes (lemond, tray, app) are not started in this scenario.

@sofiageo sofiageo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will make more tests later

@sofiageo sofiageo merged commit 03aefb4 into lemonade-sdk:main Jun 14, 2026
7 checks passed
@abn abn deleted the feat/command-wrapper branch June 14, 2026 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants