Skip to content

test: cover doctor launchctl env overrides - #1037

Merged
steipete merged 2 commits into
mainfrom
test/doctor-launchctl-env-overrides
Jan 16, 2026
Merged

steipete merged 2 commits into
mainfrom
test/doctor-launchctl-env-overrides

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Adds a cross-platform unit test for the macOS launchctl getenv override warning path in clawdbot doctor by dependency-injecting platform/getenv/note.

Local:

  • pnpm format:fix
  • pnpm test src/commands/doctor-platform-notes.launchctl-env-overrides.test.ts
  • pnpm lint
  • pnpm build

@cursor

cursor Bot commented Jan 16, 2026 •

Copy link
Copy Markdown

PR Summary

Adds test coverage for macOS launchctl env override warnings and refactors for testability.

  • New doctor-platform-notes.launchctl-env-overrides.test.ts validates messages, unsetenv instructions, and no-op cases (no creds, non-darwin)
  • noteMacLaunchctlGatewayEnvOverrides updated to accept injected platform, getenv, and noteFn; uses injected deps instead of globals while preserving behavior

Written by Cursor Bugbot for commit 2fc2c86. This will update automatically on new commits. Configure here.

@steipete
steipete merged commit 33d1795 into main Jan 16, 2026
@steipete
steipete deleted the test/doctor-launchctl-env-overrides branch January 16, 2026 19:40
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Merge commit: 33d1795

lovewanwan pushed a commit to lovewanwan/openclaw that referenced this pull request Apr 28, 2026
* test: cover doctor launchctl env overrides

* style(macos): fix swiftformat lint
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 9, 2026
* test: cover doctor launchctl env overrides

* style(macos): fix swiftformat lint
zeekay pushed a commit to Dream-AI-4444/bot that referenced this pull request Sep 11, 2026
* test: cover doctor launchctl env overrides

* style(macos): fix swiftformat lint
lhfer pushed a commit to lhfer/openclaw that referenced this pull request Oct 11, 2026
* test: cover doctor launchctl env overrides

* style(macos): fix swiftformat lint
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.

1 participant