dsh-model-think-level 2.6.3 → 2.6.4

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.
@@ -6,8 +6,6 @@
6
6
  * right of the context pill. It exists ONLY while a continue chain is running:
7
7
  *
8
8
  * waiting → `◔ 自动继续 3s 1/5`, countdown ring, click opens the popover
9
- * paused → `⏸ 自动继续 回到本会话后继续` (the view left this session, so
10
- * the countdown is frozen; it resumes from the remaining seconds)
11
9
  * sent → `✓ 已继续 2/5`
12
10
  * exhausted → `⏱ 已停手 5/5` + an inline 重置
13
11
  * idle → nothing at all (the chip unmounts, the slot stays empty)
@@ -1,23 +1,20 @@
1
1
  /**
2
- * The auto-continue watcher: replies 「继续」 to the current session's turn
2
+ * The auto-continue watcher: replies 「继续」 to interrupted live sessions
3
3
  * when it ended in a way worth continuing, and stays silent otherwise.
4
4
  *
5
5
  * The decision is {@link judgeTurnTail} (auto-continue-rules.ts); this module
6
6
  * owns the OBSERVATION and the GUARDS around it:
7
7
  *
8
- * - Only the CURRENT session is watched. The one exception is an ending
9
- * nobody answered: when the watcher first sees a session whose newest
10
- * turn/end is a continuable failure with no user message or new run after
11
- * it, that ending is judged once (within a day). A failure the user already
12
- * moved past, or one older than the window, stays history — replaying old
13
- * failures is exactly the mindless behaviour the switch must not have.
14
- * - A page that loads into a session whose last turn failed yesterday does
15
- * nothing — auto-continuing stale failures is exactly the mindless
16
- * behaviour the switch must not have.
8
+ * - The selected session and running root sessions from the catalog are
9
+ * watched. On reference-owning kernels each live chain retains its exact
10
+ * session generation: a borrowed binding alone cannot keep history alive.
11
+ * Idle unopened history is never scanned en masse. On first attachment,
12
+ * only a recent unanswered failure is recoverable (within a day); any
13
+ * newer user intent/run or stale ending makes it history.
17
14
  * - The durable `turn/end` is what is judged, not the running edge, so the
18
15
  * evaluation waits briefly for the settlement to reach the event window.
19
16
  * - Guards at send time: the switch still on, the turn still ended, nothing
20
- * the user submitted pending, the session still the one on screen.
17
+ * the user submitted pending, the retained session generation still live.
21
18
  * - A streak cap bounds every chain of automatic replies (a dead provider
22
19
  * or a model looping on the ceiling must not be fed forever); anything
23
20
  * the user sends by hand, and every turn that ends completed / aborted /
@@ -23,8 +23,12 @@ export interface SessionsLike {
23
23
  list?: {
24
24
  getSnapshot(): {
25
25
  current?: string;
26
+ ids?: readonly string[];
26
27
  byId?: Record<string, {
27
28
  id?: string;
29
+ running?: boolean;
30
+ origin?: string;
31
+ parentId?: string;
28
32
  retainedBy?: Record<string, number>;
29
33
  } | undefined>;
30
34
  };