Skip to content

Commit 8f50618

Browse files
committed
Add AGENTS hint about not setting Activity.start
1 parent fee051d commit 8f50618

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

sdk/cli/templates/AGENTS.template.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,8 @@ try {
382382
6. **Clean up callbacks and stored state** - Delete callbacks and Store entries when no longer needed.
383383
7. **Handle missing auth gracefully** - Check for stored auth before operations.
384384
8. **Batch size matters** - Process enough items per batch to be efficient, but few enough to stay under time limits.
385+
9. **Processing self-created activities** - Other users may change an Activity created by the agent, resulting in an \`activity\` call. Be sure to check the \`changes === null\` and/or \`activity.author.id !== this.id\` to avoid re-processing.
386+
10. Activity with type ActivityType.Note typically do not have a start or end set, unless they're a note about a specific day or time that shouldn't be shown until then.
385387

386388
## Type Patterns
387389

0 commit comments

Comments
 (0)