@openagents-org/agent-launcher 0.2.27 → 0.2.28
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/package.json +1 -1
- package/src/adapters/openclaw.js +4 -2
package/package.json
CHANGED
package/src/adapters/openclaw.js
CHANGED
|
@@ -235,9 +235,11 @@ class OpenClawAdapter extends BaseAdapter {
|
|
|
235
235
|
try { pty = require('node-pty'); } catch {}
|
|
236
236
|
|
|
237
237
|
if (pty) {
|
|
238
|
-
|
|
238
|
+
// On Windows, .cmd files can't be spawned directly by pty — use cmd.exe
|
|
239
|
+
const ptyBin = IS_WINDOWS ? (process.env.COMSPEC || 'cmd.exe') : binary;
|
|
240
|
+
const ptyArgs = IS_WINDOWS ? ['/C', binary, ...args] : args;
|
|
239
241
|
this._log('Spawn: node-pty (line-buffered)');
|
|
240
|
-
const proc = pty.spawn(
|
|
242
|
+
const proc = pty.spawn(ptyBin, ptyArgs, {
|
|
241
243
|
name: 'xterm',
|
|
242
244
|
cols: 200,
|
|
243
245
|
rows: 50,
|