Repository navigation
feat(qwencode): carry tools.workflowNameOnly and tools.executionSandbox through the override - #3306
Merged
Merged
Conversation
…ox through the override Both keys were dropped on import because QWEN_OVERRIDE_TOOLS_KEYS is a curated allow-list. executionSandbox is on Qwen Code's WORKSPACE_RESTRICTED_SETTINGS, so it is skipped in project scope like workflowsEnabled; workflowNameOnly is tighten-only and is written in both scopes with notes that say a workspace may only turn it on. Refs #2668 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Y4MwhqMc6s4ct5MzMReGJj
A falsy value such as null removes the sandbox policy, which is the loosening direction, so it must not be filtered out as a non-grant. Also name WORKSPACE_TIGHTEN_ONLY_SETTINGS as a source list and reword the docs so workflowNameOnly is not listed among keys with no scope caveat. Refs #2668 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Y4MwhqMc6s4ct5MzMReGJj
Refs #2668 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Y4MwhqMc6s4ct5MzMReGJj
Owner
Author
|
@dyoshikawa Thank you! |
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
Refs #2668 (partial: two of the remaining mechanical sub-gaps).
QWEN_OVERRIDE_TOOLS_KEYSis a curated import allow-list, so two keys Qwen Code added recently were silently dropped onrulesync import --targets qwencode.generatealready preserved hand-written values. This is the same gap that #2977 (eager) and #3059 (todoWrite) fixed.tools.executionSandbox: the Linux tool-execution sandbox policy ({ filesystem, network, backend? }), added in Qwen Code v0.24.4 (feat(cli): Move bwrap sandboxing to tool execution QwenLM/qwen-code#12267). It is onWORKSPACE_RESTRICTED_SETTINGSinpackages/cli/src/config/settingsUtils.tsat v0.24.7, so it uses theworkspace-strippedrule (same asworkflowsEnabled). Generate skips it with a warning in project scope, announces it in global scope with a key-specific note, and import flags it when it is read from a project file.tools.workflowNameOnly: restricts the Workflow tool to named workflows, added in Qwen Code v0.24.1 (feat(workflows): add a name-only lock that restricts the Workflow tool to named workflows QwenLM/qwen-code#12078). It is onWORKSPACE_TIGHTEN_ONLY_SETTINGS. The settings docs say: "A workspace may set this totrueonly; a workspacefalseis ignored."Design decision
There is no
tighten-onlyscope rule yet.workflowNameOnlyis the onlytoolskey on that upstream list, so I modeled it asglobal-machine-widewith its ownprojectNote/globalNote, which state the tighten-only behavior. I did not add a newQwenScopeRulekind:QWEN_SCOPE_RULESis a total record, and a new kind would mean more code, tests and docs for a single key. The value is written in both scopes because a workspacetruetakes effect.Also updated:
QWEN_SCOPED_TOOLS_KEYS, now v0.24.7;QwenScopeRuleTSDoc, which listed upstream entries that have since gone stale;QwencodePermissionsOverrideSchemaTSDoc and the qwencode blockquote indocs/reference/file-formats.md, including the key counts.Still open on #2668
Hook
timeoutunit change (v0.23.4), theskills.*kill-switches,general.outputStyle/.qwen/output-styles/,.qwen/workflows/, fork profiles,tools.codeModeOnly.Test plan
executionSandbox; project-scope tighten-only note, global note and import round-trip forworkflowNameOnly.pnpm cicheckpasses (547 files, 14049 tests).🤖 Generated with Claude Code
https://claude.ai/code/session_01Y4MwhqMc6s4ct5MzMReGJj