perf(server): cut chatty tool-update frames by 90% (#8368)
This commit is contained in:
1 parent
8f1ef8b9eb
commit
7e4ce3bbb1
5 files changed
+633
-15
No files matched your search
@@ -495,9 +495,6 @@ function toolLifecycleIdentity(activity: OrchestrationThreadActivity): string |
|
||||
* update within the turn — a later update belongs to a subsequent call that
|
||||
* reuses the same identity and is still in flight. Rows without a lifecycle
|
||||
* identity pass through, matching the clients, which never collapse them.
|
||||
* Live `thread.activity-appended` events are untouched: updates still stream
|
||||
* in real time and the completion supersedes them on the client as before.
|
||||
*
|
||||
* Deliberate divergence from client collapse: clients fold only *adjacent*
|
||||
* lifecycle rows, so a superseded update separated from its completion by an
|
||||
* interleaved parallel call renders as its own row today, and this drop
|
||||
@@ -524,7 +521,7 @@ function dropSupersededToolUpdatedActivities(
|
||||
if (!identity) {
|
||||
continue;
|
||||
}
|
||||
const key = `${activity.turnId ?? ""} | ||||