Skip to content

cast start starts no daemon on a messaging-only machine - #470

Merged
ashot merged 1 commit into
mainfrom
fix/messaging-only-start
Dec 5, 2026
Merged

ashot merged 1 commit into
mainfrom
fix/messaging-only-start

Conversation

@ashot

@ashot ashot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

Fixes #469.

Re-running codecast.sh/install on a signed-in machine runs codecast start. Nothing on that path checked messaging_only, so the full daemon started and its autostart unit (systemd or launchd) was written again, next to cast relay.

  • startDaemon returns with a message when messaging_only is set. cast start, cast restart and the installer all go through it.
  • ensureAutostart writes no unit on a messaging-only machine.
  • cast start exits 1 there, as it already does on native Windows, so a script can tell nothing started. The installer runs it with || true, so the install still finishes and prints the reason.

messagingOnlyStart.cli.test.ts runs cast start against a temp HOME with messaging_only: true. It checks that the command prints the reason, exits 1, and leaves no pid file, no systemd unit and no LaunchAgent. Without the fix it prints "Daemon started" and fails.

@ashot
ashot merged commit f897056 into main Dec 5, 2026
21 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.

codecast.sh/install starts and re-enables the full daemon on a messaging_only machine

1 participant