Skip to content

Comments

feat: add allowedUnrestricted mode for tool calling#10646

Open
chenyuanrun wants to merge 1 commit intocontinuedev:mainfrom
chenyuanrun:add-allowedUnrestricted-mode
Open

feat: add allowedUnrestricted mode for tool calling#10646
chenyuanrun wants to merge 1 commit intocontinuedev:mainfrom
chenyuanrun:add-allowedUnrestricted-mode

Conversation

@chenyuanrun
Copy link

@chenyuanrun chenyuanrun commented Feb 19, 2026

Description

Add a new unrestricted mode for agent tool calling

AI Code Review

  • Team members only: AI review runs automatically when PR is opened or marked ready for review
  • Team members can also trigger a review by commenting @continue-review

Checklist

  • I've read the contributing guide
  • The relevant docs, if any, have been updated or created
  • The relevant tests, if any, have been updated or created

Screen recording or screenshot

[ When applicable, please include a short screen recording or screenshot - this makes it much easier for us as contributors to review and understand your changes. See this PR as a good example. ]

Tests

[ What tests were added or updated to ensure the changes work as expected? ]


Summary by cubic

Add an “Unrestricted” tool policy that lets agents run terminal commands and access files without prompts or workspace checks. Exposes this option in the config UI and updates policy evaluation and tests.

  • New Features
    • Added ToolPolicy value: allowedUnrestricted.
    • Terminal security: returns allowedUnrestricted and skips all checks when enabled.
    • File access: bypasses workspace boundary check when allowedUnrestricted.
    • Config UI: “Unrestricted” option added with label; cycle now goes Disabled → Unrestricted → Automatic → Ask First → Disabled.
    • Tests: coverage for unrestricted mode, including dangerous, obfuscated, multi-line, and empty commands.

Written for commit b1c903b. Summary will update on new commits.

Co-Authored-By: DeepSeek-V3.2 <api-service@deepseek.com>
@chenyuanrun chenyuanrun requested a review from a team as a code owner February 19, 2026 11:07
@chenyuanrun chenyuanrun requested review from RomneyDa and removed request for a team February 19, 2026 11:07
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Feb 19, 2026
@github-actions
Copy link

github-actions bot commented Feb 19, 2026

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@chenyuanrun
Copy link
Author

I have read the CLA Document and I hereby sign the CLA

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 6 files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M This PR changes 30-99 lines, ignoring generated files.

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant