@try-works/dsh-recursive-mode 0.1.17 → 0.1.18

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/lib/client.js CHANGED
@@ -566,7 +566,6 @@ window.__ModuleLoader__.load({
566
566
  setState(null);
567
567
  return;
568
568
  }
569
- setState(null);
570
569
  let disposed = false;
571
570
  const apply = (frame) => {
572
571
  if (!disposed) setState(frame);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@try-works/dsh-recursive-mode",
3
3
  "description": "recursive-mode workflow as a DeepSeek Harness bundle: RecursiveRuntime service + recursive_status tool",
4
- "version": "0.1.17",
4
+ "version": "0.1.18",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
7
7
  "types": "lib/index.d.ts",
@@ -34,10 +34,11 @@ export function useLiveProjection(scope: LiveScope): LiveProjectionSnapshot {
34
34
  useEffect(() => {
35
35
  // Empty scope = no resolvable session row yet — render nothing, never fetch.
36
36
  if (isEmpty(scope)) { setState(null); return }
37
- // 0.1.16 (LIVE BUG 3): RESET the snapshot synchronously on scope change so
38
- // the board never renders the PREVIOUS workspace's {root, projection} during
39
- // a switch. The fresh fetch below re-populates state only when it resolves.
40
- setState(null)
37
+ // 0.1.18 (LIVE BUG 5): do NOT null the snapshot on scope change. 0.1.16
38
+ // added board.tsx's synchronous stale-workspace guard (workspacePath vs
39
+ // async snapshot.root), which already suppresses stale cards; nulling here
40
+ // blanked the board on every session/workspace switch (the "delay then
41
+ // stop" symptom). Keep the previous snapshot until the fresh fetch resolves.
41
42
  let disposed = false
42
43
  const apply = (frame: LiveRecursiveFrame) => { if (!disposed) setState(frame) }
43
44