tabminal 1.3.9 → 1.3.10

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/package.json +1 -1
  2. package/public/app.js +8 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabminal",
3
- "version": "1.3.9",
3
+ "version": "1.3.10",
4
4
  "description": "A modern, persistent web terminal with multi-tab support and real-time system monitoring.",
5
5
  "type": "module",
6
6
  "bin": {
package/public/app.js CHANGED
@@ -347,12 +347,17 @@ class ServerClient {
347
347
  handleUnauthorized(message = '') {
348
348
  this.needsAccessLogin = false;
349
349
  this.accessLoginUrl = '';
350
- this.clearAuth();
351
- setStatus(this, 'reconnecting');
352
- renderServerControls();
353
350
  if (this.isPrimary) {
351
+ this.clearAuth();
352
+ setStatus(this, 'reconnecting');
353
+ renderServerControls();
354
354
  auth.showLoginModal(message || 'Authentication required.');
355
355
  } else {
356
+ // Keep sub-host token untouched; only stop sync and require manual reconnect.
357
+ this.stopHeartbeat();
358
+ this.nextSyncAt = 0;
359
+ setStatus(this, 'reconnecting');
360
+ renderServerControls();
356
361
  alert(`${getDisplayHost(this)} needs login.`, {
357
362
  type: 'warning',
358
363
  title: 'Host'