@dmsdc-ai/aigentry-telepty 0.1.60 → 0.1.61
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/cli.js +2 -8
- package/daemon.js +1 -2
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -780,14 +780,8 @@ async function main() {
|
|
|
780
780
|
|
|
781
781
|
daemonWs.on('open', () => {
|
|
782
782
|
wsReady = true;
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
// Force CLI redraw by triggering SIGWINCH (resize +1/-1)
|
|
786
|
-
const origCols = child.cols || process.stdout.columns || 80;
|
|
787
|
-
const origRows = child.rows || process.stdout.rows || 30;
|
|
788
|
-
child.resize(origCols - 1, origRows);
|
|
789
|
-
setTimeout(() => child.resize(origCols, origRows), 150);
|
|
790
|
-
}
|
|
783
|
+
// No resize trick on reconnect — it causes visible flickering across all
|
|
784
|
+
// terminals when the daemon restarts and multiple sessions reconnect at once.
|
|
791
785
|
reconnectAttempts = 0;
|
|
792
786
|
});
|
|
793
787
|
|
package/daemon.js
CHANGED
|
@@ -1389,9 +1389,8 @@ wss.on('connection', (ws, req) => {
|
|
|
1389
1389
|
};
|
|
1390
1390
|
sessions[sessionId] = autoSession;
|
|
1391
1391
|
console.log(`[WS] Auto-registered wrapped session ${sessionId} on reconnect`);
|
|
1392
|
-
//
|
|
1392
|
+
// Set tab title via kitty (no \x0c redraw — it causes flickering on multi-session reconnect)
|
|
1393
1393
|
setTimeout(() => {
|
|
1394
|
-
sendViaKitty(sessionId, '\x0c');
|
|
1395
1394
|
const sock = findKittySocket();
|
|
1396
1395
|
const wid = findKittyWindowId(sock, sessionId);
|
|
1397
1396
|
if (sock && wid) {
|