refactor(cli): migrate core tools to native ToolDisplay property and fix UI rendering (#25186)

This commit is contained in:
Michael Bleigh
2026-05-06 14:23:26 -07:00
committed by GitHub
parent 4a10751b49
commit 90304b279c
33 changed files with 1033 additions and 57 deletions
+7
View File
@@ -504,6 +504,13 @@ EOF`;
const result = await promise;
expect(result.llmContent).toContain('Error: wrapped command failed');
expect(result.llmContent).not.toContain('pgrep');
expect(result.display).toEqual(
expect.objectContaining({
name: 'Shell',
description: 'user-command',
resultSummary: 'Exit Code: 1',
}),
);
});
it('should return a SHELL_EXECUTE_ERROR for a command failure', async () => {