@adhdev/daemon-core 0.6.63 → 0.6.67

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": "@adhdev/daemon-core",
3
- "version": "0.6.63",
3
+ "version": "0.6.67",
4
4
  "description": "ADHDev daemon core — CDP, IDE detection, providers, command execution",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -2210,9 +2210,9 @@ export class DevServer {
2210
2210
 
2211
2211
  approvalBuffer = (approvalBuffer + cleanData).slice(-1500);
2212
2212
 
2213
- // Force exit on completion signal (ignore during first 15s prompt echo contains the token)
2213
+ // Force exit on completion signal (check cleanData directly to avoid stale buffer echo matches)
2214
2214
  const elapsed = Date.now() - spawnedAt;
2215
- if (elapsed > 15000 && approvalBuffer.includes('_PIPELINE_COMPLETE_SIGNAL_')) {
2215
+ if (elapsed > 15000 && cleanData.includes('_PIPELINE_COMPLETE_SIGNAL_')) {
2216
2216
  this.log(`Agent finished task after ${Math.round(elapsed/1000)}s. Terminating interactive CLI session to unblock pipeline.`);
2217
2217
  this.sendAutoImplSSE({ event: 'output', data: { chunk: `\n[🤖 ADHDev Pipeline] Completion token detected. Proceeding...\n`, stream: 'stdout' } });
2218
2218
  approvalBuffer = '';