mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-05 23:42:03 +00:00
The trust/isTrustedFolder logic was accidentally dropped during the permission system refactor in feat/support-permission (PR #2283). Previously, shouldConfirmExecute() returned false (no confirmation) when both conditions were met: - MCP server config has trust: true - The workspace folder is trusted (isTrustedFolder()) The refactor replaced shouldConfirmExecute() with getDefaultPermission() but left out the trust check entirely, adding a comment claiming 'trust logic is now handled by PM rules' — however no PM rules were ever generated from the trust setting, making trust: true completely non-functional. This fix restores the original behavior: MCP tools from a trusted server (trust: true) auto-approve only when the workspace is also trusted, preserving the security gate that prevents trust settings from bypassing confirmation in untrusted folders. |
||
|---|---|---|
| .. | ||
| cli | ||
| core | ||
| sdk-java | ||
| sdk-typescript | ||
| test-utils | ||
| vscode-ide-companion | ||
| web-templates | ||
| webui | ||
| zed-extension | ||