Skip to content

test(mcpx): probe elicit.askTimeout (#8473 chain 49) - #11887

Merged
dezren39 merged 1 commit into
mainfrom
test/mcpx-probes-chain49
Nov 18, 2026
Merged

dezren39 merged 1 commit into
mainfrom
test/mcpx-probes-chain49

Conversation

@dezren39

@dezren39 dezren39 commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Before: elicit.askTimeout, the deadline on mcpx's own questions, was exempt from the settings effect guard.

After: an e2e probe holds a write-policy confirmation open. Under the default deadline it is still pending after 3s and ends only when declined; with a 1s deadline the call refuses by itself with "nobody answered within 1s". The exemption pin goes from 73 to 72.

How: one probe in effect_test.go, registered in EffectProbes on both sides, with its exemption line removed.

Refs #8473


Generated by Claude Code


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

Summary by CodeRabbit

  • Tests
    • Expanded coverage for unanswered confirmation requests, checking that requests remain pending within the default wait period, that declining ends the operation, and that a configured one-second deadline results in a timeout.

Under policy.write=ask, with an answerer present, an unannotated call
raises a confirmation. Under the default 45s deadline it is still
pending 3s later and the call ends on its decline; with a 1s deadline
the call refuses by itself, naming the 1s deadline.

Drops one exemption; the pin goes from 73 to 72.

Refs #8473

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dezren39
dezren39 marked this pull request as ready for review November 18, 2026 20:00
@dezren39
dezren39 requested a review from a team as a code owner November 18, 2026 20:00
@dezren39
dezren39 merged commit c07822c into main Nov 18, 2026
@dezren39
dezren39 deleted the test/mcpx-probes-chain49 branch November 18, 2026 20:00
@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

Walkthrough

This change adds an end-to-end effect probe for elicit.askTimeout. The probe checks confirmation behavior with the default timeout and a one-second timeout. The change also removes the setting’s coverage exemption.

Changes: Elicit Ask Timeout Coverage

Layer / File(s) Summary
Register and validate the ask-timeout probe
pkgs/mcpx/internal/settings/effect.go, pkgs/mcpx/internal/e2e/effect_test.go, pkgs/mcpx/internal/e2e/feature_coverage_exemptions.txt
The effect-probe mappings reference the new end-to-end test. The test checks that confirmation remains pending after three seconds with the default timeout, that declining completes the call, and that an unanswered call fails with a one-second timeout. The setting’s exemption is removed, and the exemption pin is lowered from 73 to 72.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Possibly related issues

Possibly related PRs

Suggested reviewers: claude

Merge Risk: Low · up to df22f

This change only adds test coverage for the ask timeout setting. The probe may fail spuriously on slow startup or miss an early call completion. Production behavior is not affected, so it is mergeable with a small test-hardening follow-up.

- [ ] 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

@chatgpt-codex-connector

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:01:23.094587Z df22fd3 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