Repository navigation
feat(qwencode): carry tools.lspEnabled through the override, global scope only - #3915
Merged
Merged
Conversation
…cope only Qwen Code v0.27.1 added `tools.lspEnabled` and lists it in WORKSPACE_RESTRICTED_SETTINGS, so a workspace value is stripped before the merge. Lift it on import, skip it with a warning in project scope, and announce a literal `true` in global scope (Qwen Code opts in only on `=== true`). Refs #2668 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4
…Enabled Refs #2668 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4
…en-lsp-enabled # Conflicts: # src/generated/docs-content.ts
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.
Refs #2668
Summary
Follows the 2026-11-19 re-check on #2668: Qwen Code v0.27.1 (QwenLM/qwen-code#14613) added
tools.lspEnabled, which turns on experimental LSP code intelligence without--experimental-lsp. Upstream lists it inWORKSPACE_RESTRICTED_SETTINGS(packages/cli/src/config/settingsUtils.ts, verified at v0.28.0), so a workspace value is stripped before the merge.lspEnabledtoQWEN_OVERRIDE_TOOLS_KEYS, so import lifts it back into theqwencode.toolsoverride instead of dropping it.lspEnabled: { rule: "workspace-stripped" }toQWEN_SCOPED_TOOLS_KEYS. Generate now skips it with a warning in project scope instead of writing dead config, and writes it in global scope.grantsisvalue === true, because upstream opts in only on a literaltrue(isLspOptedIninlsp-opt-in.ts), unlike the booleans it reads for truth..lsp.jsonservers, the refusal whentools.executionSandboxis set, and theQWEN_CODE_ENABLE_LSP/QWEN_CODE_DISABLE_LSPoverrides.docs/reference/file-formats.md(regeneratedsrc/generated/docs-content.ts) and the type comment insrc/types/permissions.ts.Remaining on #2668
The older items still need a maintainer decision and are not touched here: the
.qwen/review-rules.mdchecks surface, fork profiles, server-levelmcp.allowed/mcp.excluded, style files and.qwen/workflows/.Side note, not changed here: at v0.28.0 upstream
WORKSPACE_RESTRICTED_SETTINGSalso listssecurity.folderTrust, which rulesync currently models asuser-scope-trust-check. That may need a separate look.Tests
qwencode-permissions.test.ts: project-scope skip with a warning, global write with an announcement, no announcement forfalse/1/"true", and the import round-trip.pnpm cicheckpasses.src/utils/glob.test.tstimed out once under load and passed when run alone.🤖 Generated with Claude Code
https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4