Skip to content

feat(config): wt config update adopts json-schema = 2 instead of pinning 1 - #3436

Merged
max-sixty merged 1 commit into
mainfrom
json-schema-update-hint
Jul 12, 2026
Merged

feat(config): wt config update adopts json-schema = 2 instead of pinning 1#3436
max-sixty merged 1 commit into
mainfrom
json-schema-update-hint

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Flips the direction of the [list] json-schema pending-default handling that #3411 introduced: wt config update now writes json-schema = 2 (adopting the upcoming default) instead of pinning = 1 (preserving the current one). Running update is the migration; staying on schema 1 is the deliberate manual edit.

The wt list --format=json nag flips to match, keeping the adopt action last for easy copying:

▲ JSON output is schema 1; a future release switches the default to schema 2
↳ To keep this format set [list] json-schema = 1; to adopt the new schema, run wt config update

Why: with pin-to-1, every wt config update run during the deprecation window entrenched users on the schema being retired, leaving a pinned cohort the default flip could never migrate. With adopt-2, update moves users forward as a reviewed config edit, and after the flip = 2 is just a redundant default a future rule can strip. The trade: wt config update --yes in a script switches JSON output as a side effect of unrelated migrations (the interactive path shows the diff first).

The system-config gate is unchanged — when the system layer defines the key, update leaves the user file alone; the test now covers the sharper direction (system = 1 must not be overridden by a user-file = 2). All detection/warning invariants carry over; the diff is ~6 semantic lines plus pin→adopt wording and 65 one-line snapshot flips.

🤖 Generated with Claude Code

This was written by Claude Code on behalf of max

…ing 1

The update command is the migration path forward: on an unset key it now
writes the upcoming default ([list] json-schema = 2) rather than pinning the
current one. The wt list JSON nag flips accordingly: staying on schema 1 is
the manual edit, adopting is the offered command. This removes the
pinned-to-1 cohort the future default flip would otherwise leave behind.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@max-sixty
max-sixty merged commit d12c55a into main Jul 12, 2026
39 checks passed
@max-sixty
max-sixty deleted the json-schema-update-hint branch July 12, 2026 22:34
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.

2 participants