fix(webui): update usage and tool progress during active turns (#6553)
* fix(webui): stream model status and usage during active turns * fix(webui): keep live rounds and active-run status consistent * fix(webui): reuse existing run indicators without extra status text * fix(webui): preserve live activity and batch durable delivery Cancel and drain sibling tools when progress notifications fail, retain balanced checkpoints, and keep model telemetry separate from answer provenance. Group-commit already queued activity at the channel delivery boundary while preserving FIFO, generation ownership, per-envelope admission, and commit-before-fanout semantics. Isolate invalid members without dropping valid neighboring events. Retain tool detail lazy grouping and cover scheduling, cancellation, persistence, encoding failures, and projection regressions. * test(webui): separate standard-library imports in batch regression * test: tighten live execution checks and clarify contracts * refactor: remove redundant live execution comments * refactor: settle tool results through one output path
This commit is contained in:
1 parent
006a535537
commit
8ff04aad2b
52 files changed
+2065
-211
No files matched your search
@@ -193,7 +193,7 @@ describe("canonical thread event projection", () => {
|
||||
expect(normalizeProjection(messages)).toEqual(fixtureCase.expected);
|
||||
});
|
||||
|
||||
it("keeps deferred activity rows separately addressable in one segment", () => {
|
||||
it.each(["read_file(…)", ""])("keeps deferred activity rows separately addressable in one segment (summary=%s)", (summary) => {
|
||||
const firstDetail = { ref: "2.history-aaaaaaaaaaaaaaaaaaaa", bytes: 40_000, traceCount: 1 };
|
||||
const secondDetail = { ref: "2.history-bbbbbbbbbbbbbbbbbbbb", bytes: 41_000, traceCount: 1 };
|
||||
|
||||
@@ -209,7 +209,7 @@ describe("canonical thread event projection", () => {
|
||||
{
|
||||
event: "message",
|
||||
chat_id: "chat-1",
|
||||
text: "read_file(…)",
|
||||
text: summary,
|
||||
kind: "tool_hint",
|
||||
projection_id: "history-bbbbbbbbbbbbbbbbbbbb",
|
||||
trace_detail: secondDetail,
|
||||
@@ -217,6 +217,7 @@ describe("canonical thread event projection", () => {
|
||||
]);
|
||||
|
||||
expect(messages).toHaveLength(2);
|
||||
expect(messages.map((message) => message.content)).toEqual(["exec(…)", summary]);
|
||||
expect(messages.map((message) => message.traceDetail)).toEqual([
|
||||
firstDetail,
|
||||
secondDetail,
|
||||
|
||||
Reference in new issue
Block a user