Skip to content

fix(acp): remove automatic rejection from permission settings - #2883

Merged
wgqqqqq merged 2 commits into
GCWing:mainfrom
guantw:fix/acp-remove-auto-reject
Sep 8, 2026
Merged

fix(acp): remove automatic rejection from permission settings#2883
wgqqqqq merged 2 commits into
GCWing:mainfrom
guantw:fix/acp-remove-auto-reject

Conversation

@guantw

@guantw guantw commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Remove Auto reject from the shared ACP permission selector so the settings views offer only Ask and Auto approve. Remove its English, Simplified Chinese, and Traditional Chinese labels, and cover supported and legacy permission values in the settings tests.

Type and Areas

Type: UI/UX, bug fix, test

Areas: Web UI, ACP settings, localization

Motivation / Impact

Users can choose whether ACP tool requests require confirmation or are automatically approved. Existing reject_once values load as ask in the settings editor and are written as ask when the user saves; opening settings alone does not rewrite the stored configuration.

Verification

After rebasing onto origin/main at c88b25fa5:

  • pnpm --dir src/web-ui run test:run src/infrastructure/config/components/AcpAgentsConfig.test.tsx — 20 tests passed.
  • pnpm run check:web — passed.
  • pnpm run i18n:audit — passed with zero warnings.
  • git diff origin/main...HEAD --check — passed.

Reviewer Notes

The backend ACP protocol and configuration types retain compatibility with legacy values. No backend data migration is performed. Validation uses the local settings test harness; remote workspace, remote control, Peer Device Mode, and Detached Dispatch were not exercised end to end.

Checklist

  • This PR is focused and does not include secrets, temporary prompts, generated scratch files, or unrelated artifacts.
  • Relevant verification is recorded above, or skipped checks are explained.
  • User-facing strings, docs, and locales are updated where applicable.

Limit ACP permission choices to ask and auto approve across the settings views. Normalize legacy reject_once values to ask when saving through settings, remove obsolete translations, and cover supported and legacy permission configurations.
Comment thread src/web-ui/src/infrastructure/config/components/AcpAgentsConfig.tsx
Track persisted automatic-rejection settings separately from edited values and show a warning with a Save and apply action across ACP settings views. Keep the action available after a failed save and clear it only after successful persistence.

Exercise legacy configuration saving, unchanged Ask selection, cross-view actions, and retry behavior with the real Select component.
@wgqqqqq
wgqqqqq merged commit 7a0cdba into GCWing:main Sep 8, 2026
9 checks passed
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