clavarium 0.2.147-beta.1 → 0.2.148-beta.1

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.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "clavarium",
3
- "version": "0.2.147-beta.1",
3
+ "version": "0.2.148-beta.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "clavarium",
9
- "version": "0.2.147-beta.1",
9
+ "version": "0.2.148-beta.1",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@xterm/addon-fit": "^0.11.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clavarium",
3
- "version": "0.2.147-beta.1",
3
+ "version": "0.2.148-beta.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "A conversation is a VM with a terminal in it. Everything else is a folder.",
package/web/app.js CHANGED
@@ -2379,13 +2379,17 @@
2379
2379
  /* Nothing over the screen to say it under: a long wait still says so. */
2380
2380
  /* The neutral word of a load is not a place to list troubles either, until the wait is long. */
2381
2381
  const quiet = notice.hidden || Boolean(notice.dataset.loading);
2382
+ /* The chat (or any tab but the terminal) in front: a terminal slow to come back -- often only this page
2383
+ reconnecting after an update -- is not put over it (03-11); it comes back by itself, behind. */
2384
+ if (tabNow() !== 'terminal' && !['warn', 'bad'].includes(record?.level)) { if (notice.dataset.loading || /terminal/i.test($('notice-text').textContent)) notice.hidden = true; return; }
2382
2385
  if (quiet && !long) return;
2383
- if (quiet) show('Its terminal still does not come.');
2386
+ if (quiet) show(record && record.level !== 'bad' && record.level !== 'warn' ? 'Reconnecting to its terminal\u2026' : 'Its terminal still does not come.');
2384
2387
  /* Waking it is what the page is doing: "it is asleep" would say the opposite. */
2385
2388
  const said = waiting && record ? { ...record, problems: (record.problems ?? []).filter((p) => p.kind !== 'state') } : record;
2386
2389
  const shown = healthLines($('notice-health'), said, { all: true, brief: true });
2387
2390
  $('notice-health').hidden = $('notice-health').childElementCount === 0;
2388
- $('notice-restart').hidden = !(record && (record.level === 'bad' || record.level === 'warn' || long));
2391
+ /* A restart is offered only when its machine is not well: a machine that runs and looks well is not restarted for a slow page (03-11). */
2392
+ $('notice-restart').hidden = !(record && (record.level === 'bad' || record.level === 'warn'));
2389
2393
  $('notice-restart').onclick = () => restartMachine(false);
2390
2394
  const text = $('notice-text').textContent.replace(/ This takes much longer than a start usually does\.$/, '');
2391
2395
  if (long) $('notice-text').textContent = `${text} This takes much longer than a start usually does.`;