feat(supervisor): allow disabling client auto-start - #678
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Central YAML (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughAdds ChangesSupervisor auto-start control
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant Client
participant IpcClient
participant Settings
participant Supervisor
Client->>IpcClient: Request connection
IpcClient->>Settings: Read supervisor.auto_start
alt Enabled
IpcClient->>Supervisor: Start if not running
Supervisor-->>IpcClient: Connection available
else Disabled
IpcClient-->>Client: Return actionable connection error
end
Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
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 |
Greptile SummaryAdds an opt-out for automatic supervisor startup while preserving explicit supervisor commands.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains. Important Files Changed
Reviews (3): Last reviewed commit: "Merge branch 'main' into agent/add-super..." | Re-trigger Greptile |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/guides/boot-start.md`:
- Around line 83-91: Update the global configuration example in “Prevent
fallback supervisor starts” to use the top-level [supervisor] table instead of
the project-specific [settings.supervisor] namespace, while preserving
auto_start = false.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Central YAML (base), Organization UI (inherited)
Review profile: CHILL
Plan: Pro Plus
Run ID: dac1423a-fa81-4d0d-a580-20102661d245
📒 Files selected for processing (9)
docs/guides/boot-start.mddocs/public/schema.jsondocs/reference/environment-vars.mdsettings.tomlsrc/cli/settings.rssrc/ipc/client.rssrc/settings.rstest/errors.batstest/settings.bats
Summary
supervisor.auto_startwith a backwards-compatible default oftrueRoot cause
Clients currently call
start_if_not_running()before connecting to IPC. Duringsystem startup, a shell hook or another client can therefore spawn an unmanaged
supervisor before a systemd- or launchd-managed instance is ready. The unmanaged
process then wins ownership of the supervisor state and socket but lacks any
capabilities configured on the service.
Validation
mise run ci-devSummary by CodeRabbit
settings.supervisor.auto_startoption to control whether client commands automatically start the supervisor.PITCHFORK_SUPERVISOR_AUTO_STARTsupport for configuring this behavior via environment variable.