Skip to content
Source
Sign inSign up
pingdotgg/t3code

perf(web): reasoning rows skip the tool-failure text scan #21146

Mergedjuliusmarmingemerged 1 commit intomain fromrefs/pull/21146/headmerged by juliusmarminge View on GitHub

Showing 2 changed files with 17 additions and 1 deletion.

x
0 of 2 viewed, 2 left
13 additions and 0 deletionspackages/client-runtime/src/work-log/presentation.test.tsModified
View file
@@ -78,6 +78,19 @@
},
);
​
+ it("ignores failure phrases in reasoning text", () => {
+ const entry: WorkLogPresentationEntry = {
+ ...base,
+ label: "Thinking",
+ tone: "thinking",
+ itemType: "reasoning",
+ toolLifecycleStatus: "completed",
+ detail: "That exit code 2 is just from listing the deleted directory, which is expected.",
+ };
+ expect(workEntryIndicatesToolFailure(entry)).toBe(false);
+ expect(workEntryDisplayIndicatesToolFailure(entry)).toBe(false);
+ });
+​
it("is true for error tone", () => {
expect(
workEntryIndicatesToolFailure({
4 additions and 1 deletionpackages/client-runtime/src/work-log/presentation.tsModified
View file
@@ -365,7 +365,10 @@
) {
return true;
- if (!workLogEntryIsToolLike(entry)) return false;
+ // Reasoning detail is the model's own prose (often tens of KB), not tool