@dmsdc-ai/aigentry-telepty 0.1.33 → 0.1.34
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 +7 -6
- package/package.json +1 -1
package/daemon.js
CHANGED
|
@@ -429,12 +429,13 @@ function findKittyWindowId(socket, sessionId) {
|
|
|
429
429
|
for (const osw of data) {
|
|
430
430
|
for (const tab of osw.tabs) {
|
|
431
431
|
for (const w of tab.windows) {
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
432
|
+
// Only check process cmdlines for --id SESSION_ID pattern (not output text)
|
|
433
|
+
for (const p of (w.foreground_processes || [])) {
|
|
434
|
+
const cmd = (p.cmdline || []).join(' ');
|
|
435
|
+
if (cmd.includes('--id ' + sessionId) || cmd.includes('--id=' + sessionId)) {
|
|
436
|
+
return w.id;
|
|
437
|
+
}
|
|
438
|
+
}
|
|
438
439
|
}
|
|
439
440
|
}
|
|
440
441
|
}
|