Repository navigation
Conversation
When sequant run fails on first execution due to MCP server cold-start issues (npx caching), the phase is now retried with MCP disabled. This handles the common pattern where npx-based MCP servers fail to initialize on first run but work after the cache is warm. Changes: - Add MCP fallback retry in executePhaseWithRetry() - when a phase fails with MCP enabled, retry once with MCP disabled - Wrap logWriter.initialize() in try/catch to prevent crashes from permission issues or disk errors - Add --no-retry CLI flag to disable retry behavior (useful for debugging) - Add run.retry setting for persistent configuration - Add unit tests for retry logic and error handling Closes #267
16 tasks
… tests Export executePhaseWithRetry with dependency injection for executePhase, enabling proper unit tests that verify actual retry behavior instead of testing local boolean variables. New tests verify: - MCP fallback triggers when MCP enabled and phase fails - No MCP fallback when MCP already disabled - No retry when phase succeeds on first attempt - Original error preserved when both attempts fail - No retry when config.retry is false - No cold-start retry when failure duration exceeds threshold - Cold-start retry limited to MAX_RETRIES - Warning logged when falling back to no-MCP
admarble
deleted the
feature/267-fix-sequant-run-fails-on-first-execution-succeeds-
branch
February 19, 2026 19:38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
executePhaseWithRetry()- when a phase fails with MCP enabled, retry once with MCP disabledlogWriter.initialize()in try/catch to prevent crashes from permission issues or disk errors--no-retryCLI flag to disable retry behavior (useful for debugging)run.retrysetting for persistent configurationTest plan
npm run buildpassesnpm run lintpassesCloses #267
🤖 Generated with Claude Code