cli-tunnel 1.3.1-beta.4 → 1.3.1-beta.5
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/dist/index.js +3 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -551,14 +551,10 @@ wss.on('connection', (ws, req) => {
|
|
|
551
551
|
ptyProcess.write(msg.data);
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
|
-
//
|
|
554
|
+
// pty_resize from remote clients is ignored — PTY stays at local terminal size
|
|
555
|
+
// The phone's xterm.js handles display via its own viewport/scrolling
|
|
555
556
|
if (msg.type === 'pty_resize') {
|
|
556
|
-
|
|
557
|
-
const rows = Number(msg.rows);
|
|
558
|
-
const localRecentlyResized = Date.now() - localResizeAt < 2000;
|
|
559
|
-
if (Number.isFinite(cols) && Number.isFinite(rows) && ptyProcess && !localRecentlyResized) {
|
|
560
|
-
ptyProcess.resize(Math.max(1, Math.min(500, cols)), Math.max(1, Math.min(200, rows)));
|
|
561
|
-
}
|
|
557
|
+
// Only log, don't resize — prevents breaking local terminal layout
|
|
562
558
|
}
|
|
563
559
|
}
|
|
564
560
|
catch {
|