@dmsdc-ai/aigentry-telepty 0.1.35 → 0.1.36
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 +3 -1
- package/package.json +1 -1
package/daemon.js
CHANGED
|
@@ -461,10 +461,12 @@ function sendViaKitty(sessionId, text) {
|
|
|
461
461
|
if (textOnly.length > 0) {
|
|
462
462
|
const escaped = textOnly.replace(/\\/g, '\\\\').replace(/'/g, "'\\''");
|
|
463
463
|
execSync(`kitty @ --to unix:${socket} send-text --match id:${windowId} '${escaped}'`, {
|
|
464
|
-
timeout:
|
|
464
|
+
timeout: 5000, stdio: ['pipe', 'pipe', 'pipe']
|
|
465
465
|
});
|
|
466
466
|
}
|
|
467
467
|
if (hasCr) {
|
|
468
|
+
// Delay before sending Return — CLI needs time to process text input
|
|
469
|
+
execSync('sleep 0.5', { timeout: 2000 });
|
|
468
470
|
execSync(`kitty @ --to unix:${socket} send-key --match id:${windowId} Return`, {
|
|
469
471
|
timeout: 3000, stdio: ['pipe', 'pipe', 'pipe']
|
|
470
472
|
});
|