fix: shorten tool call IDs and fix duplicate tool name in truncated output filenames (#18600)

This commit is contained in:
Sandy Tao
2026-02-09 09:09:17 -08:00
committed by GitHub
parent da66c7c0d1
commit 01906a9205
5 changed files with 30 additions and 7 deletions
@@ -180,6 +180,7 @@ describe('ToolExecutor', () => {
it('should truncate large shell output', async () => {
// 1. Setup Config for Truncation
vi.spyOn(config, 'getTruncateToolOutputThreshold').mockReturnValue(10);
vi.spyOn(config.storage, 'getProjectTempDir').mockReturnValue('/tmp');
const mockTool = new MockTool({ name: SHELL_TOOL_NAME });
const invocation = mockTool.build({});