Settings > Privacy's "Find with a local model" row put the model menu 2px
from the Off/On switch (.prefs .val's gap): two bordered boxes touching.
The row's .val now has an 8px gap.
With no model picked, pii.Choose is AstrLink Guard. Before, it was Privacy
Filter whenever the model was on or Privacy Filter was on disk. Now
Privacy Filter is chosen only while the model is on, Privacy Filter is
downloaded and AstrLink Guard isn't, so a request isn't held back. In
that case masking.picked starts AstrLink Guard's 38 MB download
(toGuard, tried again an hour after a failure). Once it is on disk,
AstrLink Guard is saved as the pick, unless the user picked a model in
between, and Privacy Filter is let go.
Existing users:
- Privacy Filter on with no pick: moved to AstrLink Guard after the
download. Privacy Filter stays on disk and can be picked again.
- Privacy Filter explicitly picked: unchanged.
- Model off: the menu now shows AstrLink Guard.
Run at this tree, on origin/main:
- go test ./internal/pii ./internal/masking: ok. TestChoose is updated,
with Privacy Filter on disk both off (Guard) and on (PF).
- go test ./internal/gui -run 'Budget|I18n': ok.
- privacy-model.test.cjs, chromium + webkit, every language, 1100/640:
64/64. The new gap check fails with the CSS line removed (gap 2).
- gofmt, vet (darwin, linux nogui, windows), linux and windows builds:
ok.
Not tried: toGuard's real download and switch-over. It needs the
network, and no test covers it.