The calculation overlay percentage follows the indicative wait instead of a fixed stage mapping: linear to 95% at the expected wait e (captured at Calculate, including local refinement, timed from the calibration's requestedAt), held at 95%, and 100% only when the planner reports completion.
Beneath the status, a visible line names the current planning stage (Applying "<rule name>" for optimization/preference stages), and a second line shows About N s left when e ≥ 3 s, or Taking longer than expected once elapsed reaches e (announced once through the existing live status).
Cancel freezes the percentage, hides both lines and keeps "Cancelling…"; Cancel stays available.
PlanningCalculationService now exposes pending (stage + submitted request) and drops stageProgress; stage reports after Cancel are ignored so a late complete cannot show 100%. PlanningDurationService owns wait on a 250 ms tick.
New text localized in EN, FR, ES and DE; docs/planning-duration.md gains a "During a calculation" section.
Decisions to confirm
The overrun line appears at e, the centre of the pre-Calculate range (e.g. at 20 s for "10–60 s"), as the issue specifies; once calibrated, roughly half of runs will show it.
Remaining time rounds up under 10 s (never "0 s"), then to the nearest 5 s, switching to minutes from 60 s.
The stage and remaining lines sit below the "Calculating..." status.
Testing
Controlled-clock service tests: linear climb and hold, 3 s threshold, rounding, frozen e across form/calibration changes, monotonic progress on repeated stages, no 100% after cancel, incomplete outcomes or errors.
Component tests: every stage's text in all four languages, overrun announced once, freeze and hidden lines after Cancel.
bun run typecheck, eslint and the full suite (768 tests) pass. Not checked in a real browser.
Closes #300.
## Summary
- The calculation overlay percentage follows the **indicative wait** instead of a fixed stage mapping: linear to 95% at the expected wait `e` (captured at Calculate, including local refinement, timed from the calibration's `requestedAt`), held at 95%, and 100% only when the planner reports completion.
- Beneath the status, a visible line names the current **planning stage** (`Applying "<rule name>"` for optimization/preference stages), and a second line shows `About N s left` when `e` ≥ 3 s, or `Taking longer than expected` once elapsed reaches `e` (announced once through the existing live status).
- Cancel freezes the percentage, hides both lines and keeps "Cancelling…"; Cancel stays available.
- `PlanningCalculationService` now exposes `pending` (stage + submitted request) and drops `stageProgress`; stage reports after Cancel are ignored so a late `complete` cannot show 100%. `PlanningDurationService` owns `wait` on a 250 ms tick.
- New text localized in EN, FR, ES and DE; `docs/planning-duration.md` gains a "During a calculation" section.
## Decisions to confirm
- The overrun line appears at `e`, the centre of the pre-Calculate range (e.g. at 20 s for "10–60 s"), as the issue specifies; once calibrated, roughly half of runs will show it.
- Remaining time rounds up under 10 s (never "0 s"), then to the nearest 5 s, switching to minutes from 60 s.
- The stage and remaining lines sit below the "Calculating..." status.
## Testing
- Controlled-clock service tests: linear climb and hold, 3 s threshold, rounding, frozen `e` across form/calibration changes, monotonic progress on repeated stages, no 100% after cancel, incomplete outcomes or errors.
- Component tests: every stage's text in all four languages, overrun announced once, freeze and hidden lines after Cancel.
- `bun run typecheck`, eslint and the full suite (768 tests) pass. Not checked in a real browser.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Pushed f128af6. The three decisions listed under "Decisions to confirm" are now confirmed, with one change: "Taking longer than expected" appears only past the top of the range shown before Calculate, not at e. Between e and that top, the ring holds at 95% with no remaining-time line. Tests and docs/planning-duration.md are updated. Typecheck, lint and the full suite (771 tests) pass. The issue comment on #300 records the changed acceptance criterion.
Pushed f128af6. The three decisions listed under "Decisions to confirm" are now confirmed, with one change: "Taking longer than expected" appears only past the top of the range shown before Calculate, not at e. Between e and that top, the ring holds at 95% with no remaining-time line. Tests and docs/planning-duration.md are updated. Typecheck, lint and the full suite (771 tests) pass. The issue comment on #300 records the changed acceptance criterion.
Both terms are user-visible in the calculation overlay that #300
revises: the stage line names the planning stage, and the remaining
time comes from the indicative wait.
Refs #300.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The overlay percentage now rises linearly to 95% at the expected wait
captured at Calculate, holds there, and shows 100% only when the planner
completes. Beneath the status, one line names the current planning stage
(with the rule name for rule stages) and another shows the approximate
remaining time, or "Taking longer than expected" once the wait is
exceeded, announced once through the live status. Cancel freezes the
percentage and hides both lines.
PlanningCalculationService reports the stage and submitted request
instead of fixed per-stage percentages; PlanningDurationService owns the
wait progress on a 250 ms tick.
Closes#300
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The expected wait sits near the middle of recent waits, so about half of
all runs pass it. Between the expected wait and the top of the range
shown before Calculate, the percentage now holds at 95% with no
remaining-time line; "Taking longer than expected" appears and is
announced only past that top.
Refs #300
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Closes #300.
Summary
e(captured at Calculate, including local refinement, timed from the calibration'srequestedAt), held at 95%, and 100% only when the planner reports completion.Applying "<rule name>"for optimization/preference stages), and a second line showsAbout N s leftwhene≥ 3 s, orTaking longer than expectedonce elapsed reachese(announced once through the existing live status).PlanningCalculationServicenow exposespending(stage + submitted request) and dropsstageProgress; stage reports after Cancel are ignored so a latecompletecannot show 100%.PlanningDurationServiceownswaiton a 250 ms tick.docs/planning-duration.mdgains a "During a calculation" section.Decisions to confirm
e, the centre of the pre-Calculate range (e.g. at 20 s for "10–60 s"), as the issue specifies; once calibrated, roughly half of runs will show it.Testing
eacross form/calibration changes, monotonic progress on repeated stages, no 100% after cancel, incomplete outcomes or errors.bun run typecheck, eslint and the full suite (768 tests) pass. Not checked in a real browser.🤖 Generated with Claude Code
Pushed
f128af6. The three decisions listed under "Decisions to confirm" are now confirmed, with one change: "Taking longer than expected" appears only past the top of the range shown before Calculate, not at e. Between e and that top, the ring holds at 95% with no remaining-time line. Tests and docs/planning-duration.md are updated. Typecheck, lint and the full suite (771 tests) pass. The issue comment on #300 records the changed acceptance criterion.428c0fc641toc6af6d45ab