This commit is contained in:
Julius Marminge authored and Julius Marminge committed 2026-02-26 13:20:36 -08:00
1 parent b211d059d2
commit 5a755ada28
3 files changed
+34 -30

No files matched your search

+2 -2
View File
@@ -69,7 +69,7 @@ describe("derivePendingApprovals", () => {
});
describe("deriveWorkLogEntries", () => {
it("returns entries in chronological order", () => {
it("omits tool started entries and keeps completed entries", () => {
const activities: OrchestrationThreadActivity[] = [
makeActivity({
id: "tool-complete",
@@ -86,7 +86,7 @@ describe("deriveWorkLogEntries", () => {
];
const entries = deriveWorkLogEntries(activities, undefined);
expect(entries.map((entry) => entry.id)).toEqual(["tool-start", "tool-complete"]);
expect(entries.map((entry) => entry.id)).toEqual(["tool-complete"]);
});
it("filters by turn id when provided", () => {
+1
View File
@@ -127,6 +127,7 @@ export function deriveWorkLogEntries(
);
return ordered
.filter((activity) => (latestTurnId ? activity.turnId === latestTurnId : true))
.filter((activity) => activity.kind !== "tool.started")
.filter((activity) => activity.summary !== "Checkpoint captured")
.map((activity) => {
const payload =