Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix streamable-http session management with minimal change #37866

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
BrentGTR wants to merge 1 commit into microsoft:main
base: main
Choose a base branch
Loading
from BrentGTR:fix/minimal-session-cleanup

Conversation

Copy link

@BrentGTR BrentGTR commented Oct 15, 2025

Replace immediate session cleanup with 5-second delayed cleanup to prevent 'Session not found' errors during multi-step browser automation operations.

This is the minimal fix that resolves the core issue around streamable-http transport support.

When combined with the playwright-mcp PR, these two changes will fix the "navigate to google, type banana into the search bar, click search and take a screen shot of the result" scenario without a session being dropped when using it in a pod.

Replace immediate session cleanup with 5-second delayed cleanup to prevent
'Session not found' errors during multi-step browser automation operations.
This is the minimal fix that resolves the core issue without over-engineering.
Copy link
Contributor

Test results for "MCP"

3 failed
❌ [chromium] › mcp/test-debug.spec.ts:232 › test_debug / evaluate x 2 @mcp-macos-15
❌ [chrome] › mcp/cdp.spec.ts:20 › cdp server @mcp-windows-latest
❌ [chrome] › mcp/cdp.spec.ts:31 › cdp server reuse tab @mcp-windows-latest

2554 passed, 108 skipped


Merge workflow run.

Copy link
Member

@yury-s yury-s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please start with filing a bug report that would describe the issue you are trying to fix.

sessions.delete(transport.sessionId);
testDebug(`delete http session: ${transport.sessionId}`);
const sessionId = transport.sessionId;
// Delay cleanup to allow multi-step operations to complete
Copy link
Member

@pavelfeldman pavelfeldman Oct 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But it'll be deleted eventually, that does not sound right. Please add a test.

BrentGTR reacted with thumbs up emoji
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@pavelfeldman pavelfeldman pavelfeldman left review comments

@yury-s yury-s yury-s left review comments

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /