@wendongfly/myhi 1.3.202 → 1.3.203

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/lib/attn.js CHANGED
@@ -5,13 +5,15 @@
5
5
  // 「看过」记在本机 localStorage(myhi_seen:{会话id: 毫秒}),不跨设备同步——手机上看过不代表电脑上看过。
6
6
  (function () {
7
7
  const KEY = 'myhi_seen';
8
- let seen = null;
8
+ let seen = null, raw = null;
9
+ // 每次都看一眼 localStorage:工作台里「看过」是右侧会话页(iframe)写的,左侧列表若只在加载时读一次,
10
+ // 就一直拿旧值 → 正开着的任务也显示「新完成」。内容没变就不重新 parse
9
11
  function load() {
10
- if (seen) return seen;
11
- try { seen = JSON.parse(localStorage.getItem(KEY) || 'null'); } catch { seen = null; }
12
+ let r = null; try { r = localStorage.getItem(KEY); } catch {}
13
+ if (r !== raw) { raw = r; try { seen = JSON.parse(r || 'null'); } catch { seen = null; } }
12
14
  return seen;
13
15
  }
14
- function save() { try { localStorage.setItem(KEY, JSON.stringify(seen)); } catch {} }
16
+ function save() { try { raw = JSON.stringify(seen); localStorage.setItem(KEY, raw); } catch {} }
15
17
  const ts = (s) => {
16
18
  const v = s.lastActivityAt || 0;
17
19
  return typeof v === 'number' ? v : (new Date(v).getTime() || 0);
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wendongfly/myhi",
3
- "version": "1.3.202",
3
+ "version": "1.3.203",
4
4
  "description": "Web-based terminal sharing with chat UI — control your terminal from phone via LAN/Tailscale",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",