Diagnose stale daemon runtime drift#505
Merged
shuxueshuxue merged 1 commit intomainfrom May 6, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Daemon Runtime: restart neededfromcel self statuswhen a running daemon no longer matches the current CLI codecel self startfail loudly with the same restart guidance instead of only saying the daemon is already runningWhy
A real tmux mixed-provider YATU exposed a stale daemon process still serving older imports after code changed. Restarting the daemon fixed wake delivery immediately. The runtime should surface that condition directly instead of making terminal wake look broken.
Verification
uv run pytest tests/test_cli_self.py::test_self_status_reports_daemon_restart_needed_on_runtime_drift tests/test_cli_self.py::test_self_start_points_at_restart_when_running_daemon_drifted -quv run pytest tests/test_cli_self.py tests/test_daemon_ipc.py tests/test_daemon_wake.py tests/test_daemon_surfaces.py tests/test_provider_hooks.py -quv run pytest -quv run ruff check packages/mycel-cli/src/mycel_cli/daemon/runtime_identity.py packages/mycel-cli/src/mycel_cli/self_cli.py packages/mycel-cli/src/mycel_cli/group/_cli/spawn.py tests/test_cli_self.pyuv run ruff format --check packages/mycel-cli/src/mycel_cli/daemon/runtime_identity.py packages/mycel-cli/src/mycel_cli/self_cli.py packages/mycel-cli/src/mycel_cli/group/_cli/spawn.py tests/test_cli_self.pyMYCEL_HOMEsmoke:uv run cel self start,uv run cel self status,uv run cel self stop