Repository navigation
feat(elicitation)!: split confirmation and secret collection TTLs - #538
Conversation
BREAKING CHANGE: Move requestState.ttlSeconds to confirmation.ttlSeconds and secretCollection.ttlSeconds.
commit: |
Coverage Report for CI Build 42635330599Warning Build has drifted: This PR's base is out of sync with its target branch, so coverage data may include unrelated changes. Coverage decreased (-0.1%) to 98.069%Details
Uncovered ChangesNo uncovered changes found. Coverage Regressions16 previously-covered lines in 1 file lost coverage.
Coverage Stats💛 - Coveralls |
Rodriguespn
left a comment
There was a problem hiding this comment.
Approving, thanks @barryroodt! I tested it locally with the MCP Inspector:
- Confirmations still go through after the old 2 minutes, and expire at 10 minutes with "expired after 10 minutes".
- The secret link still expires at 2 minutes.
A couple of nits inline, none blocking:
-
One thing outside the diff:
CONTRIBUTING.md:56still says every local HTTP confirmation expires after 120 seconds. The comment atconfirmation-instant-cancel.test.ts:546("platform passes 120") is also out of date now. Could we update both: 600 s for confirmations, 120 s for URL secret collection? -
there's no test for the secret-collection default, or for a confirmation TTL shorter than the secret one.
🤖 I have created a release *beep* *boop* --- <details><summary>mcp-utils: 0.10.0</summary> ## [0.10.0](mcp-utils-v0.9.0...mcp-utils-v0.10.0) (2026-11-13) ### Features * tag cost-confirmation errors and report caller-input errors as ToolCallerError ([#543](#543)) ([ac366c4](ac366c4)) </details> <details><summary>mcp-server-supabase: 0.17.0</summary> ## [0.17.0](mcp-server-supabase-v0.16.1...mcp-server-supabase-v0.17.0) (2026-11-13) ### ⚠ BREAKING CHANGES * **elicitation:** split confirmation and secret collection TTLs ([#538](#538)) ### Features * agent feedback capabilities including docs ([#488](#488)) ([698ccd5](698ccd5)) * **elicitation:** split confirmation and secret collection TTLs ([#538](#538)) ([8a08e48](8a08e48)) * tag cost-confirmation errors and report caller-input errors as ToolCallerError ([#543](#543)) ([ac366c4](ac366c4)) ### Bug Fixes * **content api:** report GraphQL errors that have no locations ([#528](#528)) ([6b2fca9](6b2fca9)) * **mcp:** confirm UPDATEs without WHERE that have a leading comment, ONLY or an alias ([#524](#524)) ([7df9fb8](7df9fb8)) * **mcp:** don't read semicolons or EXECUTE inside data literals as destructive SQL ([#533](#533)) ([0dcdd2d](0dcdd2d)) * tell agents the log window, project readiness, docs query and SQL size rules up front ([#542](#542)) ([23f0df0](23f0df0)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: supabase-releaser[bot] <223506987+supabase-releaser[bot]@users.noreply.github.com>
Motivation
On hosted MCP, confirmations for
execute_sql,apply_migrationand the other confirmation tools expire after 2 minutes (AI-1438). Codex/ChatGPT users answered at 161 s and 288 s and got "This confirmation expired after 2 minutes" (AI-1424, AI-1427, AI-1428). The 2 minutes comes from the platform'selicitation.requestState.ttlSeconds: 120, set for URL-mode secret collection. Every elicitation flow shares that option, so the secret link's 2 minutes also applied to confirmations.Changes
elicitation.requestState.ttlSecondsis replaced byelicitation.confirmation.ttlSecondsandelicitation.secretCollection.ttlSeconds. Both default to 600 s, and each one only applies to the state its own flow issues.Important
Breaking: the old option is gone, so release-please will cut 0.17.0. When platform bumps, it needs to set
secretCollection: { ..., ttlSeconds: 120 }andconfirmation: { ..., ttlSeconds: 600 }explicitly. An inline config object turns the removed option into a type error. A config built through a variable or spread drops the 120 silently, which would widen secret links to 10 minutes.Verification
I wrote the tests first from the spec, and they failed on main for the intended reason:
confirmation.ttlSeconds.The tests control the clock, so nothing waits in real time. Request-state signing and principal/method binding are unchanged. A state from one flow can't resume the other flow's tool because the tool checks already reject it.
Closes AI-1438