@openagents-org/agent-launcher 0.2.3 → 0.2.4

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openagents-org/agent-launcher",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "OpenAgents Launcher — install, configure, and run AI coding agents from your terminal",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -356,6 +356,7 @@ class ClaudeAdapter extends BaseAdapter {
356
356
  let hasToolUseSinceLastText = false;
357
357
  let postedThinking = false;
358
358
  let stderrBuf = '';
359
+ let lineBuffer = '';
359
360
 
360
361
  // Capture stderr for diagnostics
361
362
  if (proc.stderr) {
@@ -450,7 +451,7 @@ class ClaudeAdapter extends BaseAdapter {
450
451
  if (timeoutTimer) clearInterval(timeoutTimer);
451
452
 
452
453
  // Process remaining buffer
453
- const lines = buffer.split('\n');
454
+ const lines = lineBuffer.split('\n');
454
455
  for (const line of lines) {
455
456
  try { await processLine(line); } catch {}
456
457
  }
@@ -481,7 +482,6 @@ class ClaudeAdapter extends BaseAdapter {
481
482
  });
482
483
 
483
484
  // Process lines as they arrive
484
- let lineBuffer = '';
485
485
  proc.stdout.on('data', (chunk) => {
486
486
  lineBuffer += chunk.toString('utf-8');
487
487
  resetTimeout();
@@ -491,8 +491,6 @@ class ClaudeAdapter extends BaseAdapter {
491
491
  processLine(line).catch(() => {});
492
492
  }
493
493
  });
494
- // Override buffer since we're processing in real time
495
- buffer = '';
496
494
  });
497
495
  } catch (e) {
498
496
  this._log(`Error handling message: ${e.message}`);