Skip to content

Cron-triggered sessions never get Composio MCP tools attached (works fine in Telegram/TUI sessions) #57861

Description

@RUKE03

Bug: Composio MCP server is not attached to the tool list for cron-triggered sessions, even though the same profile works fine for interactive (Telegram/TUI) sessions.

Environment: v0.18.0 (v2026.7.1), self-hosted on Railway. Also reproduced on v0.17.0 (v2026.6.19) before upgrading.

Setup: Single profile (default), Composio MCP server configured globally under /mcp, used by both a Telegram channel and a cron job.

Steps to reproduce: 1) Configure Composio MCP server globally (only one profile exists, no per-profile MCP config). 2) Trigger the cron job manually or let it run on schedule. 3) Open the resulting session transcript.

Expected: Composio MCP tools are callable, same as in an interactive Telegram session.

Actual: Session tool call fails with "Tool does not exist, available tools: process, terminal". After upgrading to v0.18.0, the agent does not even attempt the MCP tool call anymore, goes straight to terminal exploration, reports no Composio env vars and no MCP config found, then falls back to a broken output noting the integration is unavailable.

Already ruled out: Cron job Deliver To setting (tested Local, Telegram, origin - same failure on all). Railway environment variables (no Composio/MCP config there). Outdated version (upgraded HERMES_REF to v2026.7.1, confirmed via build logs, bug persists). Per-profile MCP attachment (only one profile exists total).

This suggests cron-triggered sessions start through a different code path than interactive/channel sessions, and that path does not wire up MCP servers into the tool list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium — degraded but workaround existscomp/agentCore agent runtime: loop, agent_init, prompt builder, context-compression, responses endpointcomp/cronCron scheduler and job managementsweeper:implemented-on-mainSweeper: behavior already present on current maintool/mcpMCP client and OAuthtype/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions