@cryptiklemur/lattice 1.14.0 → 1.14.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.
|
@@ -57,6 +57,7 @@ import type { SessionState } from "../stores/session";
|
|
|
57
57
|
|
|
58
58
|
var subscriptionsActive = 0;
|
|
59
59
|
var activeStreamGeneration = 0;
|
|
60
|
+
var streamSessionId: string | null = null;
|
|
60
61
|
var lastSentText: string | null = null;
|
|
61
62
|
var lastUsedModel: string | undefined = undefined;
|
|
62
63
|
var lastUsedEffort: string | undefined = undefined;
|
|
@@ -104,6 +105,7 @@ export function useSession(): UseSessionReturn {
|
|
|
104
105
|
msg.effort = effort;
|
|
105
106
|
}
|
|
106
107
|
activeStreamGeneration = getStreamGeneration();
|
|
108
|
+
streamSessionId = currentSessionId;
|
|
107
109
|
lastSentText = text;
|
|
108
110
|
lastUsedModel = model;
|
|
109
111
|
lastUsedEffort = effort;
|
|
@@ -123,7 +125,10 @@ export function useSession(): UseSessionReturn {
|
|
|
123
125
|
}
|
|
124
126
|
|
|
125
127
|
function isStaleStream(): boolean {
|
|
126
|
-
|
|
128
|
+
if (activeStreamGeneration !== getStreamGeneration()) return true;
|
|
129
|
+
var currentActiveId = getSessionStore().state.activeSessionId;
|
|
130
|
+
if (streamSessionId && currentActiveId && streamSessionId !== currentActiveId) return true;
|
|
131
|
+
return false;
|
|
127
132
|
}
|
|
128
133
|
|
|
129
134
|
function handleUserMessage(msg: ServerMessage) {
|
|
@@ -272,7 +277,10 @@ export function useSession(): UseSessionReturn {
|
|
|
272
277
|
if (m.sessionId) {
|
|
273
278
|
var projectSlug = m.projectSlug || getSessionStore().state.activeProjectSlug;
|
|
274
279
|
setSidebarSessionId(m.sessionId);
|
|
275
|
-
|
|
280
|
+
streamSessionId = m.sessionId;
|
|
281
|
+
if (m.busy) {
|
|
282
|
+
activeStreamGeneration = getStreamGeneration();
|
|
283
|
+
}
|
|
276
284
|
getSessionStore().setState(function (state) {
|
|
277
285
|
return {
|
|
278
286
|
...state,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cryptiklemur/lattice",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.1",
|
|
4
4
|
"description": "Multi-machine agentic dashboard for Claude Code. Monitor sessions, manage MCP servers and skills, orchestrate across mesh-networked nodes.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Aaron Scherer <me@aaronscherer.me>",
|