Skip to content

fix(workspace): scaffold upgrade clobbers a customized .typos.toml (dual-config corruption) #913

Closed

Description

@c-vigo

Found during 0.4.1-rc1 consumer-upgrade testing (follow-up to #878, same class of bug).

Problem

init-workspace.sh --force overwrites the consumer's .typos.toml with the generic template one, because .typos.toml is not in PRESERVE_FILES. Two failure modes were reproduced:

  • Customized config lost (mat, 0.4.0 → rc1): a 69-line material-science .typos.toml (element symbols, Macor, metalness, LSO, fixture typos) was replaced by the 10-line generic template. The typos hook then "corrected" real content across the repo — metalness→metallicity, LSO→ALSO, and renamed docs/catalog/ceramics/macor.md→macro.md.
  • Dual-config corruption (vault, 0.3.5 → rc1): vault carries a legacy-named _typos.toml; the upgrade dropped a new .typos.toml alongside it. typos honours both, and the template .typos.toml lacks the Nd exemption, so the hook corrupted Nd→And inside the scaffold's own .devcontainer/scripts/version-check.sh — prek run --all-files then fails out of the box on a fresh upgrade.

Proposed fix

Refs: #878

Activity

  1. added this to the 0.4.1 milestone on Jul 7, 2026
  2. added
    bug
    priority:high
    area:workspace
    effort:small
    semver:patch
    on Jul 7, 2026
  3. c-vigo commented on Jul 8, 2026

    @c-vigo
    ContributorAuthor

    Implemented in 0.4.1 (released 2026-07-08) — see the ## [0.4.1] CHANGELOG entry. Closing as completed.

  4. added a commit that references this issue on Jul 14, 2026
  5. added a commit that references this issue on Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:workspacebugeffort:smallpriority:highsemver:patch

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions