@dmsdc-ai/aigentry-telepty 0.1.30 → 0.1.31

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 +4 -3
  2. package/package.json +1 -1
package/daemon.js CHANGED
@@ -426,9 +426,9 @@ function sendViaKitty(sessionId, text) {
426
426
  if (!socket) return false;
427
427
 
428
428
  try {
429
- // Match by tab title containing session ID
429
+ // Match by cmdline containing session ID (works even when CLI overwrites tab title)
430
430
  const escaped = text.replace(/\\/g, '\\\\').replace(/'/g, "'\\''");
431
- execSync(`kitty @ --to unix:${socket} send-text --match title:${sessionId} '${escaped}'`, {
431
+ execSync(`kitty @ --to unix:${socket} send-text --match cmdline:${sessionId} '${escaped}'`, {
432
432
  timeout: 3000, stdio: ['pipe', 'pipe', 'pipe']
433
433
  });
434
434
  console.log(`[KITTY] Sent ${text.length} chars to ${sessionId}`);
@@ -1045,7 +1045,8 @@ wss.on('connection', (ws, req) => {
1045
1045
  };
1046
1046
  sessions[sessionId] = autoSession;
1047
1047
  console.log(`[WS] Auto-registered wrapped session ${sessionId} on reconnect`);
1048
- // Skip to message/close handlers below (ownerWs already set)
1048
+ // Trigger CLI redraw via kitty Ctrl+L after short delay
1049
+ setTimeout(() => sendViaKitty(sessionId, '\x0c'), 1000);
1049
1050
  } else {
1050
1051
  session.clients.add(ws);
1051
1052
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dmsdc-ai/aigentry-telepty",
3
- "version": "0.1.30",
3
+ "version": "0.1.31",
4
4
  "main": "daemon.js",
5
5
  "bin": {
6
6
  "aigentry-telepty": "install.js",