[Todoist] ...
Extension
https://www.raycast.com/doist/todoist
Raycast Version
1.104.15
OS Version
26.3.1 (25D2128)
Description
Error:
Error: Worker terminated due to reaching memory limit: JS heap out of memory
[kOnExit]:worker:316:26
Worker.<computed>.onexit:worker:232:20
Steps To Reproduce
- start todoist search in racast
- content loads without errors
- any action taken by user (eg. arrow down; typing any letter on keyboard) will result in crash
Current Behaviour
No response
Expected Behaviour
No response
Thank you for opening this issue!
🔔 @thomaslombart @AnishDe12020 @kud @casassg @Princeyadav05 @jfkisafk @ridemountainpig @kcole93 @RobErskine @jagadeesh-k-2802 @scottlovegrove @scottlovegrove @FlohGro-dev @dedalusj @WilliamSault @adityaastro @alanwill @erayack @chialiyun @jakoss @yashpatel21 you might want to have a look.
💡 Author and Contributors commands
The author and contributors of doist/todoist can trigger bot actions by commenting:
@raycastbot close this issueCloses the issue.@raycastbot close as not plannedCloses the issue as not planned.@raycastbot close as duplicateCloses the issue as duplicate.@raycastbot rename this issue to "Awesome new title"Renames the issue.@raycastbot reopen this issueReopens the issue.@raycastbot assign meAssigns yourself to the issue.@raycastbot good first issueAdds the "Good first issue" label to the issue.@raycastbot keep this issue openMake sure the issue won't go stale and will be kept open by the bot.
Hello,
Any ETAs for the fix?
I happen to have some time, might take a look this weekend. I don't want to promise anything at least from my end though.
@rdanilin @mail735
I haven’t been able to reproduce this locally. To narrow it down, could you share:
- Rough order of magnitude of active Todoist tasks (e.g. tens, hundreds, thousands)?
- Whether you use comments heavily on tasks (lots of threaded comments vs. mostly uncommented tasks).
- In Search, whether the crashes happen with Tasks selected in the segmented control or does it happen for Projects/Labels/Comments as well.
Those details matter because Search loads the full synced task set for that mode, and interaction (typing / arrows) might push memory limits on larger accounts differently than on small ones.
Hi Yash,
3.857 active Todoist tasks.
I'd estimate that 1/3rd of those have comments but of those, 90% are not threaded but only contain 1-3 sentences.
It happens with Tasks selected in the segmented control as well as for Projects/Labels/Comments. Whenever I type any character, it crashes instantly.
Thanks!
--
Jakob Schmitt (he/him)
Photographer · Producer · Counsellor
jakobschmitt.com ( https://www.jakobschmitt.com/ ) * *
@.*** ( @.***/ )
LinkedIn ( https://www.linkedin.com/in/jakob-schmitt-a025a475 ) ・ Instagram ( https://www.instagram.com/papergum/ )
Response times may vary
schedule a call ( https://cal.com/jakobschmitt/call?duration=25 ) ・ call me now ( tel://+4917621536410 )
Sent via Superhuman ( https://superhuman.com/refer/v4xz42ib?utm_medium=signature&utm_source=product )
On Sat, May 02, 2026 at 00:41:25, Yash Patel < @.*** > wrote:
yashpatel21 left a comment (raycast/ extensions#27541) ( https://github.com/raycast/extensions/issues/27541#issuecomment-4361998701 )
@ rdanilin ( https://github.com/rdanilin ) @ mail735 ( https://github.com/mail735 )
I haven’t been able to reproduce this locally. To narrow it down, could you share:
- Rough order of magnitude of active Todoist tasks (e.g. tens, hundreds, thousands)?
- Whether you use comments heavily on tasks (lots of threaded comments vs. mostly uncommented tasks).
- In Search, whether the crashes happen with Tasks selected in the segmented control or does it happen for Projects/Labels/Comments as well.
Those details matter because Search loads the full synced task set for that mode, and interaction (typing / arrows) might push memory limits on larger accounts differently than on small ones.
— Reply to this email directly, view it on GitHub ( https://github.com/raycast/extensions/issues/27541#issuecomment-4361998701 ) , or unsubscribe ( https://github.com/notifications/unsubscribe-auth/CBHDAGKPTAVIRTDBHKLCZ3T4YURZLAVCNFSM6AAAAACYL4CWNOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DGNRRHE4TQNZQGE ). Triage notifications on the go with GitHub Mobile for iOS ( https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 ) or Android ( https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub ). You are receiving this because you were mentioned. Message ID: <raycast/extensions/issues/27541/4361998701 @ github. com>
@mail735
Thanks for the extra detail.
What's going on is that the Search command pulls your full Todoist data into the extension so it can filter instantly as you type. With a very large number of tasks and comments, that ends up as a huge amount of work and memory inside Raycast’s extension process, which has a fixed limit, so the list can appear to load, then the first keystroke or arrow key pushes it over that limit and the process exits.
I'd like to fix this without making Search feel clunky or breaking how it works for smaller accounts. Before I move forward with a fix, how would you like Search to behave on a large account? I don't really face this issue as I use Todoist mostly for personal purposes, and don't have thousands of tasks, so I would appreciate your input.
Possible approaches:
-
Optimize current Search
- Same UX: empty filter still shows everything, type to narrow.
- Implementation: one-pass lookups after sync (counts, subtasks, etc.), lighter per-row UI.
- I am wary of shipping only this, since I cannot really test at your scale. It removes a lot of wasted work in the code, but if Raycast still cannot handle thousands of list rows, it may not be enough on its own.
-
Middle ground: recent slice when empty, Todoist search when typing, plus a cap on typed matches
- UX: opening Search shows only the latest N tasks from your sync, not the whole account. When you type, matches come from Todoist filter/search across your full account, not only those N. Even then, we only show at most N rows so a very loose query cannot blow memory again.
- Implementation: empty filter renders a recency-sliced subset of synced tasks. Non-empty filter calls Todoist and renders API results, truncated to N with a clear order (for example recency).
- Pros: strong protection against this crash, you still see something useful immediately, typed search is not limited to the initial slice.
- Cons: different from today when the filter is empty (no full scroll of every task). Matching follows Todoist once you type, not necessarily the same as Raycast’s built-in fuzzy list. Rare hits on vague queries might sit past the cap until you refine the query.
Would option 2 work for you? If not, I can still try option 1 first and reassess.
I'm currently fixing some other sync/cache bugs for this extension, so if you let me know what you prefer, I might be able to add a fix for this issue as well. Thanks!
Hi Yash,
Thanks for the detailed breakdown of the different approaches. I really appreciate you thinking through the UX implications for large accounts.
For me, option 3 (empty filter: top N recent) would work best. I like the idea of seeing the most recent tasks when I first open Search, and then being able to search across my full account once I start typing. That feels like a good balance between having something useful on the initial screen and not overwhelming the extension process.
Let me know if you need me to test anything once you have a fix ready. Happy to help validate it works with a large account.
Thanks again for working on this!
--
Jakob Schmitt (he/him)
Photographer · Producer · Counsellor
jakobschmitt.com ( https://www.jakobschmitt.com/ ) * *
@.*** ( @.***/ )
LinkedIn ( https://www.linkedin.com/in/jakob-schmitt-a025a475 ) ・ Instagram ( https://www.instagram.com/papergum/ )
Response times may vary
schedule a call ( https://cal.com/jakobschmitt/call?duration=25 ) ・ call me now ( tel://+4917621536410 )
Sent via Superhuman ( @.*** )
On Sun 3. May 2026 at 01:42, Yash Patel < @.*** > wrote:
yashpatel21 left a comment (raycast/extensions#27541) ( https://github.com/raycast/extensions/issues/27541#issuecomment-4364963954 )
@mail735 ( https://github.com/mail735 )
Thanks for the extra detail.
What's going on is that the Search command pulls your full Todoist data into the extension so it can filter instantly as you type. With a very large number of tasks and comments, that ends up as a huge amount of work and memory inside Raycast’s extension process, which has a fixed limit, so the list can appear to load, then the first keystroke or arrow key pushes it over that limit and the process exits.
I'd like to fix this without making Search feel clunky or breaking how it works for smaller accounts. Before I move forward with a fix, how would you like Search to behave on a large account? I don't really face this issue as I use Todoist mostly for personal purposes, and don't have thousands of tasks, so I would appreciate your input.
Possible approaches:
Optimize current Search
Same UX: empty filter still shows everything, type to narrow.
Implementation: one-pass lookups after sync (counts, subtasks, etc.), lighter per-row UI.
I am a bit wary of leaning on this alone since I can't really test this at scale myself. It fixes the obvious waste in the code, but if Raycast still cannot handle thousands of rows, we would still need 2, 3, or 4.
Empty filter: nothing until you type
UX: open Search, no tasks until you enter text, then matches appear.
Implementation: no full list on empty query. After enough input, Todoist filter/search API, render those tasks.
Empty filter: top N recent
UX: open Search, see the latest N tasks only, not the full account. After you type, results can come from the whole account like a real search.
Implementation: when the filter is empty, slice synced tasks to the N most recent. When the filter is not empty, call Todoist filter/search and render those matches.
Optional: cap typed results at top N
- UX: even after typing, at most N rows (very loose queries may need more typing or rewording).
- Implementation: truncate filtered or API results with a fixed order (e.g. recency).
Empty filter: 2 or 3? Typed results: add 4, yes or no?
I'm currently fixing some other sync/cache bugs for this extension, so if you let me know what you prefer, I might be able to add a fix for this issue as well. Thanks!
— Reply to this email directly, view it on GitHub ( https://github.com/raycast/extensions/issues/27541#issuecomment-4364963954 ) , or unsubscribe ( https://github.com/notifications/unsubscribe-auth/CBHDAGP5QCS7THBMWWTQDU34Y2BVTAVCNFSM6AAAAACYL4CWNOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DGNRUHE3DGOJVGQ ). Triage notifications on the go with GitHub Mobile for iOS ( https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 ) or Android ( https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub ). You are receiving this because you were mentioned. Message ID: <raycast/extensions/issues/27541/4364963954 @ github. com>