Skip to content

fix: add reverse-dependency check to dream disable command#734

Merged
Lightheartdevs merged 1 commit intoLight-Heart-Labs:mainfrom
yasinBursali:fix/dream-cli-disable-reverse-deps
Apr 3, 2026
Merged

fix: add reverse-dependency check to dream disable command#734
Lightheartdevs merged 1 commit intoLight-Heart-Labs:mainfrom
yasinBursali:fix/dream-cli-disable-reverse-deps

Conversation

@yasinBursali
Copy link
Copy Markdown
Contributor

What

Warn users when disabling a service that other enabled extensions depend on.

Why

cmd_disable() silently disabled services without checking if other extensions depend on them, leaving dependent extensions in a broken state on next dream start. Both cmd_enable() and the dashboard API already perform dependency checks.

How

Iterate all enabled extensions' SERVICE_DEPENDS entries, collect those referencing the target service, warn and prompt before proceeding.

Testing

  • bash -n dream-cli syntax check ✅
  • Prompt pattern matches existing cmd_enable style

Platform Impact

All platforms (Bash CLI)

🤖 Generated with Claude Code

Warn users when disabling a service that other enabled extensions depend
on, matching the behavior already present in the dashboard API.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Lightheartdevs Lightheartdevs merged commit 98f2cc2 into Light-Heart-Labs:main Apr 3, 2026
19 of 27 checks passed
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