@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.
- package/daemon.js +6 -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
|
-
//
|
|
588
|
-
|
|
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 {
|