Repository navigation
Conversation
Emit notifications/progress during phase transitions when client provides a progressToken. This prevents client-side timeouts for long-running runs and gives real-time visibility into execution progress without polling. - Read progressToken from extra._meta (AC-1) - Parse PhaseSpinner output for phase start patterns (AC-2) - Calculate total = issues × phases (AC-3) - Skip notifications when no progressToken (AC-4) - Catch sendNotification failures to avoid aborting runs (AC-6) - Add onStdout/onStderr callbacks to spawnAsync for real-time parsing Entire-Checkpoint: d02a575b0638
5 tasks
Replace regex-based PhaseSpinner output parsing with structured
SEQUANT_PROGRESS JSON lines emitted by the batch executor to stderr.
Fixes two gaps:
- Parallel mode: spinners are suppressed, so no progress was emitted
- Chunk boundaries: stream data events could split lines mid-pattern
The batch executor emits SEQUANT_PROGRESS:{"issue":N,"phase":"name"}
at each phase start (only when SEQUANT_ORCHESTRATOR is set). The MCP
handler parses these via a line buffer, getting exact issue numbers
instead of deducing them from a sequential step counter.
Add progress notification details to existing mcp-server.md: - During a run: automatic progress updates, no polling needed - MCP vs CLI table: updated progress row - sequant_run reference: progressToken behavior - Timeout troubleshooting: resetTimeoutOnProgress guidance
admarble
deleted the
feature/421-mcp-server-add-progress-notifications-for-sequant-
branch
March 25, 2026 06:26
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
notifications/progressduring phase transitions when the MCP client provides aprogressToken, preventing client-side timeouts and giving real-time visibility intosequant_runexecutionprogressTokenis provided;sendNotificationfailures are caught and don't abort the runAC Coverage
progressTokenfromextra._meta?.progressTokensrc/mcp/tools/run.ts:384notifications/progressparsePhaseStart+handleOutputChunkin handlertotal= issue count × phase countsrc/mcp/tools/run.ts:380progressToken(backward compatible)emitProgress+onStdout/onStderronly wired when token existssendNotificationfailures caught.catch()inemitProgressTest plan
npm run buildpassesnpm run lintpassesstate-utils.test.ts)Closes #421
🤖 Generated with Claude Code