feat(composio): curate OneDrive/Excel/Todoist + UI preview badge for uncurated toolkits (#2283)
Summary
- Add curated agent-ready catalogs for OneDrive, Excel, Todoist so the agent has a usable tool surface for these toolkits.
- Add a "Preview" badge on the Skills grid for connected toolkits that lack a catalog so users see the limitation before / instead of running into the max-iterations failure documented in #2283.
- Expose a new RPC
composio.list_agent_ready_toolkitsas the single source of truth for the UI guard. - Scope coordination: PR #2293 (open, CodeRabbit-approved) handles the orthogonal "fast-fail for empty toolkits" slice this PR explicitly defers.
Problem
OneDrive, Excel, Todoist (plus ~90 other Composio toolkits) can be connected in the UI but have no curated backend catalog. composio_list_tools returns no usable actions for them, the agent keeps trying to recover, burns through max_iterations = 10, and surfaces a generic max-iterations error instead of a clear "toolkit not supported" message.
Solution
Rust core
- New
src/openhuman/composio/providers/catalogs_microsoft.rswithONE_DRIVE_CURATED(16 actions) +EXCEL_CURATED(18 actions), Read/Write/Admin scoped. - Append
TODOIST_CURATED(22 actions) tocatalogs_productivity.rs. - Wire the three new toolkits into
catalog_for_toolkit(including theONE_DRIVE_*→"one"multi-segment prefix alias, mirroring themicrosoft_teamspattern) andCAPABILITY_TOOLKITS. - New
agent_ready_toolkits()helper +composio.list_agent_ready_toolkitsRPC returns sorted slugs.
Frontend
listAgentReadyToolkitsRPC wrapper +useAgentReadyComposioToolkits()hook (one-shot fetch, cached) → returnsSet<string>.ComposioConnectorTilerenders a small "Preview" badge with tooltip "Agent integration coming soon" for toolkits without a curated catalog. Badge does not block authorization.- English i18n strings added; the new follow-up commit seeds the same keys into all 11 non-English locale chunks so the i18n-coverage script stops reporting drift.
- Updated 5 existing
Skills.*.test.tsxmocks oflib/composio/hooksto include the new hook (withloading: trueso legacy aria-label assertions keep passing).
Submission Checklist
If a section does not apply to this change, mark the item as
N/Awith a one-line reason.
- [x] Tests added or updated (happy path + at least one failure / edge case) — 9 new Rust tests + 5 new Vitest tests + 5 legacy Skills tests updated to mock the new hook.
cargo test --lib composio::providers composio::schemas composio::ops_test→ 263 passed, 0 failed.pnpm test src/lib/composio src/pages/__tests__/Skills→ 17 files, 50 tests passing. - [x] Diff coverage ≥ 80% — every new branch in
agent_ready_toolkits,catalog_for_toolkit(new aliases), and the new hook/RPC wrapper has at least one focused test. UI tile change (Preview badge) is small and exercised via the existing Skills tests. - [x] Coverage matrix updated — N/A: behaviour-only additions to existing composio catalog and Skills-grid surface; no new feature row added/removed/renamed.
- [x] All affected feature IDs from the matrix are listed in
## Related— N/A: no matrix row touched. - [x] No new external network dependencies introduced — all changes use the existing JSON-RPC core ⇄ frontend bridge.
- [x] Manual smoke checklist updated if this touches release-cut surfaces — N/A: catalog additions + tile-decoration change; no impact on release smoke flows.
- [x] Linked issue closed via
Closes #NNNin the## Relatedsection — see below.
Impact
- Runtime/platform: backend composio domain + Skills page.
- User-visible: OneDrive / Excel / Todoist actions now appear in the agent's tool surface when connected. Connected-but-uncurated toolkits get a "Preview" badge instead of letting the agent burn through max iterations.
- Performance / security: zero runtime cost —
agent_ready_toolkitsis a static slice; the hook fetches once per session and caches. - Migration / compatibility: new RPC is additive; existing
composio.list_toolkitsandcomposio.list_capabilitiesare unchanged.
Tests
- Rust (9 new): catalog uniqueness + scope coverage for OneDrive/Excel/Todoist;
catalog_for_toolkitresolves the new slugs including theONE_DRIVE_*→oneprefix alias; capability matrix integration;agent_ready_toolkits()ordering + content. - Vitest (5 new + 5 legacy mocks updated): RPC wrapper success/missing-field paths; hook returns correct Set on success / empty Set on failure; existing Skills page tests now mock the new hook.
cargo test --lib composio::providers composio::schemas composio::ops_test → 263 passed, 0 failed.
pnpm test src/lib/composio src/pages/__tests__/Skills → 17 files, 50 tests passing.
pnpm exec tsx scripts/i18n-coverage.ts → no drift on the new keys.
Related
- Closes #2283
- Companion: #2293 (fast-fail for empty composio_list_tools — orthogonal slice of #2283)
AI Authored PR Metadata (required for Codex/Linear PRs)
Linear Issue
- Key: N/A
- URL: N/A (GitHub-only issue #2283)
Commit & Branch
- Branch:
fix/2283-uncurated-toolkit-catalogs(branched fromorigin/mainafter fresh fetch) - Commit SHA: see PR head
Validation Run
- [x]
pnpm --filter openhuman-app format:check— applied via prettier hook (commitfb94e08f). - [x]
pnpm typecheck— clean. - [x] Focused tests:
cargo test --lib composio→ 263 passed;pnpm test src/lib/composio src/pages/__tests__/Skills→ 50 passed. - [x] Rust fmt/check (if changed):
cargo fmt --manifest-path Cargo.tomlapplied;cargo checkclean. - [x] Tauri fmt/check (if changed): N/A — no
app/src-tauri/changes.
Validation Blocked
command:N/Aerror:N/Aimpact:N/A
Behavior Changes
- Intended behavior change: OneDrive / Excel / Todoist gain curated agent catalogs; connected-but-uncurated toolkits show a Preview badge on the Skills grid.
- User-visible effect: the agent can now act on those three toolkits via Composio; the Skills grid distinguishes agent-ready from preview tiles.
Parity Contract
- Legacy behavior preserved: existing curated catalogs,
composio.list_toolkits, andcomposio.list_capabilitiesare unchanged. Legacy Skills page tests pass with the same aria-label and role text. - Guard/fallback/dispatch parity checks:
loading: truedefault for the new hook in test mocks keeps Preview badges off so legacy assertions don't drift.
Duplicate / Superseded PR Handling
- Duplicate PR(s): none for this slice. #2293 covers the orthogonal fast-fail slice of the same issue.
- Canonical PR: this PR for the catalog + UI guard slice.
- Resolution: N/A.
Summary by CodeRabbit
-
New Features
- Added OneDrive, Excel, and Todoist toolkits and agent-ready detection; UI now shows a "Preview" badge/tooltip for non‑agent-ready toolkits (title/aria-label updated). Badges are suppressed while loading and fallback gracefully on errors.
-
Tests
- Added/updated tests for agent-ready listing, normalization, hook behavior, and Skills page badge rendering.
-
Localization
- Added preview badge and tooltip translations across multiple languages.
[!NOTE]
Reviews paused
It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the
reviews.auto_review.auto_pause_after_reviewed_commitssetting.Use the following commands to manage reviews:
@coderabbitai resumeto resume automatic reviews.@coderabbitai reviewto trigger a single review.Use the checkboxes below for quick actions:
- [ ] ▶️ Resume reviews
- [ ] 🔍 Trigger review
📝 Walkthrough
Walkthrough
Adds curated catalogs (OneDrive/Excel/Todoist), a backend RPC to list agent-ready toolkits, a typed frontend API wrapper and hook to fetch canonical slugs, and a Skills page preview badge driven by the new hook and i18n strings.
Changes
Agent-Ready Composio Toolkits Feature
| Layer / File(s) | Summary |
|---|---|
Type definitions and response contract app/src/lib/composio/types.ts, src/openhuman/composio/types.rs |
Frontend and backend add ComposioAgentReadyToolkitsResponse with toolkits: string[]. |
Backend RPC operation and schema registration src/openhuman/composio/ops.rs, src/openhuman/composio/schemas.rs |
Implements composio_list_agent_ready_toolkits, registers schema/handler, and returns typed JSON from the controller. |
Microsoft OneDrive/Excel and Todoist curated catalogs src/openhuman/composio/providers/catalogs_microsoft.rs, src/openhuman/composio/providers/catalogs_productivity.rs |
Adds ONE_DRIVE_CURATED, EXCEL_CURATED, and TODOIST_CURATED with scope mappings and unit tests for non-empty, unique slugs and scope coverage. |
Provider module integration and capability matrix src/openhuman/composio/providers/mod.rs, src/openhuman/composio/providers/catalogs.rs, src/openhuman/composio/providers/descriptions.rs, src/openhuman/composio/mod.rs |
Exports new catalogs, updates CAPABILITY_TOOLKITS, catalog_for_toolkit, and agent_ready_toolkits(), and adds tests validating resolution and capability-matrix rows. |
Frontend API wrapper for RPC call app/src/lib/composio/composioApi.ts, app/src/lib/composio/composioApi.test.ts |
Adds listAgentReadyToolkits() that calls the RPC and unwraps envelope-style responses; tests verify envelope unwrapping and flat responses. |
Frontend hook for agent-ready toolkit management app/src/lib/composio/hooks.ts, app/src/lib/composio/hooks.test.ts |
Implements useAgentReadyComposioToolkits to fetch and canonicalize slugs into a ReadonlySet, track loading/error, and avoid state updates after unmount; tests cover success, error, and missing-field cases. |
Skills page UI integration and preview badge rendering app/src/pages/Skills.tsx, app/src/lib/i18n/*, app/src/pages/__tests__/* |
Calls the hook on Skills page, adds isAgentReady prop to tiles, computes showPreviewBadge, conditionally renders a preview badge with i18n-backed label and tooltip, and updates tests to mock the hook during loading/error. |
Sequence Diagram(s)
sequenceDiagram
participant SkillsUI as Skills Page
participant Hook as useAgentReadyComposioToolkits
participant Api as composioApi.listAgentReadyToolkits
participant Backend as openhuman.composio_list_agent_ready_toolkits
SkillsUI->>Hook: mount -> fetch agent-ready set
Hook->>Api: listAgentReadyToolkits()
Api->>Backend: openhuman.composio_list_agent_ready_toolkits (RPC)
Backend->>Backend: agent_ready_toolkits() (catalog lookup)
Backend-->>Api: RpcOutcome<ComposioAgentReadyToolkitsResponse>
Api-->>Hook: ComposioAgentReadyToolkitsResponse (flat toolkits[])
Hook-->>SkillsUI: agentReady set, loading/error flags
SkillsUI->>SkillsUI: render tiles (showPreviewBadge computed per tile)
Estimated code review effort
🎯 3 (Moderate) | ⏱️ ~25 minutes
Possibly related PRs
- tinyhumansai/openhuman#507: Both PRs touch
app/src/lib/composio/composioApi.ts’s RPC response handling—PR#507introduces a shared CLI-envelope unwrapping path used by the newlistAgentReadyToolkits().
Suggested labels
rust-core
Suggested reviewers
- graycyrus
- senamakel
Poem
🐰 New toolkits hop into view, neat and spry,
OneDrive, Excel, Todoist waving hi.
A badge that whispers "Preview" to the crowd,
Fetch, canonicalize, and show — humble and proud.
Tests pass, catalogs sing — a carrot-shaped high-five!
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
| Check name | Status | Explanation |
|---|---|---|
| Description Check | ✅ Passed | Check skipped - CodeRabbit’s high-level summary is enabled. |
| Title check | ✅ Passed | The PR title accurately summarizes the main change: adding curated catalogs for OneDrive/Excel/Todoist and introducing a UI preview badge for uncurated toolkits. |
| Linked Issues check | ✅ Passed | The PR successfully addresses all primary coding objectives from issue #2283: OneDrive/Excel/Todoist catalogs are added [catalogs_microsoft.rs, catalogs_productivity.rs], agent-ready toolkit list is implemented [composio_list_agent_ready_toolkits RPC], and UI preview badges are rendered for uncurated toolkits [Skills.tsx, ComposioConnectorTile]. |
| Out of Scope Changes check | ✅ Passed | All changes are within scope: backend catalogs, RPC endpoint, frontend hooks, UI rendering, i18n entries, and regression tests directly support the curated catalog and preview badge objectives from #2283. |
| Docstring Coverage | ✅ Passed | Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. |
✏️ Tip: You can configure your own custom pre-merge checks in the settings.
Comment @coderabbitai help to get the list of available commands and usage tips.