131
return;
132
}
134
>
const changes: Partial<SessionSummary> = {};
135
>
if (current.title !== lastNotified.title) { changes.title = current.title; }
136
>
if (current.status !== lastNotified.status) { changes.status = current.status; }
137
>
if (current.activity !== lastNotified.activity) { changes.activity = current.activity; }
138
>
if (current.modifiedAt !== lastNotified.modifiedAt) { changes.modifiedAt = current.modifiedAt; }
139
>
if (current.project !== lastNotified.project) { changes.project = current.project; }
140
>
if (current.changes !== lastNotified.changes) { changes.changes = current.changes; }
141
>
if (current.workingDirectories !== lastNotified.workingDirectories) { changes.workingDirectories = current.workingDirectories; }
142
>
if (current._meta !== lastNotified._meta) { changes._meta = current._meta; }
143
>
144
>
this._lastNotified.set(session, current);
145
>
146
>
if (Object.keys(changes).length > 0) {
147
this._emit(session, changes);
148
}