Skip to content

fix(onboard): remote setup no longer enables local hooks - #130292

Merged
steipete merged 1 commit into
mainfrom
codex/onboarding-remote-no-local-hook
Aug 26, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/onboarding-remote-no-local-hook

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where users running non-interactive remote onboarding would have the local session-memory internal hook enabled even though remote mode only configures a connection to an existing Gateway.

Why This Change Was Made

Remote onboarding no longer invokes the local default-hook policy. Existing user-authored hook configuration is still preserved through the base config, while classic and non-interactive local onboarding keep their existing default behavior.

User Impact

Remote onboarding remains connection-only and no longer introduces local hook behavior. Rerunning remote onboarding does not overwrite authored hook settings.

Evidence

  • Before the source change, src/commands/onboard-non-interactive.gateway.test.ts failed the new regression because fresh remote setup wrote hooks.internal.entries.session-memory.enabled=true.
  • node scripts/run-vitest.mjs src/commands/onboard-non-interactive.gateway.test.ts src/commands/onboard-non-interactive/remote.test.ts — 38 tests passed on exact head 9627166a22f368e6bea50764519c421b76d229be.
  • node scripts/check-changed.mjs -- src/commands/onboard-non-interactive/remote.ts src/commands/onboard-non-interactive.gateway.test.ts — complete changed gate passed.
  • Autoreview on the exact branch diff: no accepted/actionable findings, correctness 0.98.
  • Targeted duplicate search found no open issue or PR for remote onboarding enabling local internal hooks.

AI-assisted change; implementation and validation were reviewed end to end.

@clawsweeper

clawsweeper Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added commands Command implementations size: XS labels Aug 26, 2026
@steipete
steipete marked this pull request as ready for review August 26, 2026 18:27
@openclaw-barnacle openclaw-barnacle Bot added the maintainer Maintainer-authored PR label Aug 26, 2026

Copy link
Copy Markdown
Contributor Author

Land-ready proof for exact head 9627166a22f368e6bea50764519c421b76d229be:

  • Pre-fix regression reproduced: fresh remote onboarding wrote hooks.internal.entries.session-memory.enabled=true; the new assertion failed for that exact reason.
  • node scripts/run-vitest.mjs src/commands/onboard-non-interactive.gateway.test.ts src/commands/onboard-non-interactive/remote.test.ts — 38 passed.
  • node scripts/check-changed.mjs -- src/commands/onboard-non-interactive/remote.ts src/commands/onboard-non-interactive.gateway.test.ts — passed.
  • Exact-head autoreview — clean, no accepted/actionable findings, 0.98 correctness.
  • Exact-head CI run 32999804025 — green, including openclaw/ci-gate.
  • Native review artifacts — READY FOR /prepare-pr, zero findings; OPENCLAW_TESTBOX=1 scripts/pr prepare-run 130292 passed.

The change is net-negative production code (+0/-4) and keeps both local onboarding owners unchanged. No provider, external service, or visual proof is applicable; the integration test exercises the real non-interactive setup/config ownership boundary. ClawSweeper's latest comment is still the in-progress placeholder and lists no rank-up moves.

@steipete
steipete merged commit d27d822 into main Aug 26, 2026
199 of 200 checks passed
@steipete
steipete deleted the codex/onboarding-remote-no-local-hook branch August 26, 2026 18:40

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commands Command implementations maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants