fix(orchestrator): cap MCP tool waits at 50 s below the client timeout
Claude Code's MCP client abandons a tool call before 240 s with "The operation timed out.", so review_wait, decision_wait and rule_request_wait now wait at most MCP_WAIT_CAP (50 s) and tell the caller to call again while the status is pending. HTTP waits keep WAIT_CAP (300 s). kvb-git-diff step 3 asks for timeout_seconds 50. 🎯 Fix: 95 % 💥 Break: 2 % 💸 Tokens: – ⏱️ Velocity: – 🛡️ Security: 100 % 🏆 Score: 93 🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 % Created-with: https://s.veen.world/skills Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b15dd5e414
commit
909ea85605
7 files changed
+17
-13
No files matched your search
@@ -16,7 +16,7 @@ from .diffs import (
|
||||
valid_sealed,
|
||||
)
|
||||
from .errors import Conflict, Missing, ToolError
|
||||
from .fields import WAIT_CAP, bounded, decode, expect, field, seconds
|
||||
from .fields import MCP_WAIT_CAP, bounded, decode, expect, field, seconds
|
||||
from .review_page import review_files
|
||||
from .signed import limits, review_signed
|
||||
|
||||
@@ -127,7 +127,7 @@ class Reviewing:
|
||||
def wait(self, arguments: dict) -> dict:
|
||||
expect(arguments, ("id", "timeout_seconds"))
|
||||
review_id = field(arguments, "id")
|
||||
timeout = seconds(arguments, "timeout_seconds", WAIT_CAP)
|
||||
timeout = seconds(arguments, "timeout_seconds", MCP_WAIT_CAP)
|
||||
return proven(found(self.reviews.wait(review_id, timeout), review_id))
|
||||
|
||||
def pending(self, arguments: dict) -> dict:
|
||||
|
||||
Reference in new issue
Block a user