Repository navigation
mcpx: effect probe for daemon.autostart (#8468 chain 2) - #11772
Conversation
Moves daemon.autostart from EffectExemptions to EffectProbes with TestDaemonAutostartIsReachableFromTheEnvironment: with autostart off and no daemon, ls refuses naming the disabled rung and leaves no socket; at the default it starts a daemon and leaves its socket. EffectExemptionPin ratchets 194 -> 193 and the feature_coverage exemption line is deleted. Full e2e guard still reports 5 pre-existing ledger violations unrelated to this change (cli cache, cli want, op apis_remove, op plugin_session_close, setting script.language), so the full suite is not green.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 50 minutes. View limit details
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. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 66ad83e165
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| // appears; at the default, `ls` succeeds and leaves a socket. | ||
| func TestDaemonAutostartIsReachableFromTheEnvironment(t *testing.T) { | ||
| socketsIn := func(e *env) []string { | ||
| socks, _ := filepath.Glob(filepath.Join(e.dir, "state", "*.sock")) |
There was a problem hiding this comment.
Resolve the actual daemon socket instead of globbing state
When the temporary directory is long, such as with macOS's default TMPDIR or a Nix sandbox, daemon.socketPath relocates sockets outside the state directory once their preferred path exceeds 100 bytes (internal/daemon/paths.go). Consequently, on.run("ls") successfully starts a daemon, but this glob returns nothing and the new probe fails despite correct behavior. The existing harness already handles this relocation by consulting daemon info records during cleanup. Resolve the recorded socket here rather than assuming it remains under state.
Useful? React with 👍 / 👎.
Summary
daemon.autostart=falseprevents implicit daemon startup and the default starts it.daemon.autostartexemption and lower the exemption pin.Verification
go test ./internal/e2e -run TestDaemonAutostartIsReachableFromTheEnvironment -count=1go test ./internal/e2e -count=1is running locally.Part of #8468 (chain 2 of 23).
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.