@dmsdc-ai/aigentry-telepty 0.1.92 → 0.1.94

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.
Files changed (2) hide show
  1. package/daemon.js +6 -2
  2. package/package.json +1 -1
package/daemon.js CHANGED
@@ -584,8 +584,12 @@ async function deliverInjectionToSession(id, session, prompt, options = {}) {
584
584
  mailboxNotifier.notify(id);
585
585
  }
586
586
 
587
- // Trigger immediate delivery tick for low-latency
588
- mailboxDelivery.tick().catch(() => {});
587
+ // Deliver synchronously ensures text is written before inject returns success.
588
+ // Mailbox gives us persistence/retry, but the initial delivery must complete
589
+ // before the HTTP response so --submit timing and CR delivery are reliable.
590
+ try {
591
+ await mailboxDelivery.tick();
592
+ } catch {}
589
593
 
590
594
  session.lastActivityAt = new Date(now).toISOString();
591
595
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dmsdc-ai/aigentry-telepty",
3
- "version": "0.1.92",
3
+ "version": "0.1.94",
4
4
  "main": "daemon.js",
5
5
  "bin": {
6
6
  "aigentry-telepty": "install.js",