Bug: Notion memory sync fails — tinycortex provider missing fetch_type in NOTION_FETCH_DATA args (ce98837 unfixed)
Summary
Periodic Notion memory sync fails because Composio's NOTION_FETCH_DATA action now requires a fetch_type field, and the tinycortex memory sync path never sends it. The agent tool path already has a guard for this (ensure_notion_fetch_type), but the memory sync path bypasses it entirely. One-line fix needed in the tinycortex submodule, plus the same fix in the openhuman task-source fetch path.
Error
Failed: composio sync failed: notion provider failure: Invalid request data provided -
Following fields are missing: {'fetch_type'}
Root cause
Composio added a required fetch_type field to the NOTION_FETCH_DATA action. There are two code paths that call this action, and they are handled inconsistently:
Path 1 — Agent tool path (fixed)
src/openhuman/integrations/composio/execute_prepare.rs:70
ensure_notion_fetch_type infers fetch_type: "pages" when the field is missing. Added as part of #1797. Works correctly.
Path 2 — Memory sync path (broken — this error)
vendor/tinycortex/src/memory/sync/composio/providers/notion.rs:67
The arguments() call sends only:
{ "page_size": ..., "filter": ..., "sort": ..., "start_cursor": ... }
No fetch_type. This path never routes through the openhuman guard. Composio rejects every periodic sync with the missing field error.
Confirmed: latest tinycortex submodule commit (ce98837) still does not include the fix — bug is live in the newest code.
Path 3 — Task-source fetch path (likely broken, unconfirmed)
src/openhuman/memory/sync/composio/providers/notion/provider.rs:167
fetch_tasks sends filter without fetch_type. If this path also calls NOTION_FETCH_DATA, task-source ingestion from Notion is broken by the same missing field.
Fix
tinycortex submodule (vendor/tinycortex/src/memory/sync/composio/providers/notion.rs:67):
Add "fetch_type": "pages" to the json! args block:
json!({
"fetch_type": "pages", // ← add this
"page_size": ...,
"filter": ...,
"sort": ...,
"start_cursor": ...
})
Then bump the submodule pointer in openhuman to pick up the fix.
openhuman task-source path (src/openhuman/memory/sync/composio/providers/notion/provider.rs:167):
Apply the same "fetch_type": "pages" addition to fetch_tasks arguments if it calls NOTION_FETCH_DATA.
Acceptance criteria
- [ ] Periodic Notion memory sync completes without
Following fields are missing: {'fetch_type'}. - [ ]
fetch_type: "pages"is present in the tinycortex notion provider'sarguments()output. - [ ] tinycortex submodule pointer in openhuman is bumped to the fixed commit.
- [ ]
fetch_tasksinsrc/openhuman/memory/sync/composio/providers/notion/provider.rs:167is audited and patched if it callsNOTION_FETCH_DATAwithoutfetch_type. - [ ] The agent tool path (
ensure_notion_fetch_type) is unaffected — no regression.
Related
- openhuman #1797 — added
ensure_notion_fetch_typeguard for the agent tool path (the fix that the memory sync path never received) - openhuman #5500 — Notion content misread/hallucination bug (separate issue, same integration)
Issue #5506 is a bug: Composio's NOTION_FETCH_DATA action now requires a fetch_type field, and the tinycortex memory sync path never sends it, causing all periodic Notion memory syncs to fail. The agent tool path was already fixed in #1797, but the memory sync path bypasses that guard. This breaks a core path (periodic memory sync) with no workaround. Priority p1. It appears to be a duplicate of #5473 ("Connector syncs stopped feeding the memory tree after the TinyCortex migration"), which likely describes the same broken Notion sync behavior from the user's perspective. PR #1797 resolved the agent-tool-path variant but not this path.
Labelled priority: p1.
This may be related to #5473. Left open either way — tinysweeper only closes an issue when the match is unambiguous.
Status: fixed in tinycortex#144 — adds the now-required fetch_type: "pages" to the memory-sync Notion provider's NOTION_FETCH_DATA args (with a request-body assertion test). The agent-tool path already had this via ensure_notion_fetch_type (#1797); only the memory-sync path was missing it.
Remaining to close: merge tinycortex#144 and bump the tinycortex submodule pointer in openhuman.