@cryptiklemur/lattice 1.43.7 → 1.43.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cryptiklemur/lattice",
3
- "version": "1.43.7",
3
+ "version": "1.43.8",
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>",
@@ -107,8 +107,13 @@ registerHandler("session", function (clientId: string, message: ClientMessage) {
107
107
  setActiveProject(clientId, activateMsg.projectSlug);
108
108
  watchSessionLock(activateMsg.sessionId);
109
109
  var activateT0 = Date.now();
110
- void loadSessionHistory(activateMsg.projectSlug, activateMsg.sessionId).then(function (historyResult) {
111
- log.session("session:activate total history load: %dms", Date.now() - activateT0);
110
+ void Promise.all([
111
+ loadSessionHistory(activateMsg.projectSlug, activateMsg.sessionId),
112
+ getSessionTitle(activateMsg.projectSlug, activateMsg.sessionId).catch(function () { return null; }),
113
+ ]).then(function (results) {
114
+ log.session("session:activate history+title: %dms", Date.now() - activateT0);
115
+ var historyResult = results[0];
116
+ var title = results[1];
112
117
  var interrupted = wasSessionInterrupted(activateMsg.sessionId);
113
118
  if (interrupted) {
114
119
  clearInterruptedFlag(activateMsg.sessionId);
@@ -120,7 +125,7 @@ registerHandler("session", function (clientId: string, message: ClientMessage) {
120
125
  projectSlug: activateMsg.projectSlug,
121
126
  sessionId: activateMsg.sessionId,
122
127
  messages: historyResult.messages,
123
- title: null,
128
+ title: title,
124
129
  interrupted: interrupted || undefined,
125
130
  busy: busy || undefined,
126
131
  busyOwner: busyOwner,
@@ -133,15 +138,11 @@ registerHandler("session", function (clientId: string, message: ClientMessage) {
133
138
  });
134
139
 
135
140
  void Promise.all([
136
- getSessionTitle(activateMsg.projectSlug, activateMsg.sessionId).catch(function () { return null; }),
137
141
  getSessionUsage(activateMsg.projectSlug, activateMsg.sessionId).catch(function () { return null; }),
138
142
  getContextBreakdown(activateMsg.projectSlug, activateMsg.sessionId).catch(function () { return null; }),
139
143
  ]).then(function (results) {
140
144
  try {
141
- if (results[0]) {
142
- sendTo(clientId, { type: "session:history", projectSlug: activateMsg.projectSlug, sessionId: activateMsg.sessionId, messages: [], title: results[0] as string });
143
- }
144
- var usage = results[1];
145
+ var usage = results[0];
145
146
  if (usage) {
146
147
  sendTo(clientId, {
147
148
  type: "chat:context_usage",
@@ -156,7 +157,7 @@ registerHandler("session", function (clientId: string, message: ClientMessage) {
156
157
  log.session("Error sending context usage: %O", err);
157
158
  }
158
159
  try {
159
- var breakdown = results[2];
160
+ var breakdown = results[1];
160
161
  if (breakdown) {
161
162
  sendTo(clientId, {
162
163
  type: "chat:context_breakdown",