claude-code - 💡(How to fix) Fix [Feature Request] Add MCP tool call timeouts, background agent completion signals, subagent tool restrictions, and work completion verification

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

MCP needs timeouts. A hung MCP tool call blocks an agent indefinitely with no way to recover. No MCP-layer timeout exists. Theworkaround (manual timer tracking + ScheduleWakeup) is fragile. MCP calls should have a configurable timeout that returns an error. The /feedback command auto-attaches error logs containing local filesystem paths without asking. Users should be able to review and redact the attached errors (which they can, but they have to pay very close attention before hitting create) before submission. Should be more obvious.

Root Cause

The token economics of quality enforcement are backwards. We spent weeks of compute producing output that had to be thrown away because agents reported success on incomplete work. Then spent more compute building structural gates (separate agents for read vs. process, hard validation between stages, completeness checks on every result). This works, but it's a tax on the user to compensate for agents not reliably completing what they're asked to do.

Fix Action

Fix / Workaround

Bug Description MCP needs timeouts. A hung MCP tool call blocks an agent indefinitely with no way to recover. No MCP-layer timeout exists. Theworkaround (manual timer tracking + ScheduleWakeup) is fragile. MCP calls should have a configurable timeout that returns an error.

RAW_BUFFERClick to expand / collapse

Bug Description MCP needs timeouts. A hung MCP tool call blocks an agent indefinitely with no way to recover. No MCP-layer timeout exists. Theworkaround (manual timer tracking + ScheduleWakeup) is fragile. MCP calls should have a configurable timeout that returns an error.

Background agents need reliable completion signals. Task-notification is the only way to know a background agent finished. When it's late or doesn't fire, the orchestrator is blind. A polling fallback (agent status query with elapsed time) would help.

Subagents can't be constrained. A subagent given access to a tool can use it in ways the parent didn't intend — including destructive operations. There's no way to spawn an agent with tool-level restrictions (allowlist/denylist). The parent has to trust subagent judgment, and subagents lack the context to make safety calls.

Agents claim work they didn't do. An agent told to read a data source completely, paginate to the end, and produce structured output from it will sometimes read one page, produce an empty or shallow result, and return a success message. There's no platform-level self-verification. The caller has to build all the gates to detect incomplete work — which means spending tokens on enforcement infrastructure that shouldn't be necessary.

The token economics of quality enforcement are backwards. We spent weeks of compute producing output that had to be thrown away because agents reported success on incomplete work. Then spent more compute building structural gates (separate agents for read vs. process, hard validation between stages, completeness checks on every result). This works, but it's a tax on the user to compensate for agents not reliably completing what they're asked to do.

The /feedback command auto-attaches error logs containing local filesystem paths without asking. Users should be able to review and redact the attached errors (which they can, but they have to pay very close attention before hitting create) before submission. Should be more obvious.

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.145
  • Feedback ID: 98c4d1c5-9cea-4a05-90b8-7972250580ab

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [Feature Request] Add MCP tool call timeouts, background agent completion signals, subagent tool restrictions, and work completion verification