Skip to content

fix(inbox): don't fail task conversion when sync enqueue throws - #973

Merged
h4yfans merged 1 commit into
mainfrom
fix/inbox-task-sync-enqueue-guard
Aug 6, 2026
Merged

fix(inbox): don't fail task conversion when sync enqueue throws#973
h4yfans merged 1 commit into
mainfrom
fix/inbox-task-sync-enqueue-guard

Conversation

@h4yfans

@h4yfans h4yfans commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

What

Wrap syncTaskCreate in convertToTask with the same try/catch + telemetry guard convertToEvent already uses, so a sync enqueue failure no longer reports an already-committed conversion as failed.

Why

The item was already filed and the task row committed before the enqueue call; the throw only corrupted the caller's view (item filed, task local-only, reported as failure). Local task stays valid and dirty-recovery sweeps it later.

convertToTask called syncTaskCreate unguarded after markItemAsFiled, so a
sync enqueue failure aborted the conversion after the item was already
filed and the task row committed — the caller saw a failure for a
conversion that had actually happened. Mirror the convertToEvent guard:
log, report to telemetry, and let dirty-recovery sweep the task later.
Copilot AI lite review requested due to automatic review settings August 6, 2026 09:05

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions github-actions Bot added bug Something isn't working test labels Aug 6, 2026
@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown

React Doctor found no new issues. 🎉

Reviewed by React Doctor for commit 371548a.

@h4yfans
h4yfans marked this pull request as ready for review August 6, 2026 09:06
@h4yfans
h4yfans merged commit a45d464 into main Aug 6, 2026
14 checks passed
@h4yfans
h4yfans deleted the fix/inbox-task-sync-enqueue-guard branch August 6, 2026 09:06
h4yfans added a commit that referenced this pull request Aug 6, 2026
Both sides added telemetry imports; keep #973's syncTaskCreate guard and this
branch's task_created conversion event side by side.
@codecov

codecov Bot commented Aug 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants