overlord-cli 0.2605310708.0 → 0.2605311843.0

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.
@@ -275,11 +275,21 @@ function spawnLaunchProcess(args, claim, deviceFingerprint) {
275
275
  runnerTestHooks.platform ?? process.platform
276
276
  );
277
277
 
278
+ // Phase 4: thread the execution request id to the launched process so the
279
+ // agent's `ovld protocol attach` can mark this exact request `launched`.
280
+ // Attach falls back to matching by objective when this is absent, so this is
281
+ // a precision aid, not a correctness requirement.
282
+ const launchEnv = {
283
+ ...process.env,
284
+ OVERLORD_DEVICE_FINGERPRINT: deviceFingerprint,
285
+ ...(claim.request?.id ? { OVERLORD_EXECUTION_REQUEST_ID: claim.request.id } : {})
286
+ };
287
+
278
288
  if (!terminalCommand) {
279
289
  return {
280
290
  child: spawnImpl(process.execPath, [OVLD_ENTRY, ...args], {
281
291
  stdio: 'inherit',
282
- env: { ...process.env, OVERLORD_DEVICE_FINGERPRINT: deviceFingerprint }
292
+ env: launchEnv
283
293
  }),
284
294
  completeOnClose: false
285
295
  };
@@ -288,7 +298,7 @@ function spawnLaunchProcess(args, claim, deviceFingerprint) {
288
298
  return {
289
299
  child: spawnImpl('sh', ['-lc', terminalCommand], {
290
300
  stdio: 'inherit',
291
- env: { ...process.env, OVERLORD_DEVICE_FINGERPRINT: deviceFingerprint }
301
+ env: launchEnv
292
302
  }),
293
303
  completeOnClose: true
294
304
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "overlord-cli",
3
- "version": "0.2605310708.0",
3
+ "version": "0.2605311843.0",
4
4
  "description": "Overlord CLI — launch AI agents on tickets from anywhere",
5
5
  "homepage": "https://www.ovld.ai/docs/",
6
6
  "type": "module",