forked from vtemian/micode
- Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
refactorCode improvement without behavior changeCode improvement without behavior change
Description
Problem
src/tools/look-at.ts uses statSync and readFileSync while every other tool and hook in the codebase uses node:fs/promises. These block the Bun event loop unnecessarily.
// CURRENT — blocks event loop const stats = statSync(args.filePath); const content = readFileSync(args.filePath, 'utf-8');Fix
import { stat, readFile } from 'node:fs/promises'; // Inside execute (already async): const stats = await stat(args.filePath); const content = await readFile(args.filePath, 'utf-8');Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
refactorCode improvement without behavior changeCode improvement without behavior change