infinicode 2.8.17 → 2.8.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/robopark/setup.js +8 -1
- package/package.json +1 -1
package/dist/robopark/setup.js
CHANGED
|
@@ -160,7 +160,14 @@ async function setupRobot(config, opts, ctx, internal) {
|
|
|
160
160
|
'--auto-update',
|
|
161
161
|
'--supervised',
|
|
162
162
|
];
|
|
163
|
-
|
|
163
|
+
// Derive the scheduler host from the SAME hubUrl used for the mesh seed
|
|
164
|
+
// (respects an explicit --hub-url), not from ctx.hub — using auto-discovery
|
|
165
|
+
// here independently of the mesh seed meant an explicit --hub-url only
|
|
166
|
+
// repointed the mesh connection while the scheduler (enroll/heartbeat/
|
|
167
|
+
// preview-agent) silently kept talking to whatever hub auto-discovery
|
|
168
|
+
// found (e.g. a real hub reachable over Tailscale), not the one requested.
|
|
169
|
+
const hubHost = new URL(hubUrl).hostname;
|
|
170
|
+
const schedulerUrl = `http://${hubHost}:${opts.schedulerPort ? parseInt(opts.schedulerPort, 10) : DEFAULT_SCHEDULER_PORT}`;
|
|
164
171
|
const previewAgentArgs = [
|
|
165
172
|
'preview-agent',
|
|
166
173
|
'--scheduler-url', schedulerUrl,
|
package/package.json
CHANGED