Repository navigation
feat(#458): parallel run progress lines + reconcileState race fix - #466
Merged
admarble merged 3 commits intoMar 26, 2026
Merged
Conversation
…ondition Add per-phase progress callback to runIssueWithLogging so parallel mode renders phase start/complete events to the terminal instead of freezing. Add 60-second heartbeat timer for long gaps between phases. Fix reconcileState race condition by wrapping the entire read-modify-write cycle (including GitHub API calls) in withLock(), preventing concurrent updatePhaseStatus from being overwritten. Document getState/saveState as lock-unaware and make withLock public for external callers.
The variable was removed locally but a reference remained in the onProgress wrapper. Simplify by passing onPhaseProgress directly.
… JSDoc association
admarble
deleted the
feature/458-parallel-run-ux-freeze-reconcilestate-race-con
branch
March 26, 2026 16:13
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
onProgress) torunIssueWithLogging— parallel mode now renders#453: exec started/#452: spec ✓ (4m 6s)lines to the terminal instead of freezing for 20-30 minutesreconcileState()race condition by wrapping the entire read-modify-write cycle inwithLock(), preventing concurrentupdatePhaseStatusfrom being overwritten by stale snapshotsgetState()/saveState()as lock-unaware and makewithLock()public for external callersAC Coverage
Files Changed
src/lib/workflow/batch-executor.tsProgressCallbacktype andonProgressparam; call at all 9emitProgressLinesitessrc/commands/run.tsonProgressto parallel call sitesrc/lib/workflow/reconcile.tsstateManager.withLock(); increase lock timeout to 30ssrc/lib/workflow/state-manager.tswithLock()public; add JSDoc warnings togetState()/saveState()src/lib/workflow/reconcile.test.tsCHANGELOG.mdTest plan
npm run buildpassesnpm run lintpasses (0 warnings)npm test— 2242 tests pass (2 integration tests fail due to pre-existing worktree build issue, unrelated)npx sequant run <issue1> <issue2> <issue3>— verify per-phase progress lines appear within 10s of each transitionsequant_statusvia MCP during active run — verify state reflects latest phaseCloses #458