Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@bjesuiter
Copy link
Contributor

@bjesuiter bjesuiter commented Jan 15, 2026

Reason for this

FIX: Bug where clawdbot doctor did not get passed the CLAWDBOT_PROFILE env correctly
due to my earlier "profile" param refactoring here: #671
merged in this commit: 77cf40d

DOCS: Improve docs around multi-gateway usage and setup

Summary

  • Refactors daemon service interfaces to consistently use { env } parameter instead of separate { profile } parameters
  • Profile is extracted from env.CLAWDBOT_PROFILE internally, ensuring consistent label resolution across launchd, systemd, and schtasks
  • Adds comprehensive test coverage for profile-aware label resolution (whitespace trimming, case-insensitive "default" handling)
  • Updates documentation with consistent "rescue bot" terminology for multi-gateway setups

Changes

  • API simplification: isLoaded, stop, restart methods now take { env } instead of { profile }
  • Test coverage: Added tests for launchd, systemd, and schtasks profile handling
  • Documentation: Unified rescue-bot pattern docs across 9 files

Testing

  • All daemon tests pass
  • Build passes

@steipete
Copy link
Contributor

Wow. Benjamin . This... is the FIRST PR where codex didn't find anything to criticise. Kudos.

@steipete steipete self-assigned this Jan 15, 2026
@steipete steipete force-pushed the fix/launchd-label-resolution branch from ae01d35 to 2b113c4 Compare January 15, 2026 22:12
@steipete steipete merged commit bf90815 into openclaw:main Jan 15, 2026
@steipete
Copy link
Contributor

Landed via temp rebase onto main.

  • Gate: pnpm lint && pnpm build && pnpm test
  • Land commit: 2b113c4
  • Merge commit: bf90815

Thanks @bjesuiter!

@bjesuiter
Copy link
Contributor Author

Thank you for the kudos, really appreciate that! Went over it a few times with opus and codex and fixed things, so yeah, it's nice that the engineering effort still shows and is appreciated, even in the age of ai 🥰

Also, thank you for merging so quickly, now I can sleep better, knowing that my blunder bug with the first pr is gone 😂✨

cpojer pushed a commit to cpojer/clawdbot that referenced this pull request Jan 16, 2026
@bjesuiter bjesuiter deleted the fix/launchd-label-resolution branch January 20, 2026 16:37
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.

2 participants