Repository navigation
Backport #376 and #379 to release-0.9 for 0.9.18 - #380
Merged
Merged
Conversation
An agent in OpenShell had a tool call fail with EOF right after OpenShell closed the sandbox's connections, at a token renewal or when another sandbox was set up: the call went out on a kept-alive connection the other end had closed, and the client may not send a tools/call again (it may have reached the gateway). The gateway client sends each tools/call through a clone of its transport without keep-alive, so never on an idle connection; every other request keeps reusing them. A call cut off while it runs still fails and is never sent twice. docs/requirements/mcp-gateway-for-custos-0.10.md records R8 for the rest: an idempotency key per tools/call, so that a cut-off call may be sent again and runs once. Fixes #375 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q3sBGb8stQdHScGf2TGtWJ (cherry picked from commit 2c4a3ff)
mcp-gateway 1.17.2 answers a tools/call sent again with the same idempotency key, server, tool and arguments from the first call (R8). Each tool call from an ADK tool carries its own key, the call's CallToken (a digest of it where it is longer than the gateway takes or has a character it refuses), next to the progress token. The gateway client counts a tools/call with a key among the requests it may send again when the connection ends without an answer: an agent in OpenShell whose call is cut off at a token renewal gets its outcome instead of an error for a call that may have run. A call without a key is still never sent again. Custos requires mcp-gateway 1.17.2. Fixes #378 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q3sBGb8stQdHScGf2TGtWJ (cherry picked from commit 1737eff)
The idempotency keys (#379) need mcp-gateway 1.17.2, so the release branch's CI builds v1.17.2. #376's fragment said R8 would let the agent send a cut-off call again; with #379 in the same release it does, and the fragment says so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q3sBGb8stQdHScGf2TGtWJ
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes the shared files
CONTRACT.md,packaging/suse/custos.specand.github/workflows/ci.yml.Cherry-picks (
-x) for 0.9.18, both merged on main:One commit of this branch's own:
Testing
make checkandmake cockpit-testpass on the branch.Generated by Claude Code