You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test("previews DeepSeek-style prose reasoning from its first line",()=>{
38
+
expect(
39
+
reasoningSummary(
40
+
"Let me trace how the session runner assembles the request.\n\nA few things to verify: the tool schema order, the system prompt, and the reasoning echo.",
41
+
),
42
+
).toEqual({
43
+
title: "Let me trace how the session runner assembles the request.",
44
+
body: "Let me trace how the session runner assembles the request.\n\nA few things to verify: the tool schema order, the system prompt, and the reasoning echo.",
45
+
})
46
+
})
47
+
48
+
test("strips markdown decorations from the prose preview",()=>{
49
+
expect(reasoningSummary("## Approach\nFirst, check the cache fields.\n\nThen verify.")).toEqual({
50
+
title: "Approach",
51
+
body: "## Approach\nFirst, check the cache fields.\n\nThen verify.",
52
+
})
53
+
expect(reasoningSummary("- Investigate the failing test\n- Fix it")).toEqual({
54
+
title: "Investigate the failing test",
55
+
body: "- Investigate the failing test\n- Fix it",
56
+
})
57
+
})
58
+
59
+
test("truncates long prose previews at a word boundary",()=>{
60
+
constlongLine=
61
+
"Analyzing the interplay between the streamed usage payload and the cache accounting pipeline. ".repeat(2)
0 commit comments