Skip to content

Fix Todoist sync max-items 403 by compacting ingredient output#59

Merged
mbuchoff merged 4 commits intomainfrom
fix/todoist-compact-sync
Feb 12, 2026
Merged

Fix Todoist sync max-items 403 by compacting ingredient output#59
mbuchoff merged 4 commits intomainfrom
fix/todoist-compact-sync

Conversation

@mbuchoff
Copy link
Copy Markdown
Owner

@mbuchoff mbuchoff commented Feb 12, 2026

What

  • Avoids creating per-ingredient Todoist subtasks (including composite component trees).
  • Writes a single "Ingredients:" comment per task and keeps nutrition/macros comments.
  • Adds a small concurrency gate for Todoist API calls and improves error details.

Why

Todoist was returning 403 with error_tag MAX_ITEMS_LIMIT_REACHED during sync. Compacting ingredient output reduces the number of items created so sync can complete.

Tests

  • dotnet test

Stop creating per-ingredient subtasks (incl composites) and instead attach a single Ingredients comment per task to avoid MAX_ITEMS_LIMIT_REACHED 403s. Add concurrency gating + better error details, and update tests.
Removed CashewsFood and its associated serving.
@mbuchoff mbuchoff merged commit fd0aa20 into main Feb 12, 2026
2 checks passed
@mbuchoff mbuchoff deleted the fix/todoist-compact-sync branch February 12, 2026 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant