Skip to content

fix(mcpx): upstream questions honour elicit.ttl and elicit.maxAge (#8473 chain 51) - #11889

Merged
dezren39 merged 1 commit into
mainfrom
fix/mcpx-upstream-question-ttl
Nov 18, 2026
Merged

dezren39 merged 1 commit into
mainfrom
fix/mcpx-upstream-question-ttl

Conversation

@dezren39

@dezren39 dezren39 commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Before: a question an upstream server asked (elicitation, sampling or roots) always expired two minutes after it was raised. The daemon's hooks stamped ExpiresAt with the built-in default, so elicit.ttl and elicit.maxAge were configured on the broker but never reached these questions. Both settings sat on the #8473 exemption list.

After: the hooks leave the deadline to the broker, which applies the configured elicit.ttl capped by elicit.maxAge. With defaults nothing changes (2m is well under the 30m ceiling). Two new effect probes check a question's listed life is 2m by default, 7m with elicit.ttl=7m, and 1m with elicit.maxAge=1m. EffectExemptionPin drops 71 → 69 (#8473 chain 51).

How: removed the three ExpiresAt: time.Now().Add(defaults.ElicitTTL) lines in internal/daemon/hooks.go; probes in internal/e2e/effect_test.go, registered in internal/settings/effect.go, exemption lines dropped.


Generated by Claude Code


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

The daemon's elicitation, sampling and roots hooks stamped every
question they opened with now + the built-in elicit.ttl, so the broker
never computed the deadline itself and the configured elicit.ttl and
elicit.maxAge had no effect on questions an upstream server asked.
Leaving ExpiresAt unset lets OpenRequest apply the broker's configured
touch-on-read deadline, which the daemon already sets from settings.

Adds effect probes for elicit.ttl and elicit.maxAge and drops both
from the exemption list (EffectExemptionPin 71 -> 69, #8473 chain 51).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dezren39
dezren39 marked this pull request as ready for review November 18, 2026 20:07
@dezren39
dezren39 requested a review from a team as a code owner November 18, 2026 20:07
@dezren39
dezren39 merged commit 86f24cd into main Nov 18, 2026
@coderabbitai

coderabbitai Bot commented Nov 18, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dezren39
dezren39 deleted the fix/mcpx-upstream-question-ttl branch November 18, 2026 20:07
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T20:08:51.003709Z 017b66f Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants