https://sonarly.com/issue/5485?type=bug Each logic function execution adds an extra wrapper layer to global console methods via ConsoleListener.release(), eventually exceeding V8's call stack limit after thousands of executions. Fix: The `release()` method in `ConsoleListener` was creating a new arrow function wrapper around the captured original console method instead of directly restoring it. Each call to `release()` added one more layer to an ever-growing call chain, eventually causing a stack overflow after thousands of logic function executions. The fix replaces the wrapper creation with a direct assignment: ```typescript file=packages/twenty-server/src/engine/core-modules/logic-function/logic-function-drivers/utils/intercept-console.ts lines=26-31 release() { Object.keys(this.originalConsole).forEach((method) => { // @ts-expect-error legacy noImplicitAny console[method] = this.originalConsole[method]; }); } ``` **Before:** Each `release()` call did `console[method] = (...args) => { this.originalConsole[method](...args) }` — creating a new closure that held a reference to the previous wrapper, forming a chain N layers deep after N executions. **After:** Each `release()` call does `console[method] = this.originalConsole[method]` — directly restoring the reference captured at construction time, with no wrapper and no chain growth regardless of how many executions have occurred.
The #1 Open-Source CRM
🌐 Website · 📚 Documentation · Roadmap ·
Discord ·
Figma
Installation
See: 🚀 Self-hosting 🖥️ Local Setup
Why Twenty
We built Twenty for three reasons:
CRMs are too expensive, and users are trapped. Companies use locked-in customer data to hike prices. It shouldn't be that way.
A fresh start is required to build a better experience. We can learn from past mistakes and craft a cohesive experience inspired by new UX patterns from tools like Notion, Airtable or Linear.
We believe in Open-source and community. Hundreds of developers are already building Twenty together. Once we have plugin capabilities, a whole ecosystem will grow around it.
What You Can Do With Twenty
Please feel free to flag any specific needs you have by creating an issue.
Below are a few features we have implemented to date:
- Personalize layouts with filters, sort, group by, kanban and table views
- Customize your objects and fields
- Create and manage permissions with custom roles
- Automate workflow with triggers and actions
- Emails, calendar events, files, and more
Personalize layouts with filters, sort, group by, kanban and table views
Customize your objects and fields
Create and manage permissions with custom roles
Automate workflow with triggers and actions
Emails, calendar events, files, and more
Stack
- TypeScript
- Nx
- NestJS, with BullMQ, PostgreSQL, Redis
- React, with Jotai, Linaria and Lingui
Thanks
Thanks to these amazing services that we use and recommend for UI testing (Chromatic), code review (Greptile), catching bugs (Sentry) and translating (Crowdin).
Join the Community
- Star the repo
- Subscribe to releases (watch -> custom -> releases)
- Follow us on Twitter or LinkedIn
- Join our Discord
- Improve translations on Crowdin
- Contributions are, of course, most welcome!




