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.
Files changed (2) hide show
  1. package/dist/index.js +3 -7
  2. 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
- // #7: NaN guard on pty_resizeremote resize only if local hasn't resized recently
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
- const cols = Number(msg.cols);
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cli-tunnel",
3
- "version": "1.3.1-beta.4",
3
+ "version": "1.3.1-beta.5",
4
4
  "description": "Tunnel any CLI app to your phone — PTY + devtunnel + xterm.js",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",