Repository navigation
Conversation
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Related issues: None linked.
Type and Areas
Type: Feature, breaking permission-policy change, and UI/UX.
Areas: Product permission contracts, Agent Runtime, core tool execution and approval pipeline, shell analysis, AI adapters, Web UI permission settings and prompts, locales, and generated capability documentation.
Motivation / Impact
Ask mode currently interrupts ordinary development operations and gives approval models limited context. This change reduces routine confirmations, evaluates shell commands in their execution context, and supplies richer inputs for model-assisted approval. Explicit rules, file permissions, and independent execution constraints remain authoritative.
Permission settings and command approval labels are updated in English, Simplified Chinese, and Traditional Chinese where applicable. Command-analysis reasons are hidden from confirmation prompts.
Verification
Checks rerun during PR preparation:
git diff --check HEAD~3 HEAD- passed.pnpm --dir src/web-ui run test:run src/flow_chat/components/ChatInputApprovalBand.test.tsx- passed: 1 file, 19 tests.pnpm run capabilities:check- passed: verified 24 features and 23 settings; audited 702 Tauri commands and 4,290 UI interaction candidates across 470 files.origin/dev-macmatches the local HEAD.The three commit messages also record focused Rust permission/parser/pipeline tests, native PowerShell parsing, frontend tests,
pnpm run check:web,pnpm run i18n:audit, capability checks, repository hygiene, and core boundary checks. Those prior results are reported from commit metadata; the full Rust and repository suites were not rerun during PR preparation because this task packages the existing commits without code changes.CLI CI follow-up:
DECISION=ALLOWprotocol. Temporary diagnostic assertions were removed after confirming the root cause; the original persisted-config assertion remains.cargo test --locked -p openbitfun-cli --test cli_command_contracts exec_cli_contracts::cli_agent_controls_its_own_isolated_config_through_openbitfun_control -- --exact --nocapture- passed locally after failing before the fix.cargo test --locked -p openbitfun-cli --test cli_command_contracts- passed locally on Windows: 45 passed, 1 existing graphical-environment test ignored.pnpm run fmt:rsandgit diff --check- passed.Remote coverage: The command-approval commit reports mock-based remote coverage. Live Remote Workspace (SSH/container), Remote Control (relay/bots), Peer Device Mode, and Detached Dispatch scenarios have not been exercised for this PR.
Reviewer Notes
custom_toolrules and grants for those tools are not migrated and may need to be recreated with the new actions. Legacybashrules and exact command grants remain readable.Checklist