t1480: fix pulse sessions overlapping — run wrapper from repo path (GH#4513)#4532
t1480: fix pulse sessions overlapping — run wrapper from repo path (GH#4513)#4532alex-solovyev wants to merge 1 commit intomainfrom
Conversation
…nt gap (GH#4513) The cron/launchd entry previously pointed to the deployed copy at ~/.aidevops/agents/scripts/pulse-wrapper.sh, which is only updated when setup.sh runs. This caused a deployment gap where fixes merged to main (like the flock guard from GH#4409) were not effective until the next manual setup.sh run — resulting in 6 concurrent pulse sessions despite the fix being in the repo. Change the wrapper_script path to use the repo version directly ($PULSE_DIR/.agents/scripts/pulse-wrapper.sh). The canonical repo directory is always on main per the worktree-first workflow, so the repo version is always the latest merged code. Closes #4513
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Caution Review failedPull request was closed or merged during review WalkthroughUpdates pulse-wrapper.sh invocation documentation and modifies setup.sh to reference the repo worktree version of the wrapper script directly, bypassing the deployed copy. This enables immediate application of pulse fixes post-merge without requiring setup.sh re-execution. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
~/.aidevops/agents/scripts/pulse-wrapper.shinstead of the repo version. Fixes merged to main (like the flock guard from GH#4409/t1478) were not effective until the nextsetup.shrun, creating a deployment gap that allowed 6 concurrent pulse sessions.wrapper_scriptinsetup.shto point to${_pulse_repo_dir}/.agents/scripts/pulse-wrapper.sh(the repo version). Since the canonical repo directory is always onmainper the worktree-first workflow, this ensures fixes are immediately effective after merge../setup.shonce to update the cron entry to use the new repo path. Future fixes will be effective immediately without needingsetup.sh.Changes
setup.shwrapper_scriptfrom deployed path to repo path; updated guard comment.agents/scripts/pulse-wrapper.shVerification
shellcheck setup.sh— zero violationsshellcheck .agents/scripts/pulse-wrapper.sh— zero violationsCloses #4513
Summary by CodeRabbit