mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-10 20:46:28 +01:00
fix(runner): simplify expanded activity history
This commit is contained in:
1 parent
4c3e30cdad
commit
fab305db71
6 files changed
+66
-5
No files matched your search
@@ -10,6 +10,7 @@ import {
|
||||
flattenSelfTalk,
|
||||
isNestableLiveChild,
|
||||
ISSUE_BRIEF_ITEM_ID,
|
||||
paperclipRunnerHistoryItems,
|
||||
prependIssueBrief,
|
||||
settledRunChildren,
|
||||
toolDisplayName,
|
||||
@@ -423,6 +424,25 @@ describe("paperclip runner semantic channels", () => {
|
||||
const history = settledRunChildren(parsed);
|
||||
expect(JSON.stringify(history)).not.toContain("Done.");
|
||||
});
|
||||
|
||||
it("filters lifecycle and usage noise from only the runner history surface", () => {
|
||||
const items: TaskChatItem[] = [
|
||||
{ id: "session", kind: "marker", variant: "session_start", label: "Session started", detail: "session-id" },
|
||||
{ id: "start", kind: "marker", variant: "turn_boundary", label: "Turn started" },
|
||||
{ id: "usage", kind: "usage", usage: { used: 1_024, size: 128_000, inputTokens: 1_000, outputTokens: 24 } },
|
||||
{ id: "tool", kind: "tool", name: "Paperclip_finish", status: "completed", target: "done" },
|
||||
{ id: "interrupt", kind: "marker", variant: "interrupted", label: "Interrupted" },
|
||||
{ id: "runner", kind: "marker", variant: "turn_boundary", label: "Runner update" },
|
||||
{ id: "complete", kind: "marker", variant: "turn_boundary", label: "Turn completed" },
|
||||
];
|
||||
|
||||
expect(paperclipRunnerHistoryItems(items).map((item) => item.id)).toEqual([
|
||||
"tool",
|
||||
"interrupt",
|
||||
"runner",
|
||||
]);
|
||||
expect(items).toHaveLength(7);
|
||||
});
|
||||
});
|
||||
|
||||
describe("buildMergedTurnSummary (PAP-362)", () => {
|
||||
|
||||
Reference in new issue
Block a user