Skip to content

feat(qwencode): carry tools.workflowNameOnly and tools.executionSandbox through the override - #3306

Merged
dyoshikawa merged 3 commits into
mainfrom
resolve-issue-2668
Oct 4, 2026
Merged

dyoshikawa merged 3 commits into
mainfrom
resolve-issue-2668

Conversation

@dyoshikawa

Copy link
Copy Markdown
Owner

Summary

Refs #2668 (partial: two of the remaining mechanical sub-gaps).

QWEN_OVERRIDE_TOOLS_KEYS is a curated import allow-list, so two keys Qwen Code added recently were silently dropped on rulesync import --targets qwencode. generate already preserved hand-written values. This is the same gap that #2977 (eager) and #3059 (todoWrite) fixed.

Design decision

There is no tighten-only scope rule yet. workflowNameOnly is the only tools key on that upstream list, so I modeled it as global-machine-wide with its own projectNote / globalNote, which state the tighten-only behavior. I did not add a new QwenScopeRule kind: QWEN_SCOPE_RULES is 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 workspace true takes effect.

Also updated:

  • the "verified against" stamp on QWEN_SCOPED_TOOLS_KEYS, now v0.24.7;
  • the QwenScopeRule TSDoc, which listed upstream entries that have since gone stale;
  • the QwencodePermissionsOverrideSchema TSDoc and the qwencode blockquote in docs/reference/file-formats.md, including the key counts.

Still open on #2668

Hook timeout unit change (v0.23.4), the skills.* kill-switches, general.outputStyle / .qwen/output-styles/, .qwen/workflows/, fork profiles, tools.codeModeOnly.

Test plan

  • New unit tests: project-scope strip, global note and import round-trip for executionSandbox; project-scope tighten-only note, global note and import round-trip for workflowNameOnly.
  • pnpm cicheck passes (547 files, 14049 tests).

🤖 Generated with Claude Code

https://claude.ai/code/session_01Y4MwhqMc6s4ct5MzMReGJj

dyoshikawa and others added 3 commits October 3, 2026 23:19
…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
@dyoshikawa
dyoshikawa merged commit 7384d8a into main Oct 4, 2026
9 checks passed
@dyoshikawa

Copy link
Copy Markdown
Owner Author

@dyoshikawa Thank you!

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.

1 participant