Commit 358dba2
committed
fix(agent_templates): preserve BOTH _id (ObjectId) and id (slug) — were distinct, not dup
Pre-merge deep review against live data: the listAgentTemplates item returns a Mongo
ObjectId on _id AND a human-readable slug on id. My earlier dedup dropped the slug and
made .id return the ObjectId — silent data loss + behavior change. Now expose both:
.id = slug (matches the field description + prior runtime), .object_id = ObjectId.
Verified live: both populate. mypy==1.13.0 green. Escalation [2] corrected accordingly.1 parent 4fa5ee3 commit 358dba2
1 file changed
Lines changed: 12 additions & 1 deletion
File tree
- src/smallestai/atoms/agent_templates/types
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
29 | 40 | | |
30 | 41 | | |
31 | 42 | | |
| |||
0 commit comments