diff --git a/adapters/common/__tests__/format.test.ts b/adapters/common/__tests__/format.test.ts index 9ba63416..7815f704 100644 --- a/adapters/common/__tests__/format.test.ts +++ b/adapters/common/__tests__/format.test.ts @@ -118,8 +118,15 @@ describe('formatToolUse', () => { expect(result).toBe('🔧 Read …/project/src/index.ts') }) + + it('shortens Windows paths in file tool summaries', () => { + const result = formatToolUse('Read', {file_path: 'C:\\Users\\test\\project\\src\\index.ts'}) + + expect(result).toBe('🔧 Read …/project/src/index.ts') + }) }) + describe('formatPermissionRequest', () => { it('includes tool name, input preview, and request ID', () => { const result = formatPermissionRequest('Bash', { command: 'rm -rf /' }, 'abcde')