Skip to content

fix(watch): pin scheduled entry to an absolute, stable devflow launcher - #88

Merged
AndreJorgeLopes merged 1 commit into
mainfrom
fix/watch-absolute-launcher
Jul 30, 2026
Merged

fix(watch): pin scheduled entry to an absolute, stable devflow launcher#88
AndreJorgeLopes merged 1 commit into
mainfrom
fix/watch-absolute-launcher

Conversation

@AndreJorgeLopes

Copy link
Copy Markdown
Owner

TL;DR

Follow-up to #84/#87. command -v devflow can return a relative path (./bin/devflow) when PATH has a relative entry, so devflow watch setup wrote a launchd plist / cron entry whose target resolved against the working directory (the source checkout) instead of the stable installed launcher — defeating the survives-auto-reinstall property (and pinning to possibly-dirty source).

Fix

New _devflow_launcher returns an absolute, stable target: the copy-install BINDIR launcher derived from DEVFLOW_ROOT (<prefix>/share/devflow -> <prefix>/bin/devflow), else an absolutized command -v result. _watch_setup uses it for the launchd ProgramArguments/PATH and the cron entry.

Verification

  • _devflow_launcher derives the BINDIR launcher from DEVFLOW_ROOT and always returns absolute. watch.bats 34/34.
  • Live: your machine's plist was regenerated with the absolute ~/.local/bin/devflow (ProgramArguments + PATH), and _detect_install_mode returns install under launchd's minimal PATH.

Builds on v0.27.1.

🤖 Generated with Claude Code

command -v devflow can return a RELATIVE path (./bin/devflow) when PATH has a relative
entry, so devflow watch setup wrote a launchd plist / cron entry whose target resolved
against the working directory (the source checkout) instead of the stable installed
launcher - defeating the survives-auto-reinstall property. New _devflow_launcher resolves
an absolute, stable target: the copy-install BINDIR launcher derived from DEVFLOW_ROOT,
else an absolutized command -v result. _watch_setup uses it for the launchd
ProgramArguments/PATH and the cron entry. watch.bats 34/34. Follow-up to #84/#87.
Copilot AI review requested due to automatic review settings July 28, 2026 19:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@AndreJorgeLopes
AndreJorgeLopes merged commit 4a1eef1 into main Jul 30, 2026
1 check passed
@AndreJorgeLopes
AndreJorgeLopes deleted the fix/watch-absolute-launcher branch July 30, 2026 17:44
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