Skip to content

fix(mcp): add timeout and process kill to test tool#1595

Open
eliasreis54 wants to merge 2 commits into
VeryGoodOpenSource:mainfrom
eliasreis54:fix/mcp-test-timeout
Open

fix(mcp): add timeout and process kill to test tool#1595
eliasreis54 wants to merge 2 commits into
VeryGoodOpenSource:mainfrom
eliasreis54:fix/mcp-test-timeout

Conversation

@eliasreis54
Copy link
Copy Markdown
Contributor

@eliasreis54 eliasreis54 commented May 13, 2026

Status

READY

Description

Flutter tests can hang indefinitely when pumpAndSettle() is called without a timeout argument. The MCP server was waiting on the process forever with no way to recover.

Adds a timeout_seconds parameter (default 120) to the test tool. When the timeout fires, sends SIGKILL to flutter_tester via pkill — the only reliable mechanism to terminate a hung Flutter test process — then returns an actionable error to the caller.

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

Flutter tests can hang indefinitely when pumpAndSettle() is called
without a timeout argument. The MCP server was waiting on the process
forever with no way to recover.

Adds a timeout_seconds parameter (default 120) to the test tool. When
the timeout fires, sends SIGKILL to flutter_tester via pkill — the only
reliable mechanism to terminate a hung Flutter test process — then
returns an actionable error to the caller.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@eliasreis54 eliasreis54 requested a review from a team as a code owner May 13, 2026 13:23
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

1 participant