Skip to content

bug: chat_with_agent never forwards its execution_id argument, so a delegated task cannot report back to the caller's channel #3232

Closed

Description

@webmixgamer

Summary

The MCP chat_with_agent tool declares an optional execution_id argument and documents it as the way a delegated task "inherits the channel/thread this request came from and its completion is reported back there". The tool's execute function never reads that argument, so it never reaches runAgentChat, and the parallel /task request goes out without parent_execution_id. The backend inherits a parent's channel context only from parent_execution_id (chat_execution_service._inherited_channel_context). A delegation made through chat_with_agent therefore never carries the caller's Slack/Telegram thread, and its completion is never reported there — the exact failure ent#224 was built to fix.

Context

Acceptance Criteria

Technical Notes

  • _inherited_channel_context refuses inheritance unless the caller owns the parent context (ent#265 provenance guard). Keep it the only gate.
  • Related: abilityai/trinity-enterprise#568, which rewrites the same tool description.

Activity

  1. added
    priority-p2
    type-bug
    theme-channels
    complexity-low
    status-ready
    on Oct 5, 2026
  2. added
    status-in-progress
    and removed
    status-ready
    on Oct 7, 2026
  3. added
    status-in-dev
    and removed
    status-in-progress
    on Oct 7, 2026
  4. added a commit that references this issue on Oct 20, 2026
  5. removed
    status-in-dev
    on Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

complexity-lowpriority-p2theme-channelstype-bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions