Showing the changes to apps/web (2 of 3 files). Show all
Unified · Split
| @@ -69,7 +69,7 @@ describe("derivePendingApprovals", () => { · 68 unmodified lines | ||
| 69 | 69 | }); |
| 70 | 70 | |
| 71 | 71 | describe("deriveWorkLogEntries", () => { |
| 72 | − it("returns entries in chronological order", () => { | |
| 72 | + it("omits tool started entries and keeps completed entries", () => { | |
| 73 | 73 | const activities: OrchestrationThreadActivity[] = [ |
| 74 | 74 | makeActivity({ |
| 75 | 75 | id: "tool-complete", |
| @@ -86,7 +86,7 @@ describe("deriveWorkLogEntries", () => { · 10 unmodified lines | ||
| 86 | 86 | ]; |
| 87 | 87 | |
| 88 | 88 | const entries = deriveWorkLogEntries(activities, undefined); |
| 89 | − expect(entries.map((entry) => entry.id)).toEqual(["tool-start", "tool-complete"]); | |
| 89 | + expect(entries.map((entry) => entry.id)).toEqual(["tool-complete"]); | |
| 90 | 90 | }); |
| 91 | 91 | |
| 92 | 92 | it("filters by turn id when provided", () => { |
| @@ -127,6 +127,7 @@ export function deriveWorkLogEntries( · 126 unmodified lines | ||
| 127 | 127 | ); |
| 128 | 128 | return ordered |
| 129 | 129 | .filter((activity) => (latestTurnId ? activity.turnId === latestTurnId : true)) |
| 130 | + .filter((activity) => activity.kind !== "tool.started") | |
| 130 | 131 | .filter((activity) => activity.summary !== "Checkpoint captured") |
| 131 | 132 | .map((activity) => { |
| 132 | 133 | const payload = |