Improve codex activity log tool-call summaries

This commit is contained in:
Mohamed Boudra
2026-03-24 23:39:41 +07:00
parent fadeca82eb
commit ac991e064c
5 changed files with 62 additions and 7 deletions
@@ -119,7 +119,7 @@ describe("shared tool-call display mapping", () => {
});
expect(display).toEqual({
displayName: "Interacted with terminal",
displayName: "Terminal",
});
});
@@ -136,7 +136,7 @@ describe("shared tool-call display mapping", () => {
});
expect(display).toEqual({
displayName: "Interacted with terminal",
displayName: "Terminal",
summary: "npm run test",
});
});
@@ -129,7 +129,7 @@ function buildUnknownDetailOverride(input: ToolCallDisplayInput): DetailDisplay
}
if (lowerName === "terminal") {
return {
displayName: "Interacted with terminal",
displayName: "Terminal",
summary: input.detail.type === "plain_text" ? readString(input.detail.label) : undefined,
};
}