Skip to content

refactor: Move approval commands to config namespace - #31

Merged
max-sixty merged 3 commits into
mainfrom
claude/refactor-approval-commands-01GovyuP8vATJiWowtvKZLt4
Nov 21, 2025
Merged

max-sixty merged 3 commits into
mainfrom
claude/refactor-approval-commands-01GovyuP8vATJiWowtvKZLt4

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Move wt beta ask-approvals and wt beta clear-approvals to
wt config approvals ask and wt config approvals clear.

This change:

  • Creates ApprovalsCommand enum with Ask and Clear subcommands
  • Adds Approvals subcommand to ConfigCommand
  • Removes approval commands from StandaloneCommand (beta)
  • Updates test helpers to use new command paths
  • Updates all affected snapshots

The refactoring improves command organization by grouping approval
management with other configuration commands, making it more
discoverable and logically consistent.

claude and others added 3 commits November 21, 2025 12:22
Move `wt beta ask-approvals` and `wt beta clear-approvals` to
`wt config approvals ask` and `wt config approvals clear`.

This change:
- Creates ApprovalsCommand enum with Ask and Clear subcommands
- Adds Approvals subcommand to ConfigCommand
- Removes approval commands from StandaloneCommand (beta)
- Updates test helpers to use new command paths
- Updates all affected snapshots

The refactoring improves command organization by grouping approval
management with other configuration commands, making it more
discoverable and logically consistent.
Git's rebase conflict hints are controlled by advice.resolveConflict,
not advice.mergeConflict. Different git versions/environments produce
different hint output, causing snapshot mismatches between Claude Code
Web and CI runners.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Replace GIT_CONFIG_COUNT/KEY/VALUE environment variables with a single
git config file containing all test settings. This:
- Reduces snapshot metadata noise (4 env vars → 1 redacted path)
- Makes it easier to add more git config settings in the future
- Centralizes git test configuration in one place

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@max-sixty
max-sixty force-pushed the claude/refactor-approval-commands-01GovyuP8vATJiWowtvKZLt4 branch from 5e211ff to acda8ea Compare November 21, 2025 20:24
@max-sixty
max-sixty merged commit 8392805 into main Nov 21, 2025
@max-sixty
max-sixty deleted the claude/refactor-approval-commands-01GovyuP8vATJiWowtvKZLt4 branch November 21, 2025 20:32
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