Skip to content

MCP errors pass unbounded through a worker #187

Description

@Shearerbeard

Problem

Diagnosing a noisy panic on the MCP server I noticed two bad failure patterns.

  1. A large 50k unbounded stack trace got passed to the continuation prompt in the coordinator. This blows up the coordinator context window, throwing it into a short replan loop before timing out. We already handled similar constraints in bug(orchestration): large tool outputs overflow LLM context when scratchpad is disabled #120 but that only helps at the coordinator level.

  2. This particular call waited until just about the end of the 15min timeout before it threw an error. It's really hard to tell the difference between a long running MCP call and a stuck open port. For long running tools that also have progress notifications we could experiment with a configurable "first notification" timeout to catch stuck processes early and fail gracefully.

Activity

  1. changed the title [-]MCP Errors pass unbounded through a worker - land untrunicated in the parent coordinator artifacts[/-] [+]MCP errors pass unbounded through a worker[/+] on Jun 4, 2026
  2. justintime4tea commented on Jun 18, 2026

    @justintime4tea
    Collaborator

    #247 addressed number 1 of this

  3. removed their assignment
    on Jun 25, 2026
  4. justintime4tea commented on Jun 25, 2026

    @justintime4tea
    Collaborator

    We may want to split the second part of this into two:

    • Leverage progress notifications for those MCP's which do support progress notifications
    • Improve experience when using MCP's which do not have progress notifications
  5. Shearerbeard commented on Jul 17, 2026

    @Shearerbeard
    CollaboratorAuthor

    @justintime4tea we should verify where this is still broken if at all

  6. Shearerbeard commented on Jul 17, 2026

    @Shearerbeard
    CollaboratorAuthor

    @gjanco this bug is verify (see above) + split into a subticket the section that isn't done yet - I think @justintime4tea already did most of this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions