fix: persist and restore CAL_ session original basename #69

Closed
gronod wants to merge 0 commits from fix/29-cal-basename-restore into develop
Owner

Store the pre-CAL_ basename in WizardState and WizardViewModel so a Force Quit or successful printcal cannot leave a CAL_* name active.

  • Persist calibrationOriginalBasename next to basename / cwd / sessionMode.
  • generateTarget snapshots the original before switching the live name to CAL_*.
  • WizardViewModel restores the original and leaves .calibration on app relaunch, on successful curve computation, on the "Return to Profiling" path, and on any go(to:) to .buildProfile / .verifyInstall / .generate while the live basename still starts with CAL_.
  • .layOutPrint and .measure remain reachable from the CAL_ session so the calibration chart can still be printed and read.
  • Do not overload profileBasename.

Closes #29.

Store the pre-`CAL_` basename in `WizardState` and `WizardViewModel` so a Force Quit or successful `printcal` cannot leave a `CAL_*` name active. - Persist `calibrationOriginalBasename` next to `basename` / `cwd` / `sessionMode`. - `generateTarget` snapshots the original before switching the live name to `CAL_*`. - `WizardViewModel` restores the original and leaves `.calibration` on app relaunch, on successful curve computation, on the "Return to Profiling" path, and on any `go(to:)` to `.buildProfile` / `.verifyInstall` / `.generate` while the live basename still starts with `CAL_`. - `.layOutPrint` and `.measure` remain reachable from the `CAL_` session so the calibration chart can still be printed and read. - Do not overload `profileBasename`. Closes #29.
gronod added the
Priority
Critical
1
Project/ICCery-v2Bug/Architecture
labels 2026-09-10 01:31:49 +01:00
gronod added 1 commit 2026-09-10 01:31:50 +01:00
fix: persist and restore CAL_ session original basename
macOS CI / package (pull_request) Canceled after 0s
macOS CI / build-and-test (pull_request) Canceled after 2m20s
f027693fa9
Store the pre-CAL_ basename in WizardState and WizardViewModel so a
Force Quit or successful printcal cannot leave a CAL_* name active.
On relaunch, on navigation to .buildProfile / .verifyInstall / .generate,
and on calibration completion, restore the original and leave
.calibration mode. Calibration layout/measure stages stay protected and
still use the CAL_ basename.

Closes #29.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
gronod added 1 commit 2026-09-10 01:36:22 +01:00
This is a reversible change so CI does not trigger on this branch.

Generated with Devin (https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
gronod closed this pull request 2026-09-10 02:09:20 +01:00
gronod deleted branch fix/29-cal-basename-restore 2026-09-10 02:09:21 +01:00

Pull request closed

This pull request cannot be reopened because the branch was deleted.
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: gronod/iccery-v2-mac#69