Skip to content

test(mcpx): effect probe for proto.sessionIdle - #11839

Merged
dezren39 merged 1 commit into
mainfrom
test/mcpx-session-idle-probe
Nov 18, 2026
Merged

dezren39 merged 1 commit into
mainfrom
test/mcpx-session-idle-probe

Conversation

@dezren39

@dezren39 dezren39 commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Before: proto.sessionIdle was on the effect-probe exemption list, so nothing showed that changing it changes how long an unused legacy session is kept.

After: TestSessionIdleReapsAnUnusedSessionFromTheEnvironment opens a legacy session, leaves it idle for three seconds, opens a second session and then sends DELETE for the first. At the default (30m) the first session still exists and DELETE answers 204. With MCPX_PROTO_SESSION_IDLE=1s it was reaped and DELETE answers 404. The setting leaves the exemption list and EffectExemptionPin drops to 189 → 188.

How: idle sessions are reaped in sessionFor when a new session is created, so the second initialize is what triggers the sweep, and serveDELETE answers 404 for a session it no longer has.

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.

Opens a legacy session, leaves it idle for three seconds, opens a
second one (which reaps idle sessions) and asks to end the first. At
the default DELETE answers 204; with MCPX_PROTO_SESSION_IDLE=1s the
session was reaped and DELETE answers 404. Drops the exemption and
shrinks the pin to 188.

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 17:34
@dezren39
dezren39 requested a review from a team as a code owner November 18, 2026 17:34
@dezren39
dezren39 merged commit 651dfa2 into main Nov 18, 2026
@dezren39
dezren39 deleted the test/mcpx-session-idle-probe branch November 18, 2026 17:34
@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

@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-18T17:36:01.176269Z 06e9597 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