@lamemind/loom-deck 0.66.0 → 0.66.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/dist/live-sessions.js +15 -0
- package/package.json +1 -1
package/dist/live-sessions.js
CHANGED
|
@@ -67,6 +67,21 @@ export function parseLiveEntry(content, pid) {
|
|
|
67
67
|
// il guard esiste per escludere), `cwd` è il filtro di progetto.
|
|
68
68
|
if (!sessionId || !procStart || !cwd)
|
|
69
69
|
return null;
|
|
70
|
+
// Il registry tiene un file anche per i processi che NON sono una
|
|
71
|
+
// conversazione dell'utente: subagent SDK, fork parkeggiati in background,
|
|
72
|
+
// spare pty host. Hanno lo stesso `cwd` del progetto e un pid davvero vivo —
|
|
73
|
+
// quindi `isAlive` non li scarta — ma nessuna tab a cui tornare: elencarli
|
|
74
|
+
// conta più conversazioni di quante ne siano aperte, e `--resume` su una di
|
|
75
|
+
// esse non riporta l'utente da nessuna parte.
|
|
76
|
+
//
|
|
77
|
+
// Servono DUE campi perché uno solo non discrimina: un job in background di
|
|
78
|
+
// Claude Code scrive `entrypoint:"cli"` come una sessione vera e si distingue
|
|
79
|
+
// solo per `kind:"bg"`. Entrambi assenti valgono come sessione interattiva —
|
|
80
|
+
// una versione del CLI che non li scrivesse non deve svuotare la lista.
|
|
81
|
+
if ((typeof d.entrypoint === 'string' ? d.entrypoint : 'cli') !== 'cli')
|
|
82
|
+
return null;
|
|
83
|
+
if ((typeof d.kind === 'string' ? d.kind : 'interactive') !== 'interactive')
|
|
84
|
+
return null;
|
|
70
85
|
return {
|
|
71
86
|
entry: {
|
|
72
87
|
sessionId,
|
package/package.json
CHANGED