Skip to content

Fix stuck progress label during non-advancing reqs2X phases#341

Open
ThisCakeIsALie wants to merge 2 commits into
mainfrom
fix/reqs2x-progress-label-stuck
Open

Fix stuck progress label during non-advancing reqs2X phases#341
ThisCakeIsALie wants to merge 2 commits into
mainfrom
fix/reqs2x-progress-label-stuck

Conversation

@ThisCakeIsALie

@ThisCakeIsALie ThisCakeIsALie commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

The progress notification only updated its label when numeric progress advanced (increment > 0). Reqs2X emits a progress event at the start of each phase with the new step name but no advance, so the notification stayed frozen on the previous phase's label — e.g. showing "Precomputing context" for the whole "waiting for first model response" window while tests were already being generated (pronounced in batched mode, where the first test yields late).

Report on a step-label change too, clamping the bar increment to 0 for label-only updates.

ThisCakeIsALie and others added 2 commits July 15, 2026 16:08
The progress notification only updated its label when the numeric
progress advanced (increment > 0). Reqs2X emits a progress event at the
start of each phase with the new step name but no advance, so the
notification stayed frozen on the previous phase's label — e.g. showing
"Precomputing context" for the whole "waiting for first model response"
window while tests were already being generated.

Report on a step-label change too, clamping the bar increment to 0 for
label-only updates.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Addresses SonarQube: prefer Math.max(increment, 0) over a ternary.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

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