@akira-yylm/session-calendar 1.0.4 → 1.1.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,39 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.1.1
4
+
5
+ - **修复:卡片头部的「‹」「›」「今天」「×」偶发点了没反应**。根因有两个:① 悬停高亮只靠 CSS `:hover`,快速划过时浏览器不一定会重绘;② 月份标题作为弹性项占掉了头部约 40% 宽度,那是一段完全不可点的宽区块,鼠标常落在上面。现在悬停改为**按指针实际位置判定**(文档级 `pointermove` + `elementFromPoint`,命中哪个控件就给哪个加 `.sc-hot`,幂等、不依赖 enter/leave 配对),并把月份标题移出控件行。
6
+ - 月份这一行的四个按钮(`‹` `›` `今天` `×`)改成和下面「首次/最近」完全同一套样式:同一个描边轨道(1px 边框 + 6px 圆角 + 5% 墨色底)、内部 2px 间距、按钮 6px 圆角无边框、悬停同为 9% 中性底。
7
+ - **头部重排**:月份标题单独一行居中;下面四个控件(`‹` `›` `今天` `×`)**等分整行**,每个约 76×36px,控件之间只剩 6px 缝,没有大段死区。
8
+ - **「首次 / 最近」切换器改为独立整行**:两格各约 160px 宽、26px 高,取代原来挤在头部右侧的小胶囊。
9
+ - 悬停反馈从宿主的中性色(深色主题下几乎看不见)改为**品牌蓝淡底**,一眼可见。
10
+ - 「今天」不再有 `disabled` 态(之前显示当前月且选中今天时它既无悬停也不响应点击)。
11
+ - 卡片去掉 `backdrop-filter`:它会提升为独立合成层,快速划过时背景变化可能错过那一帧。
12
+ - **选中的日期改用当天配色的底色**:不再是统一的 16% 蓝底,而是铺当天涉及的工作区颜色——单工作区是纯色,多工作区是以**格子中心为圆心**的**角度渐变**(每个工作区占一个扇区),透明度 **50%**(这个数值留作后续调整);没有会话的日子仍是蓝色淡底。选中格里的圆点加了一圈发丝描边,免得同色系底上糊成一片。
13
+ - **日期格彩色边框也改成角度渐变**:多工作区的边框原来是 135° 斜向渐变,现在同样以格子中心为圆心,每个工作区占一个扇区,和选中底色同一套方向。
14
+ - **「今天」的日期数字改用正文色**(深色主题下是白色、浅色主题下是墨色)并加粗,不再用品牌蓝——蓝字压在卡片底色上不好读;「今天」的标记改由日期下方一条品牌蓝下划线承担,有会话的格子也照样能看出来。
15
+ - **新增键盘方向键**:焦点在小窗里时,`←` `→` 选前一天/后一天,`↑` `↓` 选上一周/下一周;跨月会自动翻到对应月份,列表跟着更新。焦点在对话输入框里时不拦截方向键。
16
+
17
+ ## 1.1.0
18
+
19
+ - **日历圆点改为工作区颜色**:某天创建过会话时,日期下方按工作区各画一个 4px 圆点(颜色 = 下方分组的工作区色),同一天几个工作区就几个点;鼠标悬停可直接读到「工作区 · 条数」。
20
+ - **自定义工作区色阶**:改用指定的 8 色(`#FC757B` → `#3C9BC9`),按工作区数量分配:能整除 8 时等距取色(4 个工作区 = 1/3/5/7),不能整除时把色阶重采样到能整除的最小长度并取含两端的均匀色号(3 个工作区 = 1/5/9,第 9 色由两侧端点插值得到)。
21
+ - 分组图标与会话行描边改用同一套工作区颜色(更实的 42% 描边 + 5% 底),不再是主题色轮换。
22
+ - **日期格边框改用工作区颜色**:当天只有 1 个工作区创建会话时是一圈纯色边框;有多个工作区时,边框由这几个工作区的颜色组成一条 135° 渐变色。边框用遮罩环形绘制,圆角不变形。
23
+ - 日期格本身恢复中性描边(没有会话的日子),「今天」用蓝色日期数字标记、「选中」用蓝色底 + 加粗,两者都能和有色边框同时存在,不再互相覆盖。
24
+ - 不属于任何工作区的目录分组用中性灰,固定排在最后。
25
+ - **入口的底色跟着「开关」走**:收起时按钮是**透明底 + 中性细描边**(只留品牌蓝日历图标,悬停铺一层中性底);**打开小窗后**才铺 15% 品牌蓝 + 45% 淡蓝描边,用颜色表示「这扇日历正开着」。细栏里是 36px 图标按钮。
26
+ - 日期格边框、圆点、分组颜色都由当前规则的同一份分组结果算出(不是把「首次对话」的日历照搬过去),所以切换按钮后点的颜色会跟着变。
27
+ - **切换器在小窗里**:卡片顶部月份导航右侧是一枚「首次|最近」分段开关(`aria-pressed`),点它就地重排当天列表与圆点;选择会被记住,下次打开沿用上次的规则。
28
+ - 「最近对话」直接用 DSH 自己的会话摘要 `SessionSummary.updatedAt`(只由 `user/message` 推进,打开会话或命令/状态事件都不影响),因此**不需要宿主参与、也不用重启**;宿主只保留「首次对话」需要的 `startedAt`。
29
+ - **按「第一条消息的时间」归档**:原来用会话对象的 `header.createdAt`,但 DSH 会复用空白会话,11-19 建的空壳可能今天才第一次说话,结果被记到 11-19。现在宿主多返回一个 `startedAt`(日志开头第一条用户消息的时间,读 256 条以内、按会话永久缓存),日历按它分桶与显示时间;拿不到时退回 `createdAt`。本次实测有 5 个会话因此归日变化(例:DSH日历会话浏览插件 11-19 → 11-27,仪器分析理论期末复习重点 11-12 → 11-18)。
30
+ - **点会话不再关闭小窗**:从日历里点开某个会话后,日历保持打开(可以继续点下一条);收起仍然只走原来的四种方式——再点侧栏按钮、点小窗外面、按 Esc、改变窗口大小。
31
+ - 分组标题改为**吸顶**(sticky),滚动时始终能看到自己在哪个工作区;会话行更紧凑(行高 ≈35 → 31px),卡片高度上限 620 → **720px** —— 列表可视区 268 → 368px,目前最忙的一天(7 个会话 / 3 个工作区)已能一屏放下。
32
+ - **小窗高度固定**(= `min(720px, 窗口高 - 24px)`):切换日期时只有下方列表滚动,月历格子的位置不再随「当天有几个会话」变化——之前纵向居中 + 内容自适应高度会让整张卡在换日期时上下伸缩,鼠标要重新找日期。
33
+ - 空状态/加载/错误提示改为在剩余空间里居中显示(列表改成 flex 列,分组不再被压缩)。
34
+ - **小窗纵向居中**:水平仍贴左侧栏右边(按钮右缘 +10px,随窗口宽度收缩),纵向改为在 DSH 窗口内居中(`top/bottom: 0` + 自动外边距,避免 `transform` 干扰卡片的背景模糊),不再跟着按钮的高度、也不会在矮窗口里被推到屏幕外。
35
+ - 小窗整体放大一档,给彩色边框留出呼吸:宽度 320 → **360px**,日期格 30 → **38px**,边框 1 → **1.5px**(圆角 8 → 10px),圆点 4 → 5px,数字 13 → 14px;周标题、月份、行距一并加大,卡片最大高度 560 → 620px。
36
+
3
37
  ## 1.0.4
4
38
 
5
39
  - 发布到 npm:安装方式改为「在 DSH 中安装(推荐)」直接粘贴包名 `@akira-yylm/session-calendar`,升级走插件页的 Update;GitHub 直装保留为备选(固定 40 位 SHA 才可更新,并注明国内网络较慢)。
package/README.en.md CHANGED
@@ -1,18 +1,49 @@
1
1
  # Session calendar
2
2
 
3
+ [![Socket Badge](https://badge.socket.dev/npm/package/@akira-yylm/session-calendar)](https://socket.dev/npm/package/@akira-yylm/session-calendar)
4
+
3
5
  > An unofficial DeepSeek Harness (DSH) plugin. Not affiliated with DeepSeek. 中文 → [README.md](README.md)
4
6
 
5
- Adds a **Session calendar** row just below the **Free session** row in the left sidebar. Clicking it opens a small month calendar beside the sidebar: pick a day, and every session created that day is listed below the grid, grouped by the workspace it belongs to, in the same order as the sidebar. Clicking a row opens that session.
7
+ Adds **one `Session calendar` button** just below the **Free session** row in the left sidebar: **transparent with a neutral hairline** while the calendar is closed (only its calendar mark is brand blue), and a **very light blue wash** (15%, plus a 45% hairline) once the calendar is open — the colour means "this calendar is showing". It opens a month calendar beside the sidebar, where a picked day lists its sessions grouped by workspace (the same groups the sidebar uses), and the **first/latest switch lives at the top of that calendar**.
8
+
9
+ | Switch in the calendar | How a session is filed onto a day |
10
+ |---|---|
11
+ | **First** | the time the session's conversation **began** |
12
+ | **Latest** | the time you last sent a message in it — a session you returned to today shows up today |
13
+
14
+ Clicking a row opens that session, and the switch remembers your last choice.
6
15
 
7
16
  ## Usage
8
17
 
9
- 1. Click **Session calendar** under **New session** / **Free session** in the left sidebar.
10
- 2. The calendar opens to the right of the sidebar: month grid on top, that day's sessions below.
11
- 3. Days with sessions carry a dot; click a day to list them.
12
- 4. `‹` / `›` page months (landing on that month's earliest day with sessions); **Today** returns.
13
- 5. Sessions are grouped in sidebar workspace order, each row showing title and creation time.
14
- 6. Click a row to open that session; the window closes.
15
- 7. Dismiss with the row again, a click outside, `Esc`, or a window resize.
18
+ 1. Under **New session** / **Free session** sits **one `Session calendar` button** — transparent with a neutral hairline while closed, a 15% brand-blue wash plus a 45% hairline while open, spanning the row width; it becomes a 36px icon button in the collapsed rail.
19
+ 2. Clicking it opens the calendar to the right of the sidebar, **vertically centred** in the window (about 360px wide, 38px day cells). Its first row is the month title; the second row is four evenly split buttons — `‹` `›` `Today` `×`. Its height is fixed (up to 720px), so switching days scrolls only the list and never shifts the grid under your pointer; on a busy day the list scrolls with each group heading pinned.
20
+ 3. **Switching rules**: under the month title sits a full-width **First / Latest** segmented switch (about 160px per segment); it re-groups in place, the choice is remembered, and pressing the sidebar button again dismisses the card.
21
+ 4. A day with sessions is framed in **the colours of the workspaces involved under the active rule** (solid for one, a gradient for several), with one dot per workspace below; hovering names them and their counts.
22
+ 5. `‹` / `›` page months (landing on that month's earliest day with sessions); **Today** returns. With focus inside the card the **arrow keys** work as well: `←` `→` for a day, `↑` `↓` for a week, following the month when needed.
23
+ 6. Sessions are grouped in sidebar workspace order; the group glyph and every row's hairline use that workspace's colour, and each row shows title plus the time the active rule uses. The list header names the rule (by first prompt / by latest).
24
+ 7. Click a row to open that session in the conversation area; **the calendar stays open**, so you can keep picking from the same day.
25
+ 8. Dismiss with the active button again, a click outside, `Esc`, or a window resize.
26
+
27
+ ## Workspace colours
28
+
29
+ The calendar dots, each day's frame, the group glyph, and each session row's hairline share **one colour per workspace**, so the month grid itself says which workspace created sessions on which day.
30
+
31
+ - One workspace that day: the frame is that solid colour.
32
+ - Several workspaces: the frame is an angular gradient centred on the cell, one wedge per workspace in workspace order.
33
+ - **Today** is marked by a bolder date number in the primary text colour plus an accent underline (the blue number was hard to read on the card), and **the picked day** by a 50% wash of that day's own colour scheme (solid for one workspace, an angular run centred on the cell, one wedge per workspace, for several) plus bolder type; neither overrides the data colour.
34
+
35
+ Eight base colours, in family order:
36
+
37
+ `#FC757B` `#F97F5F` `#FAA26F` `#FDCD94` `#FEE199` `#B0D6A9` `#65BDBA` `#3C9BC9`
38
+
39
+ Assignment (N = number of workspaces, taken in registry order, stable across days):
40
+
41
+ | Case | Rule | Example |
42
+ |---|---|---|
43
+ | 8 is divisible by N (1, 2, 4, 8) | step evenly through the eight | 4 workspaces → colours **1, 3, 5, 7** |
44
+ | otherwise (3, 5, 6, 7, …) | resample the family to the smallest length divisible by N, then take evenly spaced picks including both ends | 3 workspaces → picks **1, 5, 9** of a nine-stop family |
45
+
46
+ The ninth stop is interpolated between the two ends `#FC757B` and `#3C9BC9` (for three workspaces the middle one is `#FED797`). A directory that is not a registered workspace groups under a neutral grey and always sorts last.
16
47
 
17
48
  ## Install
18
49
 
@@ -36,10 +67,10 @@ An npm install gains a **Versions** section in the plugin page, so upgrades are
36
67
  To bypass npm, or to pin an exact commit, install from the repository instead:
37
68
 
38
69
  ```sh
39
- github:Akira-yylm/dsh-session-calendar#v1.0.4
70
+ github:Akira-yylm/dsh-session-calendar#v1.1.1
40
71
  ```
41
72
 
42
- To let Plugin Manager treat the install as an **updatable** Git plugin, replace the tag with the full 40-char commit SHA (`git rev-parse v1.0.4`); a tag or branch also installs, but never follows updates.
73
+ To let Plugin Manager treat the install as an **updatable** Git plugin, replace the tag with the full 40-char commit SHA (`git rev-parse v1.1.1`); a tag or branch also installs, but never follows updates.
43
74
 
44
75
  > Git installs can be very slow from mainland China; prefer the npm method above.
45
76
 
@@ -60,18 +91,21 @@ dsh plugin --profile <profile> add @akira-yylm/session-calendar
60
91
 
61
92
  ## Data and privacy
62
93
 
63
- - One same-origin **read-only** Host route: `GET /dsh-session-calendar/created.json`, reading each session's `createdAt` from `sessionPersistence.list()`.
64
- - Never opens session log bodies, writes no files, makes no external requests, uploads nothing.
94
+ - One same-origin **read-only** Host route: `GET /dsh-session-calendar/created.json`, reading each session's `createdAt` from `sessionPersistence.list()` plus the **head** of its log for the first user message (cached per session for the life of the process). The latest-prompt side needs no Host help: it reuses the page's own `SessionSummary.updatedAt`.
95
+ - Reads only that bounded slice (at most 256 leading events), never the whole body; writes no files, makes no external requests, uploads nothing.
65
96
  - Titles, workspaces, ordering, and archived state come from the page's existing session/workspace data.
66
97
  - Nothing leaves the machine; no leftovers after removal: no config, cache, or database.
67
98
 
68
99
  ## Limitations
69
100
 
70
- - Days use the **browser's local time zone**; sessions stay on the day they were **created**.
101
+ - Days use the **browser's local time zone**.
102
+ - switch **First** = the first user message in the session log (DSH reuses blank sessions, so an empty shell created days earlier that you start today counts as today).
103
+ - switch **Latest** = your most recent message, taken from DSH's own `SessionSummary.updatedAt` (the newer of the session's creation and its last `user/message`).
104
+ - Neither rule counts command or status records: for example the “去AI味” pill runs `/humanizer status` whenever a session is opened, and that must not move a session into today.
71
105
  - Subagent, blank, and archived sessions are hidden by the same rules the sidebar uses.
72
106
  - Sessions outside any registered workspace fall back to a folder-name group.
73
107
  - The grid shows the current month only; paging lands on the earliest day with sessions.
74
- - In very narrow windows the card may cover the sidebar; use its × to dismiss.
108
+ - The card hugs the sidebar's right edge horizontally and centres itself vertically; in very narrow windows it may cover the sidebar (use × to dismiss), and in very short windows the whole card scrolls.
75
109
  - The row lives inside the New-session row's slot, so it hides whenever DSH hides that row.
76
110
 
77
111
  ## Compatibility
package/README.md CHANGED
@@ -1,18 +1,49 @@
1
1
  # 会话日历 · Session calendar
2
2
 
3
+ [![Socket Badge](https://badge.socket.dev/npm/package/@akira-yylm/session-calendar)](https://socket.dev/npm/package/@akira-yylm/session-calendar)
4
+
3
5
  > 非官方(unofficial)DeepSeek Harness 插件,与 DeepSeek 官方无关。English → [README.en.md](README.en.md)
4
6
 
5
- 在 DSH 左侧导航「免费会话」下方增加一个同款按钮,点开后会在左侧栏右边弹出小窗日历。选中某一天,就能看到**那一天创建的全部会话**,并按它们各自所属的**工作区分组**排列,和左侧栏的会话属于同一个工作区结构;点任意一条直接打开该会话。
7
+ 在 DSH 左侧导航「免费会话」下方增加**一个「会话日历」按钮**:收起时是**透明底 + 中性细描边**(只有日历图标是品牌蓝 `#4D6BFE`);**打开小窗后**才浮出一层很淡的蓝色(15%)+ 淡蓝描边,用颜色表示「这扇日历正开着」。点开后在左侧栏右边弹出小窗日历,选中某一天就能看到那一天的会话,并按各自所属的**工作区分组**排列(和左侧栏的会话属于同一个工作区结构);**按「首次」还是「最近」归日,用小窗顶部的分段开关切**。
8
+
9
+ | 小窗顶部开关 | 会话按什么时间归到某一天 |
10
+ |---|---|
11
+ | **首次** | 这个会话**第一次**开始对话的时间(原逻辑) |
12
+ | **最近** | 这个会话**最近一次**你发消息的时间(今天又聊过的旧会话会出现在今天) |
13
+
14
+ 点任意一条会话直接打开它。开关的选择会被记住,下次打开沿用上次的规则。
6
15
 
7
16
  ## 怎么用
8
17
 
9
- 1. 点左侧导航里「新会话」「免费会话」下方的 **「会话日历」**。
10
- 2. 小窗出现在左侧栏右边:上方是月历,下方是当天列表。
11
- 3. 有会话的日期下面有圆点;点日期即可查看当天会话。
12
- 4. `‹` `›` 翻月(会自动落到该月最早有会话的那一天),「今天」回到当天。
13
- 5. 下方按工作区顺序分组,每组标题是该工作区的名字;每条显示会话标题和创建时间(时:分)。
14
- 6. 点某条会话即在右侧对话区打开它,小窗自动关闭。
15
- 7. 关掉小窗:再点一次按钮、点小窗外面、按 `Esc`,或改变窗口大小。
18
+ 1. 左侧导航「新会话」「免费会话」下方是**一个「会话日历」按钮**:收起时背景透明但保留中性细描边、只有蓝色日历图标;打开后铺一层 15% 品牌蓝 + 45% 淡蓝描边(宽度与上面那行一致,折叠成细栏时变成 36px 图标按钮)。
19
+ 2. 点它:小窗出现在左侧栏右边、并在窗口内**纵向居中**(约 360px 宽、日期格 38px 高)。顶部第一行是月份标题,第二行是 `‹` `›` `今天` `×` 四个均分整行的按钮。高度固定(最多 720px),所以换日期时只有列表在滚动,月历格子不会跳动;会话很多时列表内部滚动,分组标题吸顶跟随。
20
+ 3. **切换规则**:月份标题下面有一整行 **「首次|最近」** 分段开关(每格约 160px 宽),点它就地重排(窗口不动),选择会记住;再点侧栏那个按钮才收起。
21
+ 4. 有会话的日期,**边框就是当天(按当前规则)涉及的工作区颜色**(只有一个工作区是纯色;多个工作区是一条渐变色边框),下面还按工作区各有一个圆点;鼠标悬停能看到「工作区 · 条数」。点日期即可查看当天会话。
22
+ 5. `‹` `›` 翻月(会自动落到该月最早有会话的那一天),「今天」回到当天。焦点在小窗里时也可以用**键盘方向键**:`←` `→` 前后一天、`↑` `↓` 前后一周(跨月自动翻月)。
23
+ 6. 下方按工作区顺序分组,每组标题是该工作区的名字,组图标和每行的描边也用它自己的颜色;每条显示会话标题和时间(左边是首次对话时间、右边是最近对话时间),当前是哪条规则看顶部那枚开关就行。
24
+ 7. 点某条会话即在右侧对话区打开它,**小窗保持打开**,可以接着点同一天的下一条。
25
+ 8. 关掉小窗:再点侧栏那个按钮、点小窗外面、按 `Esc`,或改变窗口大小。
26
+
27
+ ## 工作区颜色
28
+
29
+ 圆点、日期格边框、分组图标、以及每条会话行的描边用的是**同一套工作区颜色**,所以从月历上就能读出「哪天、哪个工作区创建过会话」。
30
+
31
+ - 当天只有 1 个工作区:日期格是一圈纯色边框。
32
+ - 当天有多个工作区:日期格边框取这几个工作区的颜色,以格子中心为圆心铺成角度渐变,每个工作区占一个扇区。
33
+ - 「今天」用**加粗的正文色日期 + 一条蓝色下划线**标记(不再用蓝字,深色主题下看不清),「选中」铺**当天的配色**(单工作区纯色、多工作区以格子中心为圆心的角度渐变,每个工作区一个扇区,透明度 50%)+ 加粗;两者都不会覆盖数据色边框。
34
+
35
+ 基础色阶 8 色(按色相排列):
36
+
37
+ `#FC757B` `#F97F5F` `#FAA26F` `#FDCD94` `#FEE199` `#B0D6A9` `#65BDBA` `#3C9BC9`
38
+
39
+ 分配规则(N = 工作区数量,按注册表顺序取色,工作区颜色跨日期固定):
40
+
41
+ | 情况 | 取法 | 例子 |
42
+ |---|---|---|
43
+ | N 能整除 8(1、2、4、8) | 在 8 色上等距取 | 4 个工作区 → 第 **1、3、5、7** 色 |
44
+ | N 不能整除 8(如 3、5、6、7) | 把色阶重采样到「能整除 N 的最小长度」,再取均匀分布且包含两端的色号 | 3 个工作区 → 9 色阶的第 **1、5、9** 色 |
45
+
46
+ 第 9 色由两端 `#FC757B`、`#3C9BC9` 之间的色阶插值得到(3 个工作区时中间那个是 `#FED797`)。不属于任何工作区的目录分组用中性灰,固定排在最后。
16
47
 
17
48
  ## 安装
18
49
 
@@ -36,10 +67,10 @@
36
67
  不想经过 npm、或者想锁死某个提交时,用 GitHub 地址:
37
68
 
38
69
  ```sh
39
- github:Akira-yylm/dsh-session-calendar#v1.0.4
70
+ github:Akira-yylm/dsh-session-calendar#v1.1.1
40
71
  ```
41
72
 
42
- 想让 Plugin Manager 把它识别为**可更新**的 Git 安装,把 tag 换成完整的 40 位 commit SHA(`git rev-parse v1.0.4` 可查);写 tag 或分支名也能装,但不会跟随更新。
73
+ 想让 Plugin Manager 把它识别为**可更新**的 Git 安装,把 tag 换成完整的 40 位 commit SHA(`git rev-parse v1.1.1` 可查);写 tag 或分支名也能装,但不会跟随更新。
43
74
 
44
75
  > 中国大陆网络下 Git 直装可能很慢,建议优先用上面的 npm 方式。
45
76
 
@@ -60,18 +91,21 @@ dsh plugin --profile <profile> add @akira-yylm/session-calendar
60
91
 
61
92
  ## 数据与隐私
62
93
 
63
- - 只新增一个同 origin 的**只读**宿主接口:`GET /dsh-session-calendar/created.json`,由会话持久层(`sessionPersistence.list()`)读出每个会话的 `createdAt`(创建时间)。
64
- - 不打开会话日志正文,不写任何文件,不发外网请求,不上传任何数据。
94
+ - 只新增一个同 origin 的**只读**宿主接口:`GET /dsh-session-calendar/created.json`,由会话持久层(`sessionPersistence.list()`)读每个会话的 `createdAt`,再只读地取日志**开头**第一条用户消息(`startedAt`,按会话永久缓存);「最近对话」不需要宿主参与,直接用页面已有的 `SessionSummary.updatedAt`。
95
+ - 只读这两段有界的日志切片(开头最多 256 条、结尾最多 96 条),不读整份正文;不写任何文件,不发外网请求,不上传任何数据。
65
96
  - 会话标题、工作区、排序与归档状态都取自页面已有的会话/工作区数据,不额外复制一份。
66
97
  - 数据不出本机;卸载后无残留:本插件不创建配置文件、缓存或数据库。
67
98
 
68
99
  ## 限制
69
100
 
70
- - 日期按**浏览器本地时区**划分(例如 Asia/Shanghai),不是 UTC;会话按**创建**日期归档,今天继续聊的旧会话仍留在它创建的那一天。
101
+ - 日期按**浏览器本地时区**划分(例如 Asia/Shanghai),不是 UTC。
102
+ - 开关「首次」= 会话日志里**第一条用户消息**的时间(DSH 会复用空白会话,所以 11-19 建的空壳今天才第一次说话时,算「今天开场」);
103
+ - 开关「最近」= **最近一次你发消息**的时间,用的是 DSH 自己的会话摘要 `SessionSummary.updatedAt`(= 会话创建时间与最近一次 `user/message` 中较晚的那个);
104
+ - 两者都**不看命令/状态类事件**:比如「去AI味」胶囊在你打开任意会话时会自动执行一条 `/humanizer status`,这类记录不会把会话挪到「最近对话」的今天。
71
105
  - 与左侧栏一致地隐藏:**子代理会话**、**空白会话**、**已归档会话**。
72
106
  - 不属于任何已注册工作区的会话(例如目录已从工作区列表移除)会按文件夹名单独成组。
73
107
  - 月历只显示当月日期(相邻月份留空),翻月会自动落到该月最早有会话的一天。
74
- - 窗口很矮时会改为整张卡片滚动,窗口很窄时卡片会收窄并可能盖住左侧栏,此时用卡片右上角的关闭按钮收起。
108
+ - 小窗水平贴左侧栏右缘、纵向在窗口内居中;窗口很矮时会改为整张卡片滚动,窗口很窄时卡片会收窄并可能盖住左侧栏,此时用卡片右上角的关闭按钮收起。
75
109
  - 入口挂在「新会话」这一行的插槽里,所以当 DSH 自己隐藏该行时(例如当前会话不允许新建会话),「会话日历」按钮也会一起隐藏。
76
110
 
77
111
  ## 关掉或卸载后