marked.parse runs on all messages each render. With long conversations this makes typing sluggish. useMemo caches rendered HTML per message, only recomputing when messages or cwd change. Also deferred textarea resize to requestAnimationFrame. |
||
|---|---|---|
| src | ||
| .gitignore | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| tsconfig.json | ||
| vite.config.ts | ||