Skip to content

Queue owner: self-spawn through acpx CLI entrypoint#36

Merged
osolmaz merged 2 commits intoopenclaw:mainfrom
osolmaz:fix/queue-owner-main-path
Feb 28, 2026
Merged

Queue owner: self-spawn through acpx CLI entrypoint#36
osolmaz merged 2 commits intoopenclaw:mainfrom
osolmaz:fix/queue-owner-main-path

Conversation

@dutifulbob
Copy link
Contributor

@dutifulbob dutifulbob commented Feb 28, 2026

Summary

Make queue-owner startup reliable by self-spawning through the current acpx CLI entrypoint instead of a separate bundled file path.

Problem

Queue-owner startup depended on resolving queue-owner-main.js from build output paths.
That was fragile across build layouts and packaging, and made startup behavior sensitive to where artifacts landed.

What changed

  • Switched queue-owner startup to run via:
    • <resolved acpx cli path> __queue-owner
  • Added runQueueOwnerFromEnv(...) in a reusable module (src/queue-owner-env.ts).
  • Removed the dedicated queue-owner-main build entrypoint and related legacy parsing path.
  • Added tests for:
    • spawn arg resolution from symlinked CLI paths
    • queue-owner env payload parsing + missing payload errors

Why this is better

  • One entrypoint for CLI + owner startup
  • Less packaging/build coupling
  • Works consistently for global installs, npx, and symlinked bins
  • Smaller surface area (removed duplicate bootstrap code)

Validation

  • npm test

@dutifulbob dutifulbob changed the title Queue owner: resolve bundled queue-owner-main path Queue owner: self-spawn through acpx CLI entrypoint Feb 28, 2026
@osolmaz osolmaz merged commit abf604a into openclaw:main Feb 28, 2026
1 check passed
@osolmaz osolmaz deleted the fix/queue-owner-main-path branch February 28, 2026 21:55
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