fix: support headless mode when no loop plugins registered (#227) #228

Merged
k9ert merged 1 commit from fix/headless-mode into main 2026-03-08 12:54:45 +00:00
Collaborator

Fixes #227.

When no loop plugins are registered, cobot now runs in headless mode instead of crashing. This allows archive-only plugins (like telegram-lurker) to run without needing an LLM or loop plugin.

Changes:

  • run(): If no loops but plugins exist, keep process alive via asyncio.Event().wait()
  • run_stdin(): Graceful message and exit if no loops
  • Tests updated for both no-plugins and headless scenarios
Fixes #227. When no loop plugins are registered, cobot now runs in headless mode instead of crashing. This allows archive-only plugins (like telegram-lurker) to run without needing an LLM or loop plugin. Changes: - `run()`: If no loops but plugins exist, keep process alive via `asyncio.Event().wait()` - `run_stdin()`: Graceful message and exit if no loops - Tests updated for both no-plugins and headless scenarios
fix: support headless mode when no loop plugins registered (#227)
All checks were successful
CI / lint (pull_request) Successful in 9s
CI / test (3.11) (pull_request) Successful in 20s
CI / test (3.12) (pull_request) Successful in 22s
CI / test (3.13) (pull_request) Successful in 22s
E2E Tests / e2e (pull_request) Successful in 15s
CI / build (pull_request) Successful in 7s
96483495f4
k9ert approved these changes 2026-03-08 12:45:21 +00:00
k9ert force-pushed fix/headless-mode from 96483495f4
All checks were successful
CI / lint (pull_request) Successful in 9s
CI / test (3.11) (pull_request) Successful in 20s
CI / test (3.12) (pull_request) Successful in 22s
CI / test (3.13) (pull_request) Successful in 22s
E2E Tests / e2e (pull_request) Successful in 15s
CI / build (pull_request) Successful in 7s
to 4b371d07de
All checks were successful
CI / lint (pull_request) Successful in 9s
CI / test (3.11) (pull_request) Successful in 22s
CI / test (3.12) (pull_request) Successful in 23s
CI / test (3.13) (pull_request) Successful in 23s
E2E Tests / e2e (pull_request) Successful in 16s
CI / build (pull_request) Successful in 7s
2026-03-08 12:45:31 +00:00
Compare
k9ert merged commit f570d8418e into main 2026-03-08 12:54:45 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ultanio/cobot!228
No description provided.